diff --git a/java-datacatalog/README.md b/java-datacatalog/README.md index 74522b430e34..c38d160d044b 100644 --- a/java-datacatalog/README.md +++ b/java-datacatalog/README.md @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [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.36.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-datacatalog/1.38.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 diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/DataCatalogClient.java rename to java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/DataCatalogClient.java 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 new file mode 100644 index 000000000000..339f9f0b65f1 --- /dev/null +++ b/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/DataCatalogSettings.java @@ -0,0 +1,604 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, 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; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link DataCatalogClient}. + * + *

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

+ * + *

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

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

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * DataCatalogSettings.Builder dataCatalogSettingsBuilder = DataCatalogSettings.newBuilder();
+ * dataCatalogSettingsBuilder
+ *     .createEntryGroupSettings()
+ *     .setRetrySettings(
+ *         dataCatalogSettingsBuilder
+ *             .createEntryGroupSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setTotalTimeout(Duration.ofSeconds(30))
+ *             .build());
+ * DataCatalogSettings dataCatalogSettings = dataCatalogSettingsBuilder.build();
+ * }
+ */ +@Generated("by gapic-generator-java") +public class DataCatalogSettings extends ClientSettings { + + /** Returns the object with the settings used for calls to searchCatalog. */ + public PagedCallSettings + searchCatalogSettings() { + return ((DataCatalogStubSettings) getStubSettings()).searchCatalogSettings(); + } + + /** Returns the object with the settings used for calls to createEntryGroup. */ + public UnaryCallSettings createEntryGroupSettings() { + return ((DataCatalogStubSettings) getStubSettings()).createEntryGroupSettings(); + } + + /** Returns the object with the settings used for calls to getEntryGroup. */ + public UnaryCallSettings getEntryGroupSettings() { + return ((DataCatalogStubSettings) getStubSettings()).getEntryGroupSettings(); + } + + /** Returns the object with the settings used for calls to updateEntryGroup. */ + public UnaryCallSettings updateEntryGroupSettings() { + return ((DataCatalogStubSettings) getStubSettings()).updateEntryGroupSettings(); + } + + /** Returns the object with the settings used for calls to deleteEntryGroup. */ + public UnaryCallSettings deleteEntryGroupSettings() { + return ((DataCatalogStubSettings) getStubSettings()).deleteEntryGroupSettings(); + } + + /** Returns the object with the settings used for calls to listEntryGroups. */ + public PagedCallSettings< + ListEntryGroupsRequest, ListEntryGroupsResponse, ListEntryGroupsPagedResponse> + listEntryGroupsSettings() { + return ((DataCatalogStubSettings) getStubSettings()).listEntryGroupsSettings(); + } + + /** Returns the object with the settings used for calls to createEntry. */ + public UnaryCallSettings createEntrySettings() { + return ((DataCatalogStubSettings) getStubSettings()).createEntrySettings(); + } + + /** Returns the object with the settings used for calls to updateEntry. */ + public UnaryCallSettings updateEntrySettings() { + return ((DataCatalogStubSettings) getStubSettings()).updateEntrySettings(); + } + + /** Returns the object with the settings used for calls to deleteEntry. */ + public UnaryCallSettings deleteEntrySettings() { + return ((DataCatalogStubSettings) getStubSettings()).deleteEntrySettings(); + } + + /** Returns the object with the settings used for calls to getEntry. */ + public UnaryCallSettings getEntrySettings() { + return ((DataCatalogStubSettings) getStubSettings()).getEntrySettings(); + } + + /** Returns the object with the settings used for calls to lookupEntry. */ + public UnaryCallSettings lookupEntrySettings() { + return ((DataCatalogStubSettings) getStubSettings()).lookupEntrySettings(); + } + + /** Returns the object with the settings used for calls to listEntries. */ + public PagedCallSettings + listEntriesSettings() { + return ((DataCatalogStubSettings) getStubSettings()).listEntriesSettings(); + } + + /** Returns the object with the settings used for calls to modifyEntryOverview. */ + public UnaryCallSettings + modifyEntryOverviewSettings() { + return ((DataCatalogStubSettings) getStubSettings()).modifyEntryOverviewSettings(); + } + + /** Returns the object with the settings used for calls to modifyEntryContacts. */ + public UnaryCallSettings modifyEntryContactsSettings() { + return ((DataCatalogStubSettings) getStubSettings()).modifyEntryContactsSettings(); + } + + /** Returns the object with the settings used for calls to createTagTemplate. */ + public UnaryCallSettings createTagTemplateSettings() { + return ((DataCatalogStubSettings) getStubSettings()).createTagTemplateSettings(); + } + + /** Returns the object with the settings used for calls to getTagTemplate. */ + public UnaryCallSettings getTagTemplateSettings() { + return ((DataCatalogStubSettings) getStubSettings()).getTagTemplateSettings(); + } + + /** Returns the object with the settings used for calls to updateTagTemplate. */ + public UnaryCallSettings updateTagTemplateSettings() { + return ((DataCatalogStubSettings) getStubSettings()).updateTagTemplateSettings(); + } + + /** Returns the object with the settings used for calls to deleteTagTemplate. */ + public UnaryCallSettings deleteTagTemplateSettings() { + return ((DataCatalogStubSettings) getStubSettings()).deleteTagTemplateSettings(); + } + + /** Returns the object with the settings used for calls to createTagTemplateField. */ + public UnaryCallSettings + createTagTemplateFieldSettings() { + return ((DataCatalogStubSettings) getStubSettings()).createTagTemplateFieldSettings(); + } + + /** Returns the object with the settings used for calls to updateTagTemplateField. */ + public UnaryCallSettings + updateTagTemplateFieldSettings() { + return ((DataCatalogStubSettings) getStubSettings()).updateTagTemplateFieldSettings(); + } + + /** Returns the object with the settings used for calls to renameTagTemplateField. */ + public UnaryCallSettings + renameTagTemplateFieldSettings() { + return ((DataCatalogStubSettings) getStubSettings()).renameTagTemplateFieldSettings(); + } + + /** Returns the object with the settings used for calls to renameTagTemplateFieldEnumValue. */ + public UnaryCallSettings + renameTagTemplateFieldEnumValueSettings() { + return ((DataCatalogStubSettings) getStubSettings()).renameTagTemplateFieldEnumValueSettings(); + } + + /** Returns the object with the settings used for calls to deleteTagTemplateField. */ + public UnaryCallSettings deleteTagTemplateFieldSettings() { + return ((DataCatalogStubSettings) getStubSettings()).deleteTagTemplateFieldSettings(); + } + + /** Returns the object with the settings used for calls to createTag. */ + public UnaryCallSettings createTagSettings() { + return ((DataCatalogStubSettings) getStubSettings()).createTagSettings(); + } + + /** Returns the object with the settings used for calls to updateTag. */ + public UnaryCallSettings updateTagSettings() { + return ((DataCatalogStubSettings) getStubSettings()).updateTagSettings(); + } + + /** Returns the object with the settings used for calls to deleteTag. */ + public UnaryCallSettings deleteTagSettings() { + return ((DataCatalogStubSettings) getStubSettings()).deleteTagSettings(); + } + + /** Returns the object with the settings used for calls to listTags. */ + public PagedCallSettings + listTagsSettings() { + return ((DataCatalogStubSettings) getStubSettings()).listTagsSettings(); + } + + /** Returns the object with the settings used for calls to reconcileTags. */ + public UnaryCallSettings reconcileTagsSettings() { + return ((DataCatalogStubSettings) getStubSettings()).reconcileTagsSettings(); + } + + /** Returns the object with the settings used for calls to reconcileTags. */ + public OperationCallSettings + reconcileTagsOperationSettings() { + return ((DataCatalogStubSettings) getStubSettings()).reconcileTagsOperationSettings(); + } + + /** Returns the object with the settings used for calls to starEntry. */ + public UnaryCallSettings starEntrySettings() { + return ((DataCatalogStubSettings) getStubSettings()).starEntrySettings(); + } + + /** Returns the object with the settings used for calls to unstarEntry. */ + public UnaryCallSettings unstarEntrySettings() { + return ((DataCatalogStubSettings) getStubSettings()).unstarEntrySettings(); + } + + /** Returns the object with the settings used for calls to setIamPolicy. */ + public UnaryCallSettings setIamPolicySettings() { + return ((DataCatalogStubSettings) getStubSettings()).setIamPolicySettings(); + } + + /** Returns the object with the settings used for calls to getIamPolicy. */ + public UnaryCallSettings getIamPolicySettings() { + return ((DataCatalogStubSettings) getStubSettings()).getIamPolicySettings(); + } + + /** Returns the object with the settings used for calls to testIamPermissions. */ + public UnaryCallSettings + testIamPermissionsSettings() { + return ((DataCatalogStubSettings) getStubSettings()).testIamPermissionsSettings(); + } + + /** Returns the object with the settings used for calls to importEntries. */ + public UnaryCallSettings importEntriesSettings() { + return ((DataCatalogStubSettings) getStubSettings()).importEntriesSettings(); + } + + /** Returns the object with the settings used for calls to importEntries. */ + public OperationCallSettings + importEntriesOperationSettings() { + return ((DataCatalogStubSettings) getStubSettings()).importEntriesOperationSettings(); + } + + 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(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + 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. */ + @BetaApi + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected 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(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()); + } + + @BetaApi + 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. */ + public PagedCallSettings.Builder< + SearchCatalogRequest, SearchCatalogResponse, SearchCatalogPagedResponse> + searchCatalogSettings() { + return getStubSettingsBuilder().searchCatalogSettings(); + } + + /** Returns the builder for the settings used for calls to createEntryGroup. */ + public UnaryCallSettings.Builder + createEntryGroupSettings() { + return getStubSettingsBuilder().createEntryGroupSettings(); + } + + /** Returns the builder for the settings used for calls to getEntryGroup. */ + public UnaryCallSettings.Builder getEntryGroupSettings() { + return getStubSettingsBuilder().getEntryGroupSettings(); + } + + /** Returns the builder for the settings used for calls to updateEntryGroup. */ + public UnaryCallSettings.Builder + updateEntryGroupSettings() { + return getStubSettingsBuilder().updateEntryGroupSettings(); + } + + /** Returns the builder for the settings used for calls to deleteEntryGroup. */ + public UnaryCallSettings.Builder deleteEntryGroupSettings() { + return getStubSettingsBuilder().deleteEntryGroupSettings(); + } + + /** Returns the builder for the settings used for calls to listEntryGroups. */ + public PagedCallSettings.Builder< + ListEntryGroupsRequest, ListEntryGroupsResponse, ListEntryGroupsPagedResponse> + listEntryGroupsSettings() { + return getStubSettingsBuilder().listEntryGroupsSettings(); + } + + /** Returns the builder for the settings used for calls to createEntry. */ + public UnaryCallSettings.Builder createEntrySettings() { + return getStubSettingsBuilder().createEntrySettings(); + } + + /** Returns the builder for the settings used for calls to updateEntry. */ + public UnaryCallSettings.Builder updateEntrySettings() { + return getStubSettingsBuilder().updateEntrySettings(); + } + + /** Returns the builder for the settings used for calls to deleteEntry. */ + public UnaryCallSettings.Builder deleteEntrySettings() { + return getStubSettingsBuilder().deleteEntrySettings(); + } + + /** Returns the builder for the settings used for calls to getEntry. */ + public UnaryCallSettings.Builder getEntrySettings() { + return getStubSettingsBuilder().getEntrySettings(); + } + + /** Returns the builder for the settings used for calls to lookupEntry. */ + public UnaryCallSettings.Builder lookupEntrySettings() { + return getStubSettingsBuilder().lookupEntrySettings(); + } + + /** Returns the builder for the settings used for calls to listEntries. */ + public PagedCallSettings.Builder< + ListEntriesRequest, ListEntriesResponse, ListEntriesPagedResponse> + listEntriesSettings() { + return getStubSettingsBuilder().listEntriesSettings(); + } + + /** Returns the builder for the settings used for calls to modifyEntryOverview. */ + public UnaryCallSettings.Builder + modifyEntryOverviewSettings() { + return getStubSettingsBuilder().modifyEntryOverviewSettings(); + } + + /** Returns the builder for the settings used for calls to modifyEntryContacts. */ + public UnaryCallSettings.Builder + modifyEntryContactsSettings() { + return getStubSettingsBuilder().modifyEntryContactsSettings(); + } + + /** Returns the builder for the settings used for calls to createTagTemplate. */ + public UnaryCallSettings.Builder + createTagTemplateSettings() { + return getStubSettingsBuilder().createTagTemplateSettings(); + } + + /** Returns the builder for the settings used for calls to getTagTemplate. */ + public UnaryCallSettings.Builder getTagTemplateSettings() { + return getStubSettingsBuilder().getTagTemplateSettings(); + } + + /** Returns the builder for the settings used for calls to updateTagTemplate. */ + public UnaryCallSettings.Builder + updateTagTemplateSettings() { + return getStubSettingsBuilder().updateTagTemplateSettings(); + } + + /** Returns the builder for the settings used for calls to deleteTagTemplate. */ + public UnaryCallSettings.Builder deleteTagTemplateSettings() { + return getStubSettingsBuilder().deleteTagTemplateSettings(); + } + + /** Returns the builder for the settings used for calls to createTagTemplateField. */ + public UnaryCallSettings.Builder + createTagTemplateFieldSettings() { + return getStubSettingsBuilder().createTagTemplateFieldSettings(); + } + + /** Returns the builder for the settings used for calls to updateTagTemplateField. */ + public UnaryCallSettings.Builder + updateTagTemplateFieldSettings() { + return getStubSettingsBuilder().updateTagTemplateFieldSettings(); + } + + /** Returns the builder for the settings used for calls to renameTagTemplateField. */ + public UnaryCallSettings.Builder + renameTagTemplateFieldSettings() { + return getStubSettingsBuilder().renameTagTemplateFieldSettings(); + } + + /** Returns the builder for the settings used for calls to renameTagTemplateFieldEnumValue. */ + public UnaryCallSettings.Builder + renameTagTemplateFieldEnumValueSettings() { + return getStubSettingsBuilder().renameTagTemplateFieldEnumValueSettings(); + } + + /** Returns the builder for the settings used for calls to deleteTagTemplateField. */ + public UnaryCallSettings.Builder + deleteTagTemplateFieldSettings() { + return getStubSettingsBuilder().deleteTagTemplateFieldSettings(); + } + + /** Returns the builder for the settings used for calls to createTag. */ + public UnaryCallSettings.Builder createTagSettings() { + return getStubSettingsBuilder().createTagSettings(); + } + + /** Returns the builder for the settings used for calls to updateTag. */ + public UnaryCallSettings.Builder updateTagSettings() { + return getStubSettingsBuilder().updateTagSettings(); + } + + /** Returns the builder for the settings used for calls to deleteTag. */ + public UnaryCallSettings.Builder deleteTagSettings() { + return getStubSettingsBuilder().deleteTagSettings(); + } + + /** Returns the builder for the settings used for calls to listTags. */ + public PagedCallSettings.Builder + listTagsSettings() { + return getStubSettingsBuilder().listTagsSettings(); + } + + /** Returns the builder for the settings used for calls to reconcileTags. */ + public UnaryCallSettings.Builder reconcileTagsSettings() { + return getStubSettingsBuilder().reconcileTagsSettings(); + } + + /** Returns the builder for the settings used for calls to reconcileTags. */ + public OperationCallSettings.Builder< + ReconcileTagsRequest, ReconcileTagsResponse, ReconcileTagsMetadata> + reconcileTagsOperationSettings() { + return getStubSettingsBuilder().reconcileTagsOperationSettings(); + } + + /** Returns the builder for the settings used for calls to starEntry. */ + public UnaryCallSettings.Builder starEntrySettings() { + return getStubSettingsBuilder().starEntrySettings(); + } + + /** Returns the builder for the settings used for calls to unstarEntry. */ + public UnaryCallSettings.Builder + unstarEntrySettings() { + return getStubSettingsBuilder().unstarEntrySettings(); + } + + /** Returns the builder for the settings used for calls to setIamPolicy. */ + public UnaryCallSettings.Builder setIamPolicySettings() { + return getStubSettingsBuilder().setIamPolicySettings(); + } + + /** Returns the builder for the settings used for calls to getIamPolicy. */ + public UnaryCallSettings.Builder getIamPolicySettings() { + return getStubSettingsBuilder().getIamPolicySettings(); + } + + /** Returns the builder for the settings used for calls to testIamPermissions. */ + public UnaryCallSettings.Builder + testIamPermissionsSettings() { + return getStubSettingsBuilder().testIamPermissionsSettings(); + } + + /** Returns the builder for the settings used for calls to importEntries. */ + public UnaryCallSettings.Builder importEntriesSettings() { + return getStubSettingsBuilder().importEntriesSettings(); + } + + /** Returns the builder for the settings used for calls to importEntries. */ + public OperationCallSettings.Builder< + ImportEntriesRequest, ImportEntriesResponse, ImportEntriesMetadata> + importEntriesOperationSettings() { + return getStubSettingsBuilder().importEntriesOperationSettings(); + } + + @Override + public DataCatalogSettings build() throws IOException { + return new DataCatalogSettings(this); + } + } +} diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/PolicyTagManagerClient.java rename to java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/PolicyTagManagerClient.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/PolicyTagManagerSerializationClient.java rename to java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/PolicyTagManagerSerializationClient.java 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 new file mode 100644 index 000000000000..434fa6f0d380 --- /dev/null +++ b/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/PolicyTagManagerSerializationSettings.java @@ -0,0 +1,235 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, 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; + +// 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 total timeout of replaceTaxonomy to 30 seconds: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * PolicyTagManagerSerializationSettings.Builder policyTagManagerSerializationSettingsBuilder =
+ *     PolicyTagManagerSerializationSettings.newBuilder();
+ * policyTagManagerSerializationSettingsBuilder
+ *     .replaceTaxonomySettings()
+ *     .setRetrySettings(
+ *         policyTagManagerSerializationSettingsBuilder
+ *             .replaceTaxonomySettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setTotalTimeout(Duration.ofSeconds(30))
+ *             .build());
+ * PolicyTagManagerSerializationSettings policyTagManagerSerializationSettings =
+ *     policyTagManagerSerializationSettingsBuilder.build();
+ * }
+ */ +@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(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + 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. */ + @BetaApi + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected 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(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()); + } + + @BetaApi + 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 new file mode 100644 index 000000000000..f1cb9da09a19 --- /dev/null +++ b/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/PolicyTagManagerSettings.java @@ -0,0 +1,345 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, 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; + +// 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 total timeout of createTaxonomy to 30 seconds: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * PolicyTagManagerSettings.Builder policyTagManagerSettingsBuilder =
+ *     PolicyTagManagerSettings.newBuilder();
+ * policyTagManagerSettingsBuilder
+ *     .createTaxonomySettings()
+ *     .setRetrySettings(
+ *         policyTagManagerSettingsBuilder
+ *             .createTaxonomySettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setTotalTimeout(Duration.ofSeconds(30))
+ *             .build());
+ * PolicyTagManagerSettings policyTagManagerSettings = policyTagManagerSettingsBuilder.build();
+ * }
+ */ +@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(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + 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. */ + @BetaApi + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected 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(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()); + } + + @BetaApi + 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/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/gapic_metadata.json rename to java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/gapic_metadata.json diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/package-info.java rename to java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/package-info.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/DataCatalogStub.java rename to java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/DataCatalogStub.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/DataCatalogStubSettings.java rename to java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/DataCatalogStubSettings.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/GrpcDataCatalogCallableFactory.java rename to java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/GrpcDataCatalogCallableFactory.java 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 new file mode 100644 index 000000000000..d4619210e02d --- /dev/null +++ b/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/GrpcDataCatalogStub.java @@ -0,0 +1,1261 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, 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.ModifyEntryContactsRequest; +import com.google.cloud.datacatalog.v1.ModifyEntryOverviewRequest; +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.SearchCatalogRequest; +import com.google.cloud.datacatalog.v1.SearchCatalogResponse; +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; + +// 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. + */ +@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())) + .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())) + .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())) + .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())) + .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())) + .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())) + .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())) + .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())) + .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())) + .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())) + .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())) + .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())) + .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())) + .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())) + .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())) + .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())) + .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())) + .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())) + .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())) + .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())) + .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())) + .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())) + .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())) + .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())) + .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())) + .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())) + .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())) + .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())) + .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())) + .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())) + .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())) + .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())) + .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())) + .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())) + .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 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(); + }) + .build(); + GrpcCallSettings getEntryGroupTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getEntryGroupMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .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(); + }) + .build(); + GrpcCallSettings + listEntryGroupsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listEntryGroupsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings createEntryTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createEntryMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .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(); + }) + .build(); + GrpcCallSettings getEntryTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getEntryMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .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(); + }) + .build(); + GrpcCallSettings + modifyEntryOverviewTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(modifyEntryOverviewMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings modifyEntryContactsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(modifyEntryContactsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings createTagTemplateTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createTagTemplateMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings getTagTemplateTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getTagTemplateMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .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(); + }) + .build(); + GrpcCallSettings + createTagTemplateFieldTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createTagTemplateFieldMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + updateTagTemplateFieldTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateTagTemplateFieldMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + renameTagTemplateFieldTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(renameTagTemplateFieldMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + renameTagTemplateFieldEnumValueTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(renameTagTemplateFieldEnumValueMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings deleteTagTemplateFieldTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteTagTemplateFieldMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings createTagTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createTagMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .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(); + }) + .build(); + GrpcCallSettings listTagsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listTagsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings reconcileTagsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(reconcileTagsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings starEntryTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(starEntryMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings unstarEntryTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(unstarEntryMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings setIamPolicyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(setIamPolicyMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("resource", String.valueOf(request.getResource())); + return builder.build(); + }) + .build(); + GrpcCallSettings getIamPolicyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getIamPolicyMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("resource", String.valueOf(request.getResource())); + return builder.build(); + }) + .build(); + GrpcCallSettings + testIamPermissionsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(testIamPermissionsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("resource", String.valueOf(request.getResource())); + return builder.build(); + }) + .build(); + GrpcCallSettings importEntriesTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(importEntriesMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + 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.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 final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/GrpcPolicyTagManagerCallableFactory.java rename to java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/GrpcPolicyTagManagerCallableFactory.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/GrpcPolicyTagManagerSerializationCallableFactory.java rename to java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/GrpcPolicyTagManagerSerializationCallableFactory.java 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 new file mode 100644 index 000000000000..6ca4e256ba72 --- /dev/null +++ b/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/GrpcPolicyTagManagerSerializationStub.java @@ -0,0 +1,238 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, 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; + +// 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. + */ +@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())) + .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())) + .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())) + .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(); + }) + .build(); + GrpcCallSettings + importTaxonomiesTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(importTaxonomiesMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + exportTaxonomiesTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(exportTaxonomiesMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .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 new file mode 100644 index 000000000000..da5460455b9f --- /dev/null +++ b/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/GrpcPolicyTagManagerStub.java @@ -0,0 +1,556 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, 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; + +// 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. + */ +@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())) + .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())) + .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())) + .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())) + .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())) + .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())) + .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())) + .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())) + .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())) + .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())) + .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())) + .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())) + .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())) + .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(); + }) + .build(); + GrpcCallSettings deleteTaxonomyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteTaxonomyMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .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(); + }) + .build(); + GrpcCallSettings getTaxonomyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getTaxonomyMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings createPolicyTagTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createPolicyTagMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings deletePolicyTagTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deletePolicyTagMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .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(); + }) + .build(); + GrpcCallSettings getPolicyTagTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getPolicyTagMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings getIamPolicyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getIamPolicyMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("resource", String.valueOf(request.getResource())); + return builder.build(); + }) + .build(); + GrpcCallSettings setIamPolicyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(setIamPolicyMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("resource", String.valueOf(request.getResource())); + return builder.build(); + }) + .build(); + GrpcCallSettings + testIamPermissionsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(testIamPermissionsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("resource", String.valueOf(request.getResource())); + return builder.build(); + }) + .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/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/HttpJsonDataCatalogCallableFactory.java rename to java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/HttpJsonDataCatalogCallableFactory.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 99% rename from owl-bot-staging/java-datacatalog/v1/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/HttpJsonDataCatalogStub.java rename to java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/HttpJsonDataCatalogStub.java index 72074ee25b40..8d83024024c3 100644 --- a/owl-bot-staging/java-datacatalog/v1/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 @@ -34,7 +34,6 @@ import com.google.api.gax.httpjson.ProtoMessageResponseParser; import com.google.api.gax.httpjson.ProtoRestSerializer; import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; -import com.google.api.gax.longrunning.OperationSnapshot; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.RequestParamsBuilder; diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/HttpJsonPolicyTagManagerCallableFactory.java rename to java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/HttpJsonPolicyTagManagerCallableFactory.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/HttpJsonPolicyTagManagerSerializationCallableFactory.java rename to java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/HttpJsonPolicyTagManagerSerializationCallableFactory.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/HttpJsonPolicyTagManagerSerializationStub.java rename to java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/HttpJsonPolicyTagManagerSerializationStub.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/HttpJsonPolicyTagManagerStub.java rename to java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/HttpJsonPolicyTagManagerStub.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/PolicyTagManagerSerializationStub.java rename to java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/PolicyTagManagerSerializationStub.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/PolicyTagManagerSerializationStubSettings.java rename to java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/PolicyTagManagerSerializationStubSettings.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/PolicyTagManagerStub.java rename to java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/PolicyTagManagerStub.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/PolicyTagManagerStubSettings.java rename to java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/PolicyTagManagerStubSettings.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/DataCatalogClient.java rename to java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/DataCatalogClient.java 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 new file mode 100644 index 000000000000..175b498e8d8e --- /dev/null +++ b/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/DataCatalogSettings.java @@ -0,0 +1,513 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY 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; + +// 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 total timeout of createEntryGroup to 30 seconds: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * DataCatalogSettings.Builder dataCatalogSettingsBuilder = DataCatalogSettings.newBuilder();
+ * dataCatalogSettingsBuilder
+ *     .createEntryGroupSettings()
+ *     .setRetrySettings(
+ *         dataCatalogSettingsBuilder
+ *             .createEntryGroupSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setTotalTimeout(Duration.ofSeconds(30))
+ *             .build());
+ * DataCatalogSettings dataCatalogSettings = dataCatalogSettingsBuilder.build();
+ * }
+ */ +@BetaApi +@Generated("by gapic-generator-java") +public class DataCatalogSettings extends ClientSettings { + + /** Returns the object with the settings used for calls to searchCatalog. */ + public PagedCallSettings + searchCatalogSettings() { + return ((DataCatalogStubSettings) getStubSettings()).searchCatalogSettings(); + } + + /** Returns the object with the settings used for calls to createEntryGroup. */ + public UnaryCallSettings createEntryGroupSettings() { + return ((DataCatalogStubSettings) getStubSettings()).createEntryGroupSettings(); + } + + /** Returns the object with the settings used for calls to updateEntryGroup. */ + public UnaryCallSettings updateEntryGroupSettings() { + return ((DataCatalogStubSettings) getStubSettings()).updateEntryGroupSettings(); + } + + /** Returns the object with the settings used for calls to getEntryGroup. */ + public UnaryCallSettings getEntryGroupSettings() { + return ((DataCatalogStubSettings) getStubSettings()).getEntryGroupSettings(); + } + + /** Returns the object with the settings used for calls to deleteEntryGroup. */ + public UnaryCallSettings deleteEntryGroupSettings() { + return ((DataCatalogStubSettings) getStubSettings()).deleteEntryGroupSettings(); + } + + /** Returns the object with the settings used for calls to listEntryGroups. */ + public PagedCallSettings< + ListEntryGroupsRequest, ListEntryGroupsResponse, ListEntryGroupsPagedResponse> + listEntryGroupsSettings() { + return ((DataCatalogStubSettings) getStubSettings()).listEntryGroupsSettings(); + } + + /** Returns the object with the settings used for calls to createEntry. */ + public UnaryCallSettings createEntrySettings() { + return ((DataCatalogStubSettings) getStubSettings()).createEntrySettings(); + } + + /** Returns the object with the settings used for calls to updateEntry. */ + public UnaryCallSettings updateEntrySettings() { + return ((DataCatalogStubSettings) getStubSettings()).updateEntrySettings(); + } + + /** Returns the object with the settings used for calls to deleteEntry. */ + public UnaryCallSettings deleteEntrySettings() { + return ((DataCatalogStubSettings) getStubSettings()).deleteEntrySettings(); + } + + /** Returns the object with the settings used for calls to getEntry. */ + public UnaryCallSettings getEntrySettings() { + return ((DataCatalogStubSettings) getStubSettings()).getEntrySettings(); + } + + /** Returns the object with the settings used for calls to lookupEntry. */ + public UnaryCallSettings lookupEntrySettings() { + return ((DataCatalogStubSettings) getStubSettings()).lookupEntrySettings(); + } + + /** Returns the object with the settings used for calls to listEntries. */ + public PagedCallSettings + listEntriesSettings() { + return ((DataCatalogStubSettings) getStubSettings()).listEntriesSettings(); + } + + /** Returns the object with the settings used for calls to createTagTemplate. */ + public UnaryCallSettings createTagTemplateSettings() { + return ((DataCatalogStubSettings) getStubSettings()).createTagTemplateSettings(); + } + + /** Returns the object with the settings used for calls to getTagTemplate. */ + public UnaryCallSettings getTagTemplateSettings() { + return ((DataCatalogStubSettings) getStubSettings()).getTagTemplateSettings(); + } + + /** Returns the object with the settings used for calls to updateTagTemplate. */ + public UnaryCallSettings updateTagTemplateSettings() { + return ((DataCatalogStubSettings) getStubSettings()).updateTagTemplateSettings(); + } + + /** Returns the object with the settings used for calls to deleteTagTemplate. */ + public UnaryCallSettings deleteTagTemplateSettings() { + return ((DataCatalogStubSettings) getStubSettings()).deleteTagTemplateSettings(); + } + + /** Returns the object with the settings used for calls to createTagTemplateField. */ + public UnaryCallSettings + createTagTemplateFieldSettings() { + return ((DataCatalogStubSettings) getStubSettings()).createTagTemplateFieldSettings(); + } + + /** Returns the object with the settings used for calls to updateTagTemplateField. */ + public UnaryCallSettings + updateTagTemplateFieldSettings() { + return ((DataCatalogStubSettings) getStubSettings()).updateTagTemplateFieldSettings(); + } + + /** Returns the object with the settings used for calls to renameTagTemplateField. */ + public UnaryCallSettings + renameTagTemplateFieldSettings() { + return ((DataCatalogStubSettings) getStubSettings()).renameTagTemplateFieldSettings(); + } + + /** Returns the object with the settings used for calls to renameTagTemplateFieldEnumValue. */ + public UnaryCallSettings + renameTagTemplateFieldEnumValueSettings() { + return ((DataCatalogStubSettings) getStubSettings()).renameTagTemplateFieldEnumValueSettings(); + } + + /** Returns the object with the settings used for calls to deleteTagTemplateField. */ + public UnaryCallSettings deleteTagTemplateFieldSettings() { + return ((DataCatalogStubSettings) getStubSettings()).deleteTagTemplateFieldSettings(); + } + + /** Returns the object with the settings used for calls to createTag. */ + public UnaryCallSettings createTagSettings() { + return ((DataCatalogStubSettings) getStubSettings()).createTagSettings(); + } + + /** Returns the object with the settings used for calls to updateTag. */ + public UnaryCallSettings updateTagSettings() { + return ((DataCatalogStubSettings) getStubSettings()).updateTagSettings(); + } + + /** Returns the object with the settings used for calls to deleteTag. */ + public UnaryCallSettings deleteTagSettings() { + return ((DataCatalogStubSettings) getStubSettings()).deleteTagSettings(); + } + + /** Returns the object with the settings used for calls to listTags. */ + public PagedCallSettings + listTagsSettings() { + return ((DataCatalogStubSettings) getStubSettings()).listTagsSettings(); + } + + /** Returns the object with the settings used for calls to setIamPolicy. */ + public UnaryCallSettings setIamPolicySettings() { + return ((DataCatalogStubSettings) getStubSettings()).setIamPolicySettings(); + } + + /** Returns the object with the settings used for calls to getIamPolicy. */ + public UnaryCallSettings getIamPolicySettings() { + return ((DataCatalogStubSettings) getStubSettings()).getIamPolicySettings(); + } + + /** Returns the object with the settings used for calls to testIamPermissions. */ + 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(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + 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. */ + @BetaApi + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected 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(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()); + } + + @BetaApi + 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. */ + public PagedCallSettings.Builder< + SearchCatalogRequest, SearchCatalogResponse, SearchCatalogPagedResponse> + searchCatalogSettings() { + return getStubSettingsBuilder().searchCatalogSettings(); + } + + /** Returns the builder for the settings used for calls to createEntryGroup. */ + public UnaryCallSettings.Builder + createEntryGroupSettings() { + return getStubSettingsBuilder().createEntryGroupSettings(); + } + + /** Returns the builder for the settings used for calls to updateEntryGroup. */ + public UnaryCallSettings.Builder + updateEntryGroupSettings() { + return getStubSettingsBuilder().updateEntryGroupSettings(); + } + + /** Returns the builder for the settings used for calls to getEntryGroup. */ + public UnaryCallSettings.Builder getEntryGroupSettings() { + return getStubSettingsBuilder().getEntryGroupSettings(); + } + + /** Returns the builder for the settings used for calls to deleteEntryGroup. */ + public UnaryCallSettings.Builder deleteEntryGroupSettings() { + return getStubSettingsBuilder().deleteEntryGroupSettings(); + } + + /** Returns the builder for the settings used for calls to listEntryGroups. */ + public PagedCallSettings.Builder< + ListEntryGroupsRequest, ListEntryGroupsResponse, ListEntryGroupsPagedResponse> + listEntryGroupsSettings() { + return getStubSettingsBuilder().listEntryGroupsSettings(); + } + + /** Returns the builder for the settings used for calls to createEntry. */ + public UnaryCallSettings.Builder createEntrySettings() { + return getStubSettingsBuilder().createEntrySettings(); + } + + /** Returns the builder for the settings used for calls to updateEntry. */ + public UnaryCallSettings.Builder updateEntrySettings() { + return getStubSettingsBuilder().updateEntrySettings(); + } + + /** Returns the builder for the settings used for calls to deleteEntry. */ + public UnaryCallSettings.Builder deleteEntrySettings() { + return getStubSettingsBuilder().deleteEntrySettings(); + } + + /** Returns the builder for the settings used for calls to getEntry. */ + public UnaryCallSettings.Builder getEntrySettings() { + return getStubSettingsBuilder().getEntrySettings(); + } + + /** Returns the builder for the settings used for calls to lookupEntry. */ + public UnaryCallSettings.Builder lookupEntrySettings() { + return getStubSettingsBuilder().lookupEntrySettings(); + } + + /** Returns the builder for the settings used for calls to listEntries. */ + public PagedCallSettings.Builder< + ListEntriesRequest, ListEntriesResponse, ListEntriesPagedResponse> + listEntriesSettings() { + return getStubSettingsBuilder().listEntriesSettings(); + } + + /** Returns the builder for the settings used for calls to createTagTemplate. */ + public UnaryCallSettings.Builder + createTagTemplateSettings() { + return getStubSettingsBuilder().createTagTemplateSettings(); + } + + /** Returns the builder for the settings used for calls to getTagTemplate. */ + public UnaryCallSettings.Builder getTagTemplateSettings() { + return getStubSettingsBuilder().getTagTemplateSettings(); + } + + /** Returns the builder for the settings used for calls to updateTagTemplate. */ + public UnaryCallSettings.Builder + updateTagTemplateSettings() { + return getStubSettingsBuilder().updateTagTemplateSettings(); + } + + /** Returns the builder for the settings used for calls to deleteTagTemplate. */ + public UnaryCallSettings.Builder deleteTagTemplateSettings() { + return getStubSettingsBuilder().deleteTagTemplateSettings(); + } + + /** Returns the builder for the settings used for calls to createTagTemplateField. */ + public UnaryCallSettings.Builder + createTagTemplateFieldSettings() { + return getStubSettingsBuilder().createTagTemplateFieldSettings(); + } + + /** Returns the builder for the settings used for calls to updateTagTemplateField. */ + public UnaryCallSettings.Builder + updateTagTemplateFieldSettings() { + return getStubSettingsBuilder().updateTagTemplateFieldSettings(); + } + + /** Returns the builder for the settings used for calls to renameTagTemplateField. */ + public UnaryCallSettings.Builder + renameTagTemplateFieldSettings() { + return getStubSettingsBuilder().renameTagTemplateFieldSettings(); + } + + /** Returns the builder for the settings used for calls to renameTagTemplateFieldEnumValue. */ + public UnaryCallSettings.Builder + renameTagTemplateFieldEnumValueSettings() { + return getStubSettingsBuilder().renameTagTemplateFieldEnumValueSettings(); + } + + /** Returns the builder for the settings used for calls to deleteTagTemplateField. */ + public UnaryCallSettings.Builder + deleteTagTemplateFieldSettings() { + return getStubSettingsBuilder().deleteTagTemplateFieldSettings(); + } + + /** Returns the builder for the settings used for calls to createTag. */ + public UnaryCallSettings.Builder createTagSettings() { + return getStubSettingsBuilder().createTagSettings(); + } + + /** Returns the builder for the settings used for calls to updateTag. */ + public UnaryCallSettings.Builder updateTagSettings() { + return getStubSettingsBuilder().updateTagSettings(); + } + + /** Returns the builder for the settings used for calls to deleteTag. */ + public UnaryCallSettings.Builder deleteTagSettings() { + return getStubSettingsBuilder().deleteTagSettings(); + } + + /** Returns the builder for the settings used for calls to listTags. */ + public PagedCallSettings.Builder + listTagsSettings() { + return getStubSettingsBuilder().listTagsSettings(); + } + + /** Returns the builder for the settings used for calls to setIamPolicy. */ + public UnaryCallSettings.Builder setIamPolicySettings() { + return getStubSettingsBuilder().setIamPolicySettings(); + } + + /** Returns the builder for the settings used for calls to getIamPolicy. */ + public UnaryCallSettings.Builder getIamPolicySettings() { + return getStubSettingsBuilder().getIamPolicySettings(); + } + + /** Returns the builder for the settings used for calls to testIamPermissions. */ + public UnaryCallSettings.Builder + testIamPermissionsSettings() { + return getStubSettingsBuilder().testIamPermissionsSettings(); + } + + @Override + public DataCatalogSettings build() throws IOException { + return new DataCatalogSettings(this); + } + } +} diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/PolicyTagManagerClient.java rename to java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/PolicyTagManagerClient.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/PolicyTagManagerSerializationClient.java rename to java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/PolicyTagManagerSerializationClient.java 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 new file mode 100644 index 000000000000..fbee4f0a143a --- /dev/null +++ b/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/PolicyTagManagerSerializationSettings.java @@ -0,0 +1,225 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY 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; + +// 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 total timeout of importTaxonomies to 30 seconds: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * PolicyTagManagerSerializationSettings.Builder policyTagManagerSerializationSettingsBuilder =
+ *     PolicyTagManagerSerializationSettings.newBuilder();
+ * policyTagManagerSerializationSettingsBuilder
+ *     .importTaxonomiesSettings()
+ *     .setRetrySettings(
+ *         policyTagManagerSerializationSettingsBuilder
+ *             .importTaxonomiesSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setTotalTimeout(Duration.ofSeconds(30))
+ *             .build());
+ * PolicyTagManagerSerializationSettings policyTagManagerSerializationSettings =
+ *     policyTagManagerSerializationSettingsBuilder.build();
+ * }
+ */ +@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(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + 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. */ + @BetaApi + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected 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(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()); + } + + @BetaApi + 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 new file mode 100644 index 000000000000..b61a2d57f57b --- /dev/null +++ b/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/PolicyTagManagerSettings.java @@ -0,0 +1,346 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY 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; + +// 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 total timeout of createTaxonomy to 30 seconds: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * PolicyTagManagerSettings.Builder policyTagManagerSettingsBuilder =
+ *     PolicyTagManagerSettings.newBuilder();
+ * policyTagManagerSettingsBuilder
+ *     .createTaxonomySettings()
+ *     .setRetrySettings(
+ *         policyTagManagerSettingsBuilder
+ *             .createTaxonomySettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setTotalTimeout(Duration.ofSeconds(30))
+ *             .build());
+ * PolicyTagManagerSettings policyTagManagerSettings = policyTagManagerSettingsBuilder.build();
+ * }
+ */ +@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(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + 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. */ + @BetaApi + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected 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(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()); + } + + @BetaApi + 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/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/gapic_metadata.json rename to java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/gapic_metadata.json diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/package-info.java rename to java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/package-info.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/DataCatalogStub.java rename to java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/DataCatalogStub.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/DataCatalogStubSettings.java rename to java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/DataCatalogStubSettings.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/GrpcDataCatalogCallableFactory.java rename to java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/GrpcDataCatalogCallableFactory.java 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 new file mode 100644 index 000000000000..7e0d6a053fcb --- /dev/null +++ b/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/GrpcDataCatalogStub.java @@ -0,0 +1,1042 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY 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; + +// 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. + */ +@BetaApi +@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())) + .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())) + .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())) + .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())) + .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())) + .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())) + .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())) + .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())) + .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())) + .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())) + .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())) + .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())) + .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())) + .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())) + .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())) + .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())) + .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())) + .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())) + .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())) + .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())) + .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())) + .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())) + .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())) + .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())) + .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())) + .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())) + .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())) + .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())) + .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(); + }) + .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(); + }) + .build(); + GrpcCallSettings deleteEntryGroupTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteEntryGroupMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + listEntryGroupsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listEntryGroupsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings createEntryTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createEntryMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .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(); + }) + .build(); + GrpcCallSettings getEntryTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getEntryMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .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(); + }) + .build(); + GrpcCallSettings createTagTemplateTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createTagTemplateMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings getTagTemplateTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getTagTemplateMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .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(); + }) + .build(); + GrpcCallSettings + createTagTemplateFieldTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createTagTemplateFieldMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + updateTagTemplateFieldTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateTagTemplateFieldMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + renameTagTemplateFieldTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(renameTagTemplateFieldMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + renameTagTemplateFieldEnumValueTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(renameTagTemplateFieldEnumValueMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings deleteTagTemplateFieldTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteTagTemplateFieldMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings createTagTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createTagMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .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(); + }) + .build(); + GrpcCallSettings listTagsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listTagsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings setIamPolicyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(setIamPolicyMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("resource", String.valueOf(request.getResource())); + return builder.build(); + }) + .build(); + GrpcCallSettings getIamPolicyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getIamPolicyMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("resource", String.valueOf(request.getResource())); + return builder.build(); + }) + .build(); + GrpcCallSettings + testIamPermissionsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(testIamPermissionsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("resource", String.valueOf(request.getResource())); + 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.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/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/GrpcPolicyTagManagerCallableFactory.java rename to java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/GrpcPolicyTagManagerCallableFactory.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/GrpcPolicyTagManagerSerializationCallableFactory.java rename to java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/GrpcPolicyTagManagerSerializationCallableFactory.java 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 new file mode 100644 index 000000000000..03324246a06e --- /dev/null +++ b/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/GrpcPolicyTagManagerSerializationStub.java @@ -0,0 +1,208 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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; + +// 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. + */ +@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())) + .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())) + .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(); + }) + .build(); + GrpcCallSettings + exportTaxonomiesTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(exportTaxonomiesMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .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 new file mode 100644 index 000000000000..7eeb565f7d00 --- /dev/null +++ b/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/GrpcPolicyTagManagerStub.java @@ -0,0 +1,562 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY 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; + +// 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. + */ +@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())) + .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())) + .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())) + .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())) + .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())) + .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())) + .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())) + .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())) + .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())) + .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())) + .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())) + .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())) + .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())) + .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(); + }) + .build(); + GrpcCallSettings deleteTaxonomyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteTaxonomyMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .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(); + }) + .build(); + GrpcCallSettings getTaxonomyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getTaxonomyMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings createPolicyTagTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createPolicyTagMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings deletePolicyTagTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deletePolicyTagMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .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(); + }) + .build(); + GrpcCallSettings getPolicyTagTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getPolicyTagMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings getIamPolicyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getIamPolicyMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("resource", String.valueOf(request.getResource())); + return builder.build(); + }) + .build(); + GrpcCallSettings setIamPolicyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(setIamPolicyMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("resource", String.valueOf(request.getResource())); + return builder.build(); + }) + .build(); + GrpcCallSettings + testIamPermissionsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(testIamPermissionsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("resource", String.valueOf(request.getResource())); + return builder.build(); + }) + .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/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/HttpJsonDataCatalogCallableFactory.java rename to java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/HttpJsonDataCatalogCallableFactory.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/HttpJsonDataCatalogStub.java rename to java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/HttpJsonDataCatalogStub.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/HttpJsonPolicyTagManagerCallableFactory.java rename to java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/HttpJsonPolicyTagManagerCallableFactory.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/HttpJsonPolicyTagManagerSerializationCallableFactory.java rename to java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/HttpJsonPolicyTagManagerSerializationCallableFactory.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/HttpJsonPolicyTagManagerSerializationStub.java rename to java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/HttpJsonPolicyTagManagerSerializationStub.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/HttpJsonPolicyTagManagerStub.java rename to java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/HttpJsonPolicyTagManagerStub.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/PolicyTagManagerSerializationStub.java rename to java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/PolicyTagManagerSerializationStub.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/PolicyTagManagerSerializationStubSettings.java rename to java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/PolicyTagManagerSerializationStubSettings.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/PolicyTagManagerStub.java rename to java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/PolicyTagManagerStub.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/PolicyTagManagerStubSettings.java rename to java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/PolicyTagManagerStubSettings.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/google-cloud-datacatalog/src/main/resources/META-INF/native-image/com.google.cloud.datacatalog.v1/reflect-config.json rename to java-datacatalog/google-cloud-datacatalog/src/main/resources/META-INF/native-image/com.google.cloud.datacatalog.v1/reflect-config.json diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/google-cloud-datacatalog/src/main/resources/META-INF/native-image/com.google.cloud.datacatalog.v1beta1/reflect-config.json rename to java-datacatalog/google-cloud-datacatalog/src/main/resources/META-INF/native-image/com.google.cloud.datacatalog.v1beta1/reflect-config.json diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1/DataCatalogClientHttpJsonTest.java rename to java-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1/DataCatalogClientHttpJsonTest.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1/DataCatalogClientTest.java rename to java-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1/DataCatalogClientTest.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1/MockDataCatalog.java rename to java-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1/MockDataCatalog.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1/MockDataCatalogImpl.java rename to java-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1/MockDataCatalogImpl.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1/MockIAMPolicy.java rename to java-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1/MockIAMPolicy.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1/MockIAMPolicyImpl.java rename to java-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1/MockIAMPolicyImpl.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1/MockPolicyTagManager.java rename to java-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1/MockPolicyTagManager.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1/MockPolicyTagManagerImpl.java rename to java-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1/MockPolicyTagManagerImpl.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1/MockPolicyTagManagerSerialization.java rename to java-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1/MockPolicyTagManagerSerialization.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1/MockPolicyTagManagerSerializationImpl.java rename to java-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1/MockPolicyTagManagerSerializationImpl.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1/PolicyTagManagerClientHttpJsonTest.java rename to java-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1/PolicyTagManagerClientHttpJsonTest.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1/PolicyTagManagerClientTest.java rename to java-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1/PolicyTagManagerClientTest.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1/PolicyTagManagerSerializationClientHttpJsonTest.java rename to java-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1/PolicyTagManagerSerializationClientHttpJsonTest.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1/PolicyTagManagerSerializationClientTest.java rename to java-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1/PolicyTagManagerSerializationClientTest.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1beta1/DataCatalogClientHttpJsonTest.java rename to java-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1beta1/DataCatalogClientHttpJsonTest.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1beta1/DataCatalogClientTest.java rename to java-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1beta1/DataCatalogClientTest.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1beta1/MockDataCatalog.java rename to java-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1beta1/MockDataCatalog.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1beta1/MockDataCatalogImpl.java rename to java-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1beta1/MockDataCatalogImpl.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1beta1/MockIAMPolicy.java rename to java-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1beta1/MockIAMPolicy.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1beta1/MockIAMPolicyImpl.java rename to java-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1beta1/MockIAMPolicyImpl.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1beta1/MockPolicyTagManager.java rename to java-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1beta1/MockPolicyTagManager.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1beta1/MockPolicyTagManagerImpl.java rename to java-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1beta1/MockPolicyTagManagerImpl.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1beta1/MockPolicyTagManagerSerialization.java rename to java-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1beta1/MockPolicyTagManagerSerialization.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1beta1/MockPolicyTagManagerSerializationImpl.java rename to java-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1beta1/MockPolicyTagManagerSerializationImpl.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1beta1/PolicyTagManagerClientHttpJsonTest.java rename to java-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1beta1/PolicyTagManagerClientHttpJsonTest.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1beta1/PolicyTagManagerClientTest.java rename to java-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1beta1/PolicyTagManagerClientTest.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1beta1/PolicyTagManagerSerializationClientHttpJsonTest.java rename to java-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1beta1/PolicyTagManagerSerializationClientHttpJsonTest.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1beta1/PolicyTagManagerSerializationClientTest.java rename to java-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1beta1/PolicyTagManagerSerializationClientTest.java 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 new file mode 100644 index 000000000000..7c76a6a27108 --- /dev/null +++ b/java-datacatalog/grpc-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DataCatalogGrpc.java @@ -0,0 +1,4860 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, 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; + +/** + * + * + *

+ * Data Catalog API service allows you to discover, understand, and manage
+ * your data.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/datacatalog/v1/datacatalog.proto") +@io.grpc.stub.annotations.GrpcGenerated +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; + } + + /** 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 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); + } + + /** + * + * + *
+   * Data Catalog API service allows you to discover, understand, and manage
+   * your data.
+   * 
+ */ + 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).
+     * 
+ */ + 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).
+     * 
+ */ + 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.
+     * 
+ */ + 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).
+     * 
+ */ + 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).
+     * 
+ */ + 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.
+     * 
+ */ + 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.
+     * 
+ */ + 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).
+     * 
+ */ + 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).
+     * 
+ */ + 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.
+     * 
+ */ + 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.
+     * 
+ */ + 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].
+     * 
+ */ + 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.
+     * 
+ */ + 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.
+     * 
+ */ + 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).
+     * 
+ */ + 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.
+     * 
+ */ + 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).
+     * 
+ */ + 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).
+     * 
+ */ + 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).
+     * 
+ */ + 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).
+     * 
+ */ + 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).
+     * 
+ */ + 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.
+     * 
+ */ + 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).
+     * 
+ */ + 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.
+     * 
+ */ + 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.
+     * 
+ */ + 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.
+     * 
+ */ + 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.
+     * 
+ */ + 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.
+     * 
+ */ + 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.
+     * 
+ */ + 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.
+     * 
+ */ + 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.
+     * 
+ */ + 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.
+     * 
+ */ + 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.
+     * 
+ */ + 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.
+     * 
+ */ + default void importEntries( + com.google.cloud.datacatalog.v1.ImportEntriesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getImportEntriesMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service DataCatalog. + * + *
+   * Data Catalog API service allows you to discover, understand, and manage
+   * your data.
+   * 
+ */ + 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. + * + *
+   * Data Catalog API service allows you to discover, understand, and manage
+   * your data.
+   * 
+ */ + 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).
+     * 
+ */ + 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).
+     * 
+ */ + 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.
+     * 
+ */ + 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).
+     * 
+ */ + 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).
+     * 
+ */ + 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.
+     * 
+ */ + 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.
+     * 
+ */ + 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).
+     * 
+ */ + 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).
+     * 
+ */ + 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.
+     * 
+ */ + 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.
+     * 
+ */ + 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].
+     * 
+ */ + 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.
+     * 
+ */ + 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.
+     * 
+ */ + 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).
+     * 
+ */ + 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.
+     * 
+ */ + 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).
+     * 
+ */ + 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).
+     * 
+ */ + 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).
+     * 
+ */ + 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).
+     * 
+ */ + 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).
+     * 
+ */ + 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.
+     * 
+ */ + 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).
+     * 
+ */ + 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.
+     * 
+ */ + 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.
+     * 
+ */ + 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.
+     * 
+ */ + 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.
+     * 
+ */ + 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.
+     * 
+ */ + 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.
+     * 
+ */ + 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.
+     * 
+ */ + 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.
+     * 
+ */ + 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.
+     * 
+ */ + 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.
+     * 
+ */ + 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.
+     * 
+ */ + 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); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service DataCatalog. + * + *
+   * Data Catalog API service allows you to discover, understand, and manage
+   * your data.
+   * 
+ */ + 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).
+     * 
+ */ + 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).
+     * 
+ */ + 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.
+     * 
+ */ + 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).
+     * 
+ */ + 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).
+     * 
+ */ + 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.
+     * 
+ */ + 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.
+     * 
+ */ + 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).
+     * 
+ */ + 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).
+     * 
+ */ + 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.
+     * 
+ */ + 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.
+     * 
+ */ + 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].
+     * 
+ */ + 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.
+     * 
+ */ + 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.
+     * 
+ */ + 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).
+     * 
+ */ + 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.
+     * 
+ */ + 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).
+     * 
+ */ + 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).
+     * 
+ */ + 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).
+     * 
+ */ + 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).
+     * 
+ */ + 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).
+     * 
+ */ + 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.
+     * 
+ */ + 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).
+     * 
+ */ + 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.
+     * 
+ */ + 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.
+     * 
+ */ + 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.
+     * 
+ */ + 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.
+     * 
+ */ + 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.
+     * 
+ */ + 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.
+     * 
+ */ + 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.
+     * 
+ */ + 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.
+     * 
+ */ + 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.
+     * 
+ */ + 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.
+     * 
+ */ + 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.
+     * 
+ */ + public com.google.longrunning.Operation importEntries( + com.google.cloud.datacatalog.v1.ImportEntriesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getImportEntriesMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service DataCatalog. + * + *
+   * Data Catalog API service allows you to discover, understand, and manage
+   * your data.
+   * 
+ */ + 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).
+     * 
+ */ + 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).
+     * 
+ */ + 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.
+     * 
+ */ + 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).
+     * 
+ */ + 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).
+     * 
+ */ + 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.
+     * 
+ */ + 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.
+     * 
+ */ + 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).
+     * 
+ */ + 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).
+     * 
+ */ + 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.
+     * 
+ */ + 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.
+     * 
+ */ + 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].
+     * 
+ */ + 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.
+     * 
+ */ + 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.
+     * 
+ */ + 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).
+     * 
+ */ + 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.
+     * 
+ */ + 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).
+     * 
+ */ + 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).
+     * 
+ */ + 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).
+     * 
+ */ + 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).
+     * 
+ */ + 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).
+     * 
+ */ + 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.
+     * 
+ */ + 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).
+     * 
+ */ + 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.
+     * 
+ */ + 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.
+     * 
+ */ + 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.
+     * 
+ */ + 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.
+     * 
+ */ + 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.
+     * 
+ */ + 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.
+     * 
+ */ + 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.
+     * 
+ */ + 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.
+     * 
+ */ + 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.
+     * 
+ */ + 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.
+     * 
+ */ + 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.
+     * 
+ */ + 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); + } + } + + 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 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; + 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))) + .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()) + .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 new file mode 100644 index 000000000000..5ec468ada522 --- /dev/null +++ b/java-datacatalog/grpc-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/PolicyTagManagerGrpc.java @@ -0,0 +1,1826 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, 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.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/datacatalog/v1/policytagmanager.proto") +@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 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 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 new file mode 100644 index 000000000000..d986af64676f --- /dev/null +++ b/java-datacatalog/grpc-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/PolicyTagManagerSerializationGrpc.java @@ -0,0 +1,720 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, 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.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/datacatalog/v1/policytagmanagerserialization.proto") +@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 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 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/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 new file mode 100644 index 000000000000..7fbaf1f85461 --- /dev/null +++ b/java-datacatalog/grpc-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DataCatalogGrpc.java @@ -0,0 +1,4020 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY 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; + +/** + * + * + *
+ * Data Catalog API service allows clients to discover, understand, and manage
+ * their data.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/datacatalog/v1beta1/datacatalog.proto") +@io.grpc.stub.annotations.GrpcGenerated +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 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); + } + + /** + * + * + *
+   * Data Catalog API service allows clients to discover, understand, and manage
+   * their data.
+   * 
+ */ + 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.
+     * 
+ */ + 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).
+     * 
+ */ + 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).
+     * 
+ */ + 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.
+     * 
+ */ + 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).
+     * 
+ */ + 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.
+     * 
+ */ + 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.
+     * 
+ */ + 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).
+     * 
+ */ + 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).
+     * 
+ */ + 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.
+     * 
+ */ + 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.
+     * 
+ */ + default void lookupEntry( + com.google.cloud.datacatalog.v1beta1.LookupEntryRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getLookupEntryMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists entries.
+     * 
+ */ + 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).
+     * 
+ */ + 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.
+     * 
+ */ + 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).
+     * 
+ */ + 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).
+     * 
+ */ + 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).
+     * 
+ */ + 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).
+     * 
+ */ + 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).
+     * 
+ */ + 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.
+     * 
+ */ + 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).
+     * 
+ */ + 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.
+     * 
+ */ + 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.
+     * 
+ */ + 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.
+     * 
+ */ + 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.
+     * 
+ */ + 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.
+     * 
+ */ + 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.
+     * 
+ */ + 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.
+     * 
+ */ + 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. + * + *
+   * Data Catalog API service allows clients to discover, understand, and manage
+   * their data.
+   * 
+ */ + 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. + * + *
+   * Data Catalog API service allows clients to discover, understand, and manage
+   * their data.
+   * 
+ */ + 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.
+     * 
+ */ + 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).
+     * 
+ */ + 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).
+     * 
+ */ + 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.
+     * 
+ */ + 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).
+     * 
+ */ + 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.
+     * 
+ */ + 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.
+     * 
+ */ + 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).
+     * 
+ */ + 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).
+     * 
+ */ + 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.
+     * 
+ */ + 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.
+     * 
+ */ + 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.
+     * 
+ */ + 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).
+     * 
+ */ + 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.
+     * 
+ */ + 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).
+     * 
+ */ + 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).
+     * 
+ */ + 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).
+     * 
+ */ + 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).
+     * 
+ */ + 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).
+     * 
+ */ + 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.
+     * 
+ */ + 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).
+     * 
+ */ + 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.
+     * 
+ */ + 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.
+     * 
+ */ + 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.
+     * 
+ */ + 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.
+     * 
+ */ + 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.
+     * 
+ */ + 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.
+     * 
+ */ + 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.
+     * 
+ */ + 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. + * + *
+   * Data Catalog API service allows clients to discover, understand, and manage
+   * their data.
+   * 
+ */ + 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.
+     * 
+ */ + 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).
+     * 
+ */ + 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).
+     * 
+ */ + 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.
+     * 
+ */ + 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).
+     * 
+ */ + 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.
+     * 
+ */ + 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.
+     * 
+ */ + 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).
+     * 
+ */ + 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).
+     * 
+ */ + 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.
+     * 
+ */ + 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.
+     * 
+ */ + 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.
+     * 
+ */ + 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).
+     * 
+ */ + 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.
+     * 
+ */ + 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).
+     * 
+ */ + 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).
+     * 
+ */ + 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).
+     * 
+ */ + 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).
+     * 
+ */ + 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).
+     * 
+ */ + 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.
+     * 
+ */ + 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).
+     * 
+ */ + 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.
+     * 
+ */ + 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.
+     * 
+ */ + 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.
+     * 
+ */ + 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.
+     * 
+ */ + 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.
+     * 
+ */ + 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.
+     * 
+ */ + 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.
+     * 
+ */ + 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. + * + *
+   * Data Catalog API service allows clients to discover, understand, and manage
+   * their data.
+   * 
+ */ + 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.
+     * 
+ */ + 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).
+     * 
+ */ + 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).
+     * 
+ */ + 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.
+     * 
+ */ + 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).
+     * 
+ */ + 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.
+     * 
+ */ + 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.
+     * 
+ */ + 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).
+     * 
+ */ + 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).
+     * 
+ */ + 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.
+     * 
+ */ + 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.
+     * 
+ */ + 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.
+     * 
+ */ + 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).
+     * 
+ */ + 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.
+     * 
+ */ + 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).
+     * 
+ */ + 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).
+     * 
+ */ + 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).
+     * 
+ */ + 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).
+     * 
+ */ + 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).
+     * 
+ */ + 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.
+     * 
+ */ + 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).
+     * 
+ */ + 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.
+     * 
+ */ + 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.
+     * 
+ */ + 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.
+     * 
+ */ + 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.
+     * 
+ */ + 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.
+     * 
+ */ + 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.
+     * 
+ */ + 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.
+     * 
+ */ + 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 new file mode 100644 index 000000000000..d43ac7a8b3b6 --- /dev/null +++ b/java-datacatalog/grpc-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/PolicyTagManagerGrpc.java @@ -0,0 +1,1793 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY 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.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/datacatalog/v1beta1/policytagmanager.proto") +@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 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 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 new file mode 100644 index 000000000000..5890cc0f07b0 --- /dev/null +++ b/java-datacatalog/grpc-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/PolicyTagManagerSerializationGrpc.java @@ -0,0 +1,543 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY 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.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/datacatalog/v1beta1/policytagmanagerserialization.proto") +@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 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 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/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 new file mode 100644 index 000000000000..e955ddceb307 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/BigQueryConnectionSpec.java @@ -0,0 +1,1231 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/bigquery.proto + +package com.google.cloud.datacatalog.v1; + +/** + * + * + *
+ * Specification for the BigQuery connection.
+ * 
+ * + * Protobuf type {@code google.cloud.datacatalog.v1.BigQueryConnectionSpec} + */ +public final class BigQueryConnectionSpec extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.BigQueryConnectionSpec) + BigQueryConnectionSpecOrBuilder { + private static final long serialVersionUID = 0L; + // Use BigQueryConnectionSpec.newBuilder() to construct. + private BigQueryConnectionSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BigQueryConnectionSpec() { + connectionType_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BigQueryConnectionSpec(); + } + + 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.GeneratedMessageV3.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), + ; + + /** + * + * + *
+     * 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 final 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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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(getCloudSqlFieldBuilder().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.SingleFieldBuilderV3< + 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 getCloudSqlFieldBuilder().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.SingleFieldBuilderV3< + com.google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec, + com.google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec.Builder, + com.google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpecOrBuilder> + getCloudSqlFieldBuilder() { + if (cloudSqlBuilder_ == null) { + if (!(connectionSpecCase_ == 2)) { + connectionSpec_ = + com.google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec.getDefaultInstance(); + } + cloudSqlBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + 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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..5d6ee6a51a92 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/BigQueryConnectionSpecOrBuilder.java @@ -0,0 +1,103 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/bigquery.proto + +package com.google.cloud.datacatalog.v1; + +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 new file mode 100644 index 000000000000..c38e61c80f63 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/BigQueryDateShardedSpec.java @@ -0,0 +1,1153 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/table_spec.proto + +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} + */ +public final class BigQueryDateShardedSpec extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.BigQueryDateShardedSpec) + BigQueryDateShardedSpecOrBuilder { + private static final long serialVersionUID = 0L; + // Use BigQueryDateShardedSpec.newBuilder() to construct. + private BigQueryDateShardedSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BigQueryDateShardedSpec() { + dataset_ = ""; + tablePrefix_ = ""; + latestShardResource_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BigQueryDateShardedSpec(); + } + + 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(dataset_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, dataset_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tablePrefix_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, tablePrefix_); + } + if (shardCount_ != 0L) { + output.writeInt64(3, shardCount_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(latestShardResource_)) { + com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(dataset_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, dataset_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tablePrefix_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, tablePrefix_); + } + if (shardCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, shardCount_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(latestShardResource_)) { + size += com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..8d7abf2d6ead --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/BigQueryDateShardedSpecOrBuilder.java @@ -0,0 +1,131 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/table_spec.proto + +package com.google.cloud.datacatalog.v1; + +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 new file mode 100644 index 000000000000..3178fc484d41 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/BigQueryProto.java @@ -0,0 +1,110 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/bigquery.proto + +package com.google.cloud.datacatalog.v1; + +public final class BigQueryProto { + private 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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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\325\001\n\037com.google.cl" + + "oud.datacatalog.v1B\rBigQueryProtoP\001ZAclo" + + "ud.google.com/go/datacatalog/apiv1/datac" + + "atalogpb;datacatalogpb\370\001\001\252\002\033Google.Cloud" + + ".DataCatalog.V1\312\002\033Google\\Cloud\\DataCatal" + + "og\\V1\352\002\036Google::Cloud::DataCatalog::V1b\006" + + "proto3" + }; + 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().getMessageTypes().get(0); + internal_static_google_cloud_datacatalog_v1_BigQueryConnectionSpec_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.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().getMessageTypes().get(1); + internal_static_google_cloud_datacatalog_v1_CloudSqlBigQueryConnectionSpec_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.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().getMessageTypes().get(2); + internal_static_google_cloud_datacatalog_v1_BigQueryRoutineSpec_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datacatalog_v1_BigQueryRoutineSpec_descriptor, + new java.lang.String[] { + "ImportedLibraries", + }); + 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 new file mode 100644 index 000000000000..3191731ab501 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/BigQueryRoutineSpec.java @@ -0,0 +1,719 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/bigquery.proto + +package com.google.cloud.datacatalog.v1; + +/** + * + * + *
+ * Fields specific for BigQuery routines.
+ * 
+ * + * Protobuf type {@code google.cloud.datacatalog.v1.BigQueryRoutineSpec} + */ +public final class BigQueryRoutineSpec extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.BigQueryRoutineSpec) + BigQueryRoutineSpecOrBuilder { + private static final long serialVersionUID = 0L; + // Use BigQueryRoutineSpec.newBuilder() to construct. + private BigQueryRoutineSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BigQueryRoutineSpec() { + importedLibraries_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BigQueryRoutineSpec(); + } + + 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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..ff0033280899 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/BigQueryRoutineSpecOrBuilder.java @@ -0,0 +1,76 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/bigquery.proto + +package com.google.cloud.datacatalog.v1; + +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 new file mode 100644 index 000000000000..a4b540547201 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/BigQueryTableSpec.java @@ -0,0 +1,1300 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/table_spec.proto + +package com.google.cloud.datacatalog.v1; + +/** + * + * + *
+ * Describes a BigQuery table.
+ * 
+ * + * Protobuf type {@code google.cloud.datacatalog.v1.BigQueryTableSpec} + */ +public final class BigQueryTableSpec extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.BigQueryTableSpec) + BigQueryTableSpecOrBuilder { + private static final long serialVersionUID = 0L; + // Use BigQueryTableSpec.newBuilder() to construct. + private BigQueryTableSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BigQueryTableSpec() { + tableSourceType_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BigQueryTableSpec(); + } + + 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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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(getViewSpecFieldBuilder().getBuilder(), extensionRegistry); + typeSpecCase_ = 2; + break; + } // case 18 + case 26: + { + input.readMessage(getTableSpecFieldBuilder().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.SingleFieldBuilderV3< + 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 getViewSpecFieldBuilder().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.SingleFieldBuilderV3< + com.google.cloud.datacatalog.v1.ViewSpec, + com.google.cloud.datacatalog.v1.ViewSpec.Builder, + com.google.cloud.datacatalog.v1.ViewSpecOrBuilder> + getViewSpecFieldBuilder() { + if (viewSpecBuilder_ == null) { + if (!(typeSpecCase_ == 2)) { + typeSpec_ = com.google.cloud.datacatalog.v1.ViewSpec.getDefaultInstance(); + } + viewSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + 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.SingleFieldBuilderV3< + 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 getTableSpecFieldBuilder().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.SingleFieldBuilderV3< + com.google.cloud.datacatalog.v1.TableSpec, + com.google.cloud.datacatalog.v1.TableSpec.Builder, + com.google.cloud.datacatalog.v1.TableSpecOrBuilder> + getTableSpecFieldBuilder() { + if (tableSpecBuilder_ == null) { + if (!(typeSpecCase_ == 3)) { + typeSpec_ = com.google.cloud.datacatalog.v1.TableSpec.getDefaultInstance(); + } + tableSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + 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_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..d0090852bcfc --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/BigQueryTableSpecOrBuilder.java @@ -0,0 +1,132 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/table_spec.proto + +package com.google.cloud.datacatalog.v1; + +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 new file mode 100644 index 000000000000..b0ec66afecbc --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/BusinessContext.java @@ -0,0 +1,972 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/datacatalog.proto + +package com.google.cloud.datacatalog.v1; + +/** + * + * + *
+ * Business Context of the entry.
+ * 
+ * + * Protobuf type {@code google.cloud.datacatalog.v1.BusinessContext} + */ +public final class BusinessContext extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.BusinessContext) + BusinessContextOrBuilder { + private static final long serialVersionUID = 0L; + // Use BusinessContext.newBuilder() to construct. + private BusinessContext(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BusinessContext() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new 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.GeneratedMessageV3.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); + } + + 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 entryOverview_ != null; + } + /** + * + * + *
+   * 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 contacts_ != null; + } + /** + * + * + *
+   * 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 (entryOverview_ != null) { + output.writeMessage(1, getEntryOverview()); + } + if (contacts_ != null) { + output.writeMessage(2, getContacts()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (entryOverview_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getEntryOverview()); + } + if (contacts_ != null) { + 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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @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_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.entryOverview_ = + entryOverviewBuilder_ == null ? entryOverview_ : entryOverviewBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.contacts_ = contactsBuilder_ == null ? contacts_ : contactsBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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(getEntryOverviewFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getContactsFieldBuilder().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.SingleFieldBuilderV3< + 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); + } + 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 getEntryOverviewFieldBuilder().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.SingleFieldBuilderV3< + com.google.cloud.datacatalog.v1.EntryOverview, + com.google.cloud.datacatalog.v1.EntryOverview.Builder, + com.google.cloud.datacatalog.v1.EntryOverviewOrBuilder> + getEntryOverviewFieldBuilder() { + if (entryOverviewBuilder_ == null) { + entryOverviewBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + 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.SingleFieldBuilderV3< + 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); + } + 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 getContactsFieldBuilder().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.SingleFieldBuilderV3< + com.google.cloud.datacatalog.v1.Contacts, + com.google.cloud.datacatalog.v1.Contacts.Builder, + com.google.cloud.datacatalog.v1.ContactsOrBuilder> + getContactsFieldBuilder() { + if (contactsBuilder_ == null) { + contactsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + 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_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..146652f84263 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/BusinessContextOrBuilder.java @@ -0,0 +1,95 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/datacatalog.proto + +package com.google.cloud.datacatalog.v1; + +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/CloudBigtableInstanceSpec.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CloudBigtableInstanceSpec.java new file mode 100644 index 000000000000..be1610cfbdbf --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CloudBigtableInstanceSpec.java @@ -0,0 +1,2351 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/datacatalog.proto + +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} + */ +public final class CloudBigtableInstanceSpec extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.CloudBigtableInstanceSpec) + CloudBigtableInstanceSpecOrBuilder { + private static final long serialVersionUID = 0L; + // Use CloudBigtableInstanceSpec.newBuilder() to construct. + private CloudBigtableInstanceSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CloudBigtableInstanceSpec() { + cloudBigtableClusterSpecs_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CloudBigtableInstanceSpec(); + } + + 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.GeneratedMessageV3.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.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.CloudBigtableInstanceSpec.CloudBigtableClusterSpec) + CloudBigtableClusterSpecOrBuilder { + private static final long serialVersionUID = 0L; + // Use CloudBigtableClusterSpec.newBuilder() to construct. + private CloudBigtableClusterSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CloudBigtableClusterSpec() { + displayName_ = ""; + location_ = ""; + type_ = ""; + linkedResource_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CloudBigtableClusterSpec(); + } + + 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(location_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, location_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, type_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(linkedResource_)) { + com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(location_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, location_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, type_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(linkedResource_)) { + size += com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.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; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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.GeneratedMessageV3.alwaysUseFieldBuilders + ? getCloudBigtableClusterSpecsFieldBuilder() + : 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.RepeatedFieldBuilderV3< + 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 getCloudBigtableClusterSpecsFieldBuilder().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 getCloudBigtableClusterSpecsFieldBuilder() + .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 getCloudBigtableClusterSpecsFieldBuilder() + .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 getCloudBigtableClusterSpecsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec.CloudBigtableClusterSpec, + com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec.CloudBigtableClusterSpec + .Builder, + com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec + .CloudBigtableClusterSpecOrBuilder> + getCloudBigtableClusterSpecsFieldBuilder() { + if (cloudBigtableClusterSpecsBuilder_ == null) { + cloudBigtableClusterSpecsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + 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_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..ab20ba9ad32f --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CloudBigtableInstanceSpecOrBuilder.java @@ -0,0 +1,93 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/datacatalog.proto + +package com.google.cloud.datacatalog.v1; + +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 new file mode 100644 index 000000000000..218ae61db708 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CloudBigtableSystemSpec.java @@ -0,0 +1,636 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/datacatalog.proto + +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} + */ +public final class CloudBigtableSystemSpec extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.CloudBigtableSystemSpec) + CloudBigtableSystemSpecOrBuilder { + private static final long serialVersionUID = 0L; + // Use CloudBigtableSystemSpec.newBuilder() to construct. + private CloudBigtableSystemSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CloudBigtableSystemSpec() { + instanceDisplayName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CloudBigtableSystemSpec(); + } + + 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(instanceDisplayName_)) { + com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(instanceDisplayName_)) { + size += com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..2f37f1059d9e --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CloudBigtableSystemSpecOrBuilder.java @@ -0,0 +1,52 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/datacatalog.proto + +package com.google.cloud.datacatalog.v1; + +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 new file mode 100644 index 000000000000..dd69535127ab --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CloudSqlBigQueryConnectionSpec.java @@ -0,0 +1,1139 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/bigquery.proto + +package com.google.cloud.datacatalog.v1; + +/** + * + * + *
+ * Specification for the BigQuery connection to a Cloud SQL instance.
+ * 
+ * + * Protobuf type {@code google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec} + */ +public final class CloudSqlBigQueryConnectionSpec extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec) + CloudSqlBigQueryConnectionSpecOrBuilder { + private static final long serialVersionUID = 0L; + // Use CloudSqlBigQueryConnectionSpec.newBuilder() to construct. + private CloudSqlBigQueryConnectionSpec( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CloudSqlBigQueryConnectionSpec() { + instanceId_ = ""; + database_ = ""; + type_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CloudSqlBigQueryConnectionSpec(); + } + + 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.GeneratedMessageV3.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), + ; + + /** + * + * + *
+     * 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 final 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.GeneratedMessageV3.isStringEmpty(instanceId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, instanceId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(database_)) { + com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(instanceId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, instanceId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(database_)) { + size += com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..766065f3a75e --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CloudSqlBigQueryConnectionSpecOrBuilder.java @@ -0,0 +1,100 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/bigquery.proto + +package com.google.cloud.datacatalog.v1; + +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 new file mode 100644 index 000000000000..e91b08ea4937 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ColumnSchema.java @@ -0,0 +1,3921 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/schema.proto + +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} + */ +public final class ColumnSchema extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.ColumnSchema) + ColumnSchemaOrBuilder { + private static final long serialVersionUID = 0L; + // Use ColumnSchema.newBuilder() to construct. + private ColumnSchema(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ColumnSchema() { + column_ = ""; + type_ = ""; + description_ = ""; + mode_ = ""; + defaultValue_ = ""; + highestIndexingType_ = 0; + subcolumns_ = java.util.Collections.emptyList(); + gcRule_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ColumnSchema(); + } + + 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.GeneratedMessageV3.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), + ; + + /** + * + * + *
+     * 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 final 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.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.ColumnSchema.LookerColumnSpec) + LookerColumnSpecOrBuilder { + private static final long serialVersionUID = 0L; + // Use LookerColumnSpec.newBuilder() to construct. + private LookerColumnSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private LookerColumnSpec() { + type_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new LookerColumnSpec(); + } + + 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.GeneratedMessageV3.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), + ; + + /** + * + * + *
+       * 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 final 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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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; + } + } + + 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 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.GeneratedMessageV3.isStringEmpty(type_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, type_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mode_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, mode_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(column_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, column_); + } + for (int i = 0; i < subcolumns_.size(); i++) { + output.writeMessage(7, subcolumns_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(defaultValue_)) { + com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(gcRule_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 11, gcRule_); + } + if (systemSpecCase_ == 18) { + output.writeMessage( + 18, (com.google.cloud.datacatalog.v1.ColumnSchema.LookerColumnSpec) systemSpec_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, type_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mode_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, mode_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(column_)) { + size += com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(defaultValue_)) { + size += com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(gcRule_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, gcRule_); + } + if (systemSpecCase_ == 18) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 18, (com.google.cloud.datacatalog.v1.ColumnSchema.LookerColumnSpec) 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.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 (!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(); + } + 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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @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(); + } + 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_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.gcRule_ = gcRule_; + } + } + + 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 clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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.GeneratedMessageV3.alwaysUseFieldBuilders + ? getSubcolumnsFieldBuilder() + : null; + } else { + subcolumnsBuilder_.addAllMessages(other.subcolumns_); + } + } + } + if (!other.getGcRule().isEmpty()) { + gcRule_ = other.gcRule_; + bitField0_ |= 0x00000200; + 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_ |= 0x00000200; + break; + } // case 90 + case 146: + { + input.readMessage( + getLookerColumnSpecFieldBuilder().getBuilder(), extensionRegistry); + systemSpecCase_ = 18; + break; + } // case 146 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int 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.RepeatedFieldBuilderV3< + 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 getSubcolumnsFieldBuilder().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 getSubcolumnsFieldBuilder() + .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 getSubcolumnsFieldBuilder() + .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 getSubcolumnsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datacatalog.v1.ColumnSchema, + com.google.cloud.datacatalog.v1.ColumnSchema.Builder, + com.google.cloud.datacatalog.v1.ColumnSchemaOrBuilder> + getSubcolumnsFieldBuilder() { + if (subcolumnsBuilder_ == null) { + subcolumnsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + 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.SingleFieldBuilderV3< + 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 getLookerColumnSpecFieldBuilder().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.SingleFieldBuilderV3< + com.google.cloud.datacatalog.v1.ColumnSchema.LookerColumnSpec, + com.google.cloud.datacatalog.v1.ColumnSchema.LookerColumnSpec.Builder, + com.google.cloud.datacatalog.v1.ColumnSchema.LookerColumnSpecOrBuilder> + getLookerColumnSpecFieldBuilder() { + if (lookerColumnSpecBuilder_ == null) { + if (!(systemSpecCase_ == 18)) { + systemSpec_ = + com.google.cloud.datacatalog.v1.ColumnSchema.LookerColumnSpec.getDefaultInstance(); + } + lookerColumnSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + 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 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_ |= 0x00000200; + 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_ & ~0x00000200); + 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_ |= 0x00000200; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..64cd0e3b7aee --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ColumnSchemaOrBuilder.java @@ -0,0 +1,351 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/schema.proto + +package com.google.cloud.datacatalog.v1; + +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. 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 new file mode 100644 index 000000000000..f69b8773337a --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/Common.java @@ -0,0 +1,80 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/common.proto + +package com.google.cloud.datacatalog.v1; + +public final class Common { + private 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.GeneratedMessageV3.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\017PersonalDeta" + + "ils\022\017\n\007starred\030\001 \001(\010\022-\n\tstar_time\030\002 \001(\0132" + + "\032.google.protobuf.Timestamp*\314\001\n\020Integrat" + + "edSystem\022!\n\035INTEGRATED_SYSTEM_UNSPECIFIE" + + "D\020\000\022\014\n\010BIGQUERY\020\001\022\020\n\014CLOUD_PUBSUB\020\002\022\026\n\022D" + + "ATAPROC_METASTORE\020\003\022\014\n\010DATAPLEX\020\004\022\021\n\rCLO" + + "UD_SPANNER\020\006\022\022\n\016CLOUD_BIGTABLE\020\007\022\r\n\tCLOU" + + "D_SQL\020\010\022\n\n\006LOOKER\020\t\022\r\n\tVERTEX_AI\020\n*j\n\016Ma" + + "nagingSystem\022\037\n\033MANAGING_SYSTEM_UNSPECIF" + + "IED\020\000\022\034\n\030MANAGING_SYSTEM_DATAPLEX\020\001\022\031\n\025M" + + "ANAGING_SYSTEM_OTHER\020\002B\306\001\n\037com.google.cl" + + "oud.datacatalog.v1P\001ZAcloud.google.com/g" + + "o/datacatalog/apiv1/datacatalogpb;dataca" + + "talogpb\370\001\001\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.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_datacatalog_v1_PersonalDetails_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_datacatalog_v1_PersonalDetails_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datacatalog_v1_PersonalDetails_descriptor, + new java.lang.String[] { + "Starred", "StarTime", + }); + 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 new file mode 100644 index 000000000000..16fd7207bba9 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CommonUsageStats.java @@ -0,0 +1,577 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/usage.proto + +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} + */ +public final class CommonUsageStats extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.CommonUsageStats) + CommonUsageStatsOrBuilder { + private static final long serialVersionUID = 0L; + // Use CommonUsageStats.newBuilder() to construct. + private CommonUsageStats(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CommonUsageStats() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new 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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..f4137c6fba89 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CommonUsageStatsOrBuilder.java @@ -0,0 +1,50 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/usage.proto + +package com.google.cloud.datacatalog.v1; + +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 new file mode 100644 index 000000000000..b57f9a4e8a2c --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/Contacts.java @@ -0,0 +1,1791 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/datacatalog.proto + +package com.google.cloud.datacatalog.v1; + +/** + * + * + *
+ * Contact people for the entry.
+ * 
+ * + * Protobuf type {@code google.cloud.datacatalog.v1.Contacts} + */ +public final class Contacts extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.Contacts) + ContactsOrBuilder { + private static final long serialVersionUID = 0L; + // Use Contacts.newBuilder() to construct. + private Contacts(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Contacts() { + people_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Contacts(); + } + + 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.GeneratedMessageV3.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.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.Contacts.Person) + PersonOrBuilder { + private static final long serialVersionUID = 0L; + // Use Person.newBuilder() to construct. + private Person(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Person() { + designation_ = ""; + email_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Person(); + } + + 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(designation_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, designation_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(email_)) { + com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(designation_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, designation_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(email_)) { + size += com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPeopleFieldBuilder() + : 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.RepeatedFieldBuilderV3< + 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 getPeopleFieldBuilder().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 getPeopleFieldBuilder() + .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 getPeopleFieldBuilder() + .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 getPeopleFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datacatalog.v1.Contacts.Person, + com.google.cloud.datacatalog.v1.Contacts.Person.Builder, + com.google.cloud.datacatalog.v1.Contacts.PersonOrBuilder> + getPeopleFieldBuilder() { + if (peopleBuilder_ == null) { + peopleBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + 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_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..bd9174acc785 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ContactsOrBuilder.java @@ -0,0 +1,77 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/datacatalog.proto + +package com.google.cloud.datacatalog.v1; + +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 new file mode 100644 index 000000000000..d2d8f0515428 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CreateEntryGroupRequest.java @@ -0,0 +1,1144 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/datacatalog.proto + +package com.google.cloud.datacatalog.v1; + +/** + * + * + *
+ * Request message for
+ * [CreateEntryGroup][google.cloud.datacatalog.v1.DataCatalog.CreateEntryGroup].
+ * 
+ * + * Protobuf type {@code google.cloud.datacatalog.v1.CreateEntryGroupRequest} + */ +public final class CreateEntryGroupRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.CreateEntryGroupRequest) + CreateEntryGroupRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateEntryGroupRequest.newBuilder() to construct. + private CreateEntryGroupRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateEntryGroupRequest() { + parent_ = ""; + entryGroupId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateEntryGroupRequest(); + } + + 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.GeneratedMessageV3.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); + } + + 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 entryGroup_ != null; + } + /** + * + * + *
+   * 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.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (entryGroup_ != null) { + output.writeMessage(2, getEntryGroup()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entryGroupId_)) { + com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (entryGroup_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEntryGroup()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entryGroupId_)) { + size += com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @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_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.entryGroup_ = entryGroupBuilder_ == null ? entryGroup_ : entryGroupBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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(getEntryGroupFieldBuilder().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.SingleFieldBuilderV3< + 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); + } + 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 getEntryGroupFieldBuilder().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.SingleFieldBuilderV3< + com.google.cloud.datacatalog.v1.EntryGroup, + com.google.cloud.datacatalog.v1.EntryGroup.Builder, + com.google.cloud.datacatalog.v1.EntryGroupOrBuilder> + getEntryGroupFieldBuilder() { + if (entryGroupBuilder_ == null) { + entryGroupBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + 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_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..ed595745f8ce --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CreateEntryGroupRequestOrBuilder.java @@ -0,0 +1,130 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/datacatalog.proto + +package com.google.cloud.datacatalog.v1; + +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 new file mode 100644 index 000000000000..2f5867c319e4 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CreateEntryRequest.java @@ -0,0 +1,1139 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/datacatalog.proto + +package com.google.cloud.datacatalog.v1; + +/** + * + * + *
+ * Request message for
+ * [CreateEntry][google.cloud.datacatalog.v1.DataCatalog.CreateEntry].
+ * 
+ * + * Protobuf type {@code google.cloud.datacatalog.v1.CreateEntryRequest} + */ +public final class CreateEntryRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.CreateEntryRequest) + CreateEntryRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateEntryRequest.newBuilder() to construct. + private CreateEntryRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateEntryRequest() { + parent_ = ""; + entryId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateEntryRequest(); + } + + 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.GeneratedMessageV3.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); + } + + 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 entry_ != null; + } + /** + * + * + *
+   * 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.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (entry_ != null) { + output.writeMessage(2, getEntry()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entryId_)) { + com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (entry_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEntry()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entryId_)) { + size += com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @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_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.entry_ = entryBuilder_ == null ? entry_ : entryBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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(getEntryFieldBuilder().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.SingleFieldBuilderV3< + 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); + } + 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 getEntryFieldBuilder().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.SingleFieldBuilderV3< + com.google.cloud.datacatalog.v1.Entry, + com.google.cloud.datacatalog.v1.Entry.Builder, + com.google.cloud.datacatalog.v1.EntryOrBuilder> + getEntryFieldBuilder() { + if (entryBuilder_ == null) { + entryBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + 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_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..9ccc1c224eff --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CreateEntryRequestOrBuilder.java @@ -0,0 +1,131 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/datacatalog.proto + +package com.google.cloud.datacatalog.v1; + +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 new file mode 100644 index 000000000000..01ef7999b08d --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CreatePolicyTagRequest.java @@ -0,0 +1,905 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/policytagmanager.proto + +package com.google.cloud.datacatalog.v1; + +/** + * + * + *
+ * Request message for
+ * [CreatePolicyTag][google.cloud.datacatalog.v1.PolicyTagManager.CreatePolicyTag].
+ * 
+ * + * Protobuf type {@code google.cloud.datacatalog.v1.CreatePolicyTagRequest} + */ +public final class CreatePolicyTagRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.CreatePolicyTagRequest) + CreatePolicyTagRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreatePolicyTagRequest.newBuilder() to construct. + private CreatePolicyTagRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreatePolicyTagRequest() { + parent_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreatePolicyTagRequest(); + } + + 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.GeneratedMessageV3.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); + } + + 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 policyTag_ != null; + } + /** + * + * + *
+   * 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.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (policyTag_ != null) { + 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.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (policyTag_ != null) { + 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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @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_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.policyTag_ = policyTagBuilder_ == null ? policyTag_ : policyTagBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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(getPolicyTagFieldBuilder().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.SingleFieldBuilderV3< + 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); + } + 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 getPolicyTagFieldBuilder().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.SingleFieldBuilderV3< + com.google.cloud.datacatalog.v1.PolicyTag, + com.google.cloud.datacatalog.v1.PolicyTag.Builder, + com.google.cloud.datacatalog.v1.PolicyTagOrBuilder> + getPolicyTagFieldBuilder() { + if (policyTagBuilder_ == null) { + policyTagBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + 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_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..05f66ebff0b2 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CreatePolicyTagRequestOrBuilder.java @@ -0,0 +1,89 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/policytagmanager.proto + +package com.google.cloud.datacatalog.v1; + +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 new file mode 100644 index 000000000000..bf232538634f --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CreateTagRequest.java @@ -0,0 +1,950 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/datacatalog.proto + +package com.google.cloud.datacatalog.v1; + +/** + * + * + *
+ * Request message for
+ * [CreateTag][google.cloud.datacatalog.v1.DataCatalog.CreateTag].
+ * 
+ * + * Protobuf type {@code google.cloud.datacatalog.v1.CreateTagRequest} + */ +public final class CreateTagRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.CreateTagRequest) + CreateTagRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateTagRequest.newBuilder() to construct. + private CreateTagRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateTagRequest() { + parent_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateTagRequest(); + } + + 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.GeneratedMessageV3.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); + } + + 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 tag_ != null; + } + /** + * + * + *
+   * 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.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (tag_ != null) { + 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.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (tag_ != null) { + 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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @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_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.tag_ = tagBuilder_ == null ? tag_ : tagBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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(getTagFieldBuilder().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.SingleFieldBuilderV3< + 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); + } + 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 getTagFieldBuilder().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.SingleFieldBuilderV3< + com.google.cloud.datacatalog.v1.Tag, + com.google.cloud.datacatalog.v1.Tag.Builder, + com.google.cloud.datacatalog.v1.TagOrBuilder> + getTagFieldBuilder() { + if (tagBuilder_ == null) { + tagBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + 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_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..72bb52baa242 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CreateTagRequestOrBuilder.java @@ -0,0 +1,104 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/datacatalog.proto + +package com.google.cloud.datacatalog.v1; + +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 new file mode 100644 index 000000000000..29d424b433f5 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CreateTagTemplateFieldRequest.java @@ -0,0 +1,1176 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/datacatalog.proto + +package com.google.cloud.datacatalog.v1; + +/** + * + * + *
+ * Request message for
+ * [CreateTagTemplateField][google.cloud.datacatalog.v1.DataCatalog.CreateTagTemplateField].
+ * 
+ * + * Protobuf type {@code google.cloud.datacatalog.v1.CreateTagTemplateFieldRequest} + */ +public final class CreateTagTemplateFieldRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.CreateTagTemplateFieldRequest) + CreateTagTemplateFieldRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateTagTemplateFieldRequest.newBuilder() to construct. + private CreateTagTemplateFieldRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateTagTemplateFieldRequest() { + parent_ = ""; + tagTemplateFieldId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateTagTemplateFieldRequest(); + } + + 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.GeneratedMessageV3.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); + } + + 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 tagTemplateField_ != null; + } + /** + * + * + *
+   * 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.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tagTemplateFieldId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, tagTemplateFieldId_); + } + if (tagTemplateField_ != null) { + 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.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tagTemplateFieldId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, tagTemplateFieldId_); + } + if (tagTemplateField_ != null) { + 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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @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_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.tagTemplateField_ = + tagTemplateFieldBuilder_ == null ? tagTemplateField_ : tagTemplateFieldBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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( + getTagTemplateFieldFieldBuilder().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.SingleFieldBuilderV3< + 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); + } + 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 getTagTemplateFieldFieldBuilder().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.SingleFieldBuilderV3< + com.google.cloud.datacatalog.v1.TagTemplateField, + com.google.cloud.datacatalog.v1.TagTemplateField.Builder, + com.google.cloud.datacatalog.v1.TagTemplateFieldOrBuilder> + getTagTemplateFieldFieldBuilder() { + if (tagTemplateFieldBuilder_ == null) { + tagTemplateFieldBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + 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_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..a4e76454f8c1 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CreateTagTemplateFieldRequestOrBuilder.java @@ -0,0 +1,136 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/datacatalog.proto + +package com.google.cloud.datacatalog.v1; + +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 new file mode 100644 index 000000000000..14b30523121a --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CreateTagTemplateRequest.java @@ -0,0 +1,1148 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/datacatalog.proto + +package com.google.cloud.datacatalog.v1; + +/** + * + * + *
+ * Request message for
+ * [CreateTagTemplate][google.cloud.datacatalog.v1.DataCatalog.CreateTagTemplate].
+ * 
+ * + * Protobuf type {@code google.cloud.datacatalog.v1.CreateTagTemplateRequest} + */ +public final class CreateTagTemplateRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.CreateTagTemplateRequest) + CreateTagTemplateRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateTagTemplateRequest.newBuilder() to construct. + private CreateTagTemplateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateTagTemplateRequest() { + parent_ = ""; + tagTemplateId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateTagTemplateRequest(); + } + + 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.GeneratedMessageV3.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); + } + + 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 tagTemplate_ != null; + } + /** + * + * + *
+   * 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.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (tagTemplate_ != null) { + output.writeMessage(2, getTagTemplate()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tagTemplateId_)) { + com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (tagTemplate_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getTagTemplate()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tagTemplateId_)) { + size += com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @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_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.tagTemplate_ = + tagTemplateBuilder_ == null ? tagTemplate_ : tagTemplateBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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(getTagTemplateFieldBuilder().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.SingleFieldBuilderV3< + 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); + } + 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 getTagTemplateFieldBuilder().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.SingleFieldBuilderV3< + com.google.cloud.datacatalog.v1.TagTemplate, + com.google.cloud.datacatalog.v1.TagTemplate.Builder, + com.google.cloud.datacatalog.v1.TagTemplateOrBuilder> + getTagTemplateFieldBuilder() { + if (tagTemplateBuilder_ == null) { + tagTemplateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + 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_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..40df450ff8af --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CreateTagTemplateRequestOrBuilder.java @@ -0,0 +1,130 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/datacatalog.proto + +package com.google.cloud.datacatalog.v1; + +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 new file mode 100644 index 000000000000..3eeaf0fa714d --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CreateTaxonomyRequest.java @@ -0,0 +1,905 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/policytagmanager.proto + +package com.google.cloud.datacatalog.v1; + +/** + * + * + *
+ * Request message for
+ * [CreateTaxonomy][google.cloud.datacatalog.v1.PolicyTagManager.CreateTaxonomy].
+ * 
+ * + * Protobuf type {@code google.cloud.datacatalog.v1.CreateTaxonomyRequest} + */ +public final class CreateTaxonomyRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.CreateTaxonomyRequest) + CreateTaxonomyRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateTaxonomyRequest.newBuilder() to construct. + private CreateTaxonomyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateTaxonomyRequest() { + parent_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateTaxonomyRequest(); + } + + 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.GeneratedMessageV3.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); + } + + 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 taxonomy_ != null; + } + /** + * + * + *
+   * 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.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (taxonomy_ != null) { + 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.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (taxonomy_ != null) { + 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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @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_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.taxonomy_ = taxonomyBuilder_ == null ? taxonomy_ : taxonomyBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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(getTaxonomyFieldBuilder().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.SingleFieldBuilderV3< + 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); + } + 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 getTaxonomyFieldBuilder().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.SingleFieldBuilderV3< + com.google.cloud.datacatalog.v1.Taxonomy, + com.google.cloud.datacatalog.v1.Taxonomy.Builder, + com.google.cloud.datacatalog.v1.TaxonomyOrBuilder> + getTaxonomyFieldBuilder() { + if (taxonomyBuilder_ == null) { + taxonomyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + 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_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..f49978151765 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CreateTaxonomyRequestOrBuilder.java @@ -0,0 +1,89 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/policytagmanager.proto + +package com.google.cloud.datacatalog.v1; + +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 new file mode 100644 index 000000000000..72ad447ee710 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CrossRegionalSource.java @@ -0,0 +1,640 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/policytagmanagerserialization.proto + +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} + */ +public final class CrossRegionalSource extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.CrossRegionalSource) + CrossRegionalSourceOrBuilder { + private static final long serialVersionUID = 0L; + // Use CrossRegionalSource.newBuilder() to construct. + private CrossRegionalSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CrossRegionalSource() { + taxonomy_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CrossRegionalSource(); + } + + 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(taxonomy_)) { + com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(taxonomy_)) { + size += com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..f26fa2d873de --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CrossRegionalSourceOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/policytagmanagerserialization.proto + +package com.google.cloud.datacatalog.v1; + +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 new file mode 100644 index 000000000000..4beaaddebc3e --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DataSource.java @@ -0,0 +1,1509 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/data_source.proto + +package com.google.cloud.datacatalog.v1; + +/** + * + * + *
+ * Physical location of an entry.
+ * 
+ * + * Protobuf type {@code google.cloud.datacatalog.v1.DataSource} + */ +public final class DataSource extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.DataSource) + DataSourceOrBuilder { + private static final long serialVersionUID = 0L; + // Use DataSource.newBuilder() to construct. + private DataSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DataSource() { + service_ = 0; + resource_ = ""; + sourceEntry_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DataSource(); + } + + 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.GeneratedMessageV3.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), + ; + + /** + * + * + *
+     * 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 final 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.GeneratedMessageV3.isStringEmpty(resource_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, resource_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceEntry_)) { + com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(resource_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, resource_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceEntry_)) { + size += com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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( + getStoragePropertiesFieldBuilder().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.SingleFieldBuilderV3< + 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 getStoragePropertiesFieldBuilder().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.SingleFieldBuilderV3< + com.google.cloud.datacatalog.v1.StorageProperties, + com.google.cloud.datacatalog.v1.StorageProperties.Builder, + com.google.cloud.datacatalog.v1.StoragePropertiesOrBuilder> + getStoragePropertiesFieldBuilder() { + if (storagePropertiesBuilder_ == null) { + if (!(propertiesCase_ == 4)) { + properties_ = com.google.cloud.datacatalog.v1.StorageProperties.getDefaultInstance(); + } + storagePropertiesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + 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_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..8a595a41a4a9 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DataSourceConnectionSpec.java @@ -0,0 +1,733 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/datacatalog.proto + +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} + */ +public final class DataSourceConnectionSpec extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.DataSourceConnectionSpec) + DataSourceConnectionSpecOrBuilder { + private static final long serialVersionUID = 0L; + // Use DataSourceConnectionSpec.newBuilder() to construct. + private DataSourceConnectionSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DataSourceConnectionSpec() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new 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.GeneratedMessageV3.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); + } + + 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 bigqueryConnectionSpec_ != null; + } + /** + * + * + *
+   * 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 (bigqueryConnectionSpec_ != null) { + output.writeMessage(1, getBigqueryConnectionSpec()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (bigqueryConnectionSpec_ != null) { + 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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @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_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.bigqueryConnectionSpec_ = + bigqueryConnectionSpecBuilder_ == null + ? bigqueryConnectionSpec_ + : bigqueryConnectionSpecBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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( + getBigqueryConnectionSpecFieldBuilder().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.SingleFieldBuilderV3< + 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); + } + 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 getBigqueryConnectionSpecFieldBuilder().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.SingleFieldBuilderV3< + com.google.cloud.datacatalog.v1.BigQueryConnectionSpec, + com.google.cloud.datacatalog.v1.BigQueryConnectionSpec.Builder, + com.google.cloud.datacatalog.v1.BigQueryConnectionSpecOrBuilder> + getBigqueryConnectionSpecFieldBuilder() { + if (bigqueryConnectionSpecBuilder_ == null) { + bigqueryConnectionSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + 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_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..061e7a65e6c0 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DataSourceConnectionSpecOrBuilder.java @@ -0,0 +1,61 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/datacatalog.proto + +package com.google.cloud.datacatalog.v1; + +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/owl-bot-staging/java-datacatalog/v1/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 similarity index 76% rename from owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DataSourceOrBuilder.java rename to java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DataSourceOrBuilder.java index ceb8a706a156..600fca0f45ed 100644 --- a/owl-bot-staging/java-datacatalog/v1/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 @@ -1,32 +1,56 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datacatalog/v1/data_source.proto package com.google.cloud.datacatalog.v1; -public interface DataSourceOrBuilder extends +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:
    *
@@ -34,10 +58,13 @@ public interface DataSourceOrBuilder extends
    * 
* * string resource = 2; + * * @return The resource. */ java.lang.String getResource(); /** + * + * *
    * Full name of a resource as defined by the service. For example:
    *
@@ -45,50 +72,63 @@ public interface DataSourceOrBuilder extends
    * 
* * string resource = 2; + * * @return The bytes for resource. */ - com.google.protobuf.ByteString - getResourceBytes(); + 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(); + 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.
    * 
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 new file mode 100644 index 000000000000..e90344541e6e --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DataSourceProto.java @@ -0,0 +1,97 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/data_source.proto + +package com.google.cloud.datacatalog.v1; + +public final class DataSourceProto { + private 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.GeneratedMessageV3.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.GeneratedMessageV3.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\"\235\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\032\n\014source_entry\030\003 \001(\tB\004\342A\001\003\022L\n\022" + + "storage_properties\030\004 \001(\0132..google.cloud." + + "datacatalog.v1.StoragePropertiesH\000\"C\n\007Se" + + "rvice\022\027\n\023SERVICE_UNSPECIFIED\020\000\022\021\n\rCLOUD_" + + "STORAGE\020\001\022\014\n\010BIGQUERY\020\002B\014\n\nproperties\"<\n" + + "\021StorageProperties\022\024\n\014file_pattern\030\001 \003(\t" + + "\022\021\n\tfile_type\030\002 \001(\tB\327\001\n\037com.google.cloud" + + ".datacatalog.v1B\017DataSourceProtoP\001ZAclou" + + "d.google.com/go/datacatalog/apiv1/dataca" + + "talogpb;datacatalogpb\370\001\001\252\002\033Google.Cloud." + + "DataCatalog.V1\312\002\033Google\\Cloud\\DataCatalo" + + "g\\V1\352\002\036Google::Cloud::DataCatalog::V1b\006p" + + "roto3" + }; + 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().getMessageTypes().get(0); + internal_static_google_cloud_datacatalog_v1_DataSource_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.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().getMessageTypes().get(1); + internal_static_google_cloud_datacatalog_v1_StorageProperties_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datacatalog_v1_StorageProperties_descriptor, + new java.lang.String[] { + "FilePattern", "FileType", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + } + + // @@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 new file mode 100644 index 000000000000..b4b7254bab49 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DatabaseTableSpec.java @@ -0,0 +1,2798 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/datacatalog.proto + +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} + */ +public final class DatabaseTableSpec extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.DatabaseTableSpec) + DatabaseTableSpecOrBuilder { + private static final long serialVersionUID = 0L; + // Use DatabaseTableSpec.newBuilder() to construct. + private DatabaseTableSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DatabaseTableSpec() { + type_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DatabaseTableSpec(); + } + + 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.GeneratedMessageV3.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), + ; + + /** + * + * + *
+     * 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 final 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.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.DatabaseTableSpec.DatabaseViewSpec) + DatabaseViewSpecOrBuilder { + private static final long serialVersionUID = 0L; + // Use DatabaseViewSpec.newBuilder() to construct. + private DatabaseViewSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DatabaseViewSpec() { + viewType_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DatabaseViewSpec(); + } + + 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.GeneratedMessageV3.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), + ; + + /** + * + * + *
+       * 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 final 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.GeneratedMessageV3.writeString(output, 2, sourceDefinition_); + } + if (sourceDefinitionCase_ == 3) { + com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.computeStringSize(2, sourceDefinition_); + } + if (sourceDefinitionCase_ == 3) { + size += com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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; + } + } + + 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 dataplexTable_ != null; + } + /** + * + * + *
+   * 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 aplies 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 databaseViewSpec_ != null; + } + /** + * + * + *
+   * Spec what aplies 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 aplies 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 (dataplexTable_ != null) { + output.writeMessage(2, getDataplexTable()); + } + if (databaseViewSpec_ != null) { + 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 (dataplexTable_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDataplexTable()); + } + if (databaseViewSpec_ != null) { + 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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @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_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.dataplexTable_ = + dataplexTableBuilder_ == null ? dataplexTable_ : dataplexTableBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.databaseViewSpec_ = + databaseViewSpecBuilder_ == null ? databaseViewSpec_ : databaseViewSpecBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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(getDataplexTableFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + getDatabaseViewSpecFieldBuilder().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.SingleFieldBuilderV3< + 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); + } + 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 getDataplexTableFieldBuilder().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.SingleFieldBuilderV3< + com.google.cloud.datacatalog.v1.DataplexTableSpec, + com.google.cloud.datacatalog.v1.DataplexTableSpec.Builder, + com.google.cloud.datacatalog.v1.DataplexTableSpecOrBuilder> + getDataplexTableFieldBuilder() { + if (dataplexTableBuilder_ == null) { + dataplexTableBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + 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.SingleFieldBuilderV3< + 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 aplies 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 aplies 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 aplies 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 aplies 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 aplies 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); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Spec what aplies 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 aplies 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 getDatabaseViewSpecFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Spec what aplies 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 aplies 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.SingleFieldBuilderV3< + com.google.cloud.datacatalog.v1.DatabaseTableSpec.DatabaseViewSpec, + com.google.cloud.datacatalog.v1.DatabaseTableSpec.DatabaseViewSpec.Builder, + com.google.cloud.datacatalog.v1.DatabaseTableSpec.DatabaseViewSpecOrBuilder> + getDatabaseViewSpecFieldBuilder() { + if (databaseViewSpecBuilder_ == null) { + databaseViewSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + 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_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..37b719521c3e --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DatabaseTableSpecOrBuilder.java @@ -0,0 +1,136 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/datacatalog.proto + +package com.google.cloud.datacatalog.v1; + +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 aplies 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 aplies 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 aplies 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 new file mode 100644 index 000000000000..fcae6bcb1b4f --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/Datacatalog.java @@ -0,0 +1,1498 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/datacatalog.proto + +package com.google.cloud.datacatalog.v1; + +public final class Datacatalog { + private 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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datacatalog_v1_ModelSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datacatalog_v1_BusinessContext_descriptor; + static final com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datacatalog_v1_ModifyEntryContactsRequest_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(goo" + + "gle/cloud/datacatalog/v1/common.proto\032-g" + + "oogle/cloud/datacatalog/v1/data_source.p" + + "roto\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/clou" + + "d/datacatalog/v1/search.proto\032,google/cl" + + "oud/datacatalog/v1/table_spec.proto\032&goo" + + "gle/cloud/datacatalog/v1/tags.proto\032,goo" + + "gle/cloud/datacatalog/v1/timestamps.prot" + + "o\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/emp" + + "ty.proto\032 google/protobuf/field_mask.pro" + + "to\032\027google/rpc/status.proto\"\247\003\n\024SearchCa" + + "talogRequest\022L\n\005scope\030\006 \001(\01327.google.clo" + + "ud.datacatalog.v1.SearchCatalogRequest.S" + + "copeB\004\342A\001\002\022\023\n\005query\030\001 \001(\tB\004\342A\001\001\022\021\n\tpage_" + + "size\030\002 \001(\005\022\030\n\npage_token\030\003 \001(\tB\004\342A\001\001\022\020\n\010" + + "order_by\030\005 \001(\t\022\032\n\014admin_search\030\021 \001(\010B\004\342A" + + "\001\001\032\320\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_gc" + + "p_public_datasets\030\007 \001(\010\022\"\n\024restricted_lo" + + "cations\030\020 \003(\tB\004\342A\001\001\022\032\n\014starred_only\030\022 \001(" + + "\010B\004\342A\001\001\022,\n\034include_public_tag_templates\030" + + "\023 \001(\010B\006\030\001\342A\001\001\"\234\001\n\025SearchCatalogResponse\022" + + "A\n\007results\030\001 \003(\01320.google.cloud.datacata" + + "log.v1.SearchCatalogResult\022\022\n\ntotal_size" + + "\030\002 \001(\005\022\027\n\017next_page_token\030\003 \001(\t\022\023\n\013unrea" + + "chable\030\006 \003(\t\"\265\001\n\027CreateEntryGroupRequest" + + "\022>\n\006parent\030\001 \001(\tB.\342A\001\002\372A\'\022%datacatalog.g" + + "oogleapis.com/EntryGroup\022\034\n\016entry_group_" + + "id\030\003 \001(\tB\004\342A\001\002\022<\n\013entry_group\030\002 \001(\0132\'.go" + + "ogle.cloud.datacatalog.v1.EntryGroup\"\216\001\n" + + "\027UpdateEntryGroupRequest\022B\n\013entry_group\030" + + "\001 \001(\0132\'.google.cloud.datacatalog.v1.Entr" + + "yGroupB\004\342A\001\002\022/\n\013update_mask\030\002 \001(\0132\032.goog" + + "le.protobuf.FieldMask\"\203\001\n\024GetEntryGroupR" + + "equest\022<\n\004name\030\001 \001(\tB.\342A\001\002\372A\'\n%datacatal" + + "og.googleapis.com/EntryGroup\022-\n\tread_mas" + + "k\030\002 \001(\0132\032.google.protobuf.FieldMask\"l\n\027D" + + "eleteEntryGroupRequest\022<\n\004name\030\001 \001(\tB.\342A" + + "\001\002\372A\'\n%datacatalog.googleapis.com/EntryG" + + "roup\022\023\n\005force\030\002 \001(\010B\004\342A\001\001\"\213\001\n\026ListEntryG" + + "roupsRequest\022>\n\006parent\030\001 \001(\tB.\342A\001\002\372A\'\022%d" + + "atacatalog.googleapis.com/EntryGroup\022\027\n\t" + + "page_size\030\002 \001(\005B\004\342A\001\001\022\030\n\npage_token\030\003 \001(" + + "\tB\004\342A\001\001\"q\n\027ListEntryGroupsResponse\022=\n\014en" + + "try_groups\030\001 \003(\0132\'.google.cloud.datacata" + + "log.v1.EntryGroup\022\027\n\017next_page_token\030\002 \001" + + "(\t\"\245\001\n\022CreateEntryRequest\022>\n\006parent\030\001 \001(" + + "\tB.\342A\001\002\372A\'\n%datacatalog.googleapis.com/E" + + "ntryGroup\022\026\n\010entry_id\030\003 \001(\tB\004\342A\001\002\0227\n\005ent" + + "ry\030\002 \001(\0132\".google.cloud.datacatalog.v1.E" + + "ntryB\004\342A\001\002\"~\n\022UpdateEntryRequest\0227\n\005entr" + + "y\030\001 \001(\0132\".google.cloud.datacatalog.v1.En" + + "tryB\004\342A\001\002\022/\n\013update_mask\030\002 \001(\0132\032.google." + + "protobuf.FieldMask\"M\n\022DeleteEntryRequest" + + "\0227\n\004name\030\001 \001(\tB)\342A\001\002\372A\"\n datacatalog.goo" + + "gleapis.com/Entry\"J\n\017GetEntryRequest\0227\n\004" + + "name\030\001 \001(\tB)\342A\001\002\372A\"\n datacatalog.googlea" + + "pis.com/Entry\"\231\001\n\022LookupEntryRequest\022\031\n\017" + + "linked_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\013ta" + + "rget_name\"\252\020\n\005Entry\022<\n\004name\030\001 \001(\tB.\342A\001\003\372" + + "A\'\n%datacatalog.googleapis.com/EntryGrou" + + "p\022\027\n\017linked_resource\030\t \001(\t\022\034\n\024fully_qual" + + "ified_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\022P\n\021integrated_sy" + + "stem\030\021 \001(\0162-.google.cloud.datacatalog.v1" + + ".IntegratedSystemB\004\342A\001\003H\001\022\037\n\025user_specif" + + "ied_system\030\022 \001(\tH\001\022V\n\030sql_database_syste" + + "m_spec\030\' \001(\01322.google.cloud.datacatalog." + + "v1.SqlDatabaseSystemSpecH\002\022K\n\022looker_sys" + + "tem_spec\030( \001(\0132-.google.cloud.datacatalo" + + "g.v1.LookerSystemSpecH\002\022Z\n\032cloud_bigtabl" + + "e_system_spec\030) \001(\01324.google.cloud.datac" + + "atalog.v1.CloudBigtableSystemSpecH\002\022G\n\020g" + + "cs_fileset_spec\030\006 \001(\0132+.google.cloud.dat" + + "acatalog.v1.GcsFilesetSpecH\003\022S\n\023bigquery" + + "_table_spec\030\014 \001(\0132..google.cloud.datacat" + + "alog.v1.BigQueryTableSpecB\004\342A\001\003H\003\022`\n\032big" + + "query_date_sharded_spec\030\017 \001(\01324.google.c" + + "loud.datacatalog.v1.BigQueryDateShardedS" + + "pecB\004\342A\001\003H\003\022M\n\023database_table_spec\030\030 \001(\013" + + "2..google.cloud.datacatalog.v1.DatabaseT" + + "ableSpecH\004\022\\\n\033data_source_connection_spe" + + "c\030\033 \001(\01325.google.cloud.datacatalog.v1.Da" + + "taSourceConnectionSpecH\004\022@\n\014routine_spec" + + "\030\034 \001(\0132(.google.cloud.datacatalog.v1.Rou" + + "tineSpecH\004\022@\n\014dataset_spec\030 \001(\0132(.googl" + + "e.cloud.datacatalog.v1.DatasetSpecH\004\022@\n\014" + + "fileset_spec\030! \001(\0132(.google.cloud.dataca" + + "talog.v1.FilesetSpecH\004\022@\n\014service_spec\030*" + + " \001(\0132(.google.cloud.datacatalog.v1.Servi" + + "ceSpecH\004\022<\n\nmodel_spec\030+ \001(\0132&.google.cl" + + "oud.datacatalog.v1.ModelSpecH\004\022\024\n\014displa" + + "y_name\030\003 \001(\t\022\023\n\013description\030\004 \001(\t\022F\n\020bus" + + "iness_context\030% \001(\0132,.google.cloud.datac" + + "atalog.v1.BusinessContext\0223\n\006schema\030\005 \001(" + + "\0132#.google.cloud.datacatalog.v1.Schema\022O" + + "\n\030source_system_timestamps\030\007 \001(\0132-.googl" + + "e.cloud.datacatalog.v1.SystemTimestamps\022" + + ">\n\014usage_signal\030\r \001(\0132(.google.cloud.dat" + + "acatalog.v1.UsageSignal\022>\n\006labels\030\016 \003(\0132" + + "..google.cloud.datacatalog.v1.Entry.Labe" + + "lsEntry\022B\n\013data_source\030\024 \001(\0132\'.google.cl" + + "oud.datacatalog.v1.DataSourceB\004\342A\001\003\022L\n\020p" + + "ersonal_details\030\032 \001(\0132,.google.cloud.dat" + + "acatalog.v1.PersonalDetailsB\004\342A\001\003\032-\n\013Lab" + + "elsEntry\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\022" + + "Qprojects/{project}/locations/{location}" + + "/entryGroups/{entry_group}/entries/{entr" + + "y}B\014\n\nentry_typeB\010\n\006systemB\r\n\013system_spe" + + "cB\013\n\ttype_specB\006\n\004spec\"\314\004\n\021DatabaseTable" + + "Spec\022F\n\004type\030\001 \001(\01628.google.cloud.dataca" + + "talog.v1.DatabaseTableSpec.TableType\022L\n\016" + + "dataplex_table\030\002 \001(\0132..google.cloud.data" + + "catalog.v1.DataplexTableSpecB\004\342A\001\003\022[\n\022da" + + "tabase_view_spec\030\003 \001(\0132?.google.cloud.da" + + "tacatalog.v1.DatabaseTableSpec.DatabaseV" + + "iewSpec\032\200\002\n\020DatabaseViewSpec\022[\n\tview_typ" + + "e\030\001 \001(\0162H.google.cloud.datacatalog.v1.Da" + + "tabaseTableSpec.DatabaseViewSpec.ViewTyp" + + "e\022\024\n\nbase_table\030\002 \001(\tH\000\022\023\n\tsql_query\030\003 \001" + + "(\tH\000\"O\n\010ViewType\022\031\n\025VIEW_TYPE_UNSPECIFIE" + + "D\020\000\022\021\n\rSTANDARD_VIEW\020\001\022\025\n\021MATERIALIZED_V" + + "IEW\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.datacatalo" + + "g.v1.DataplexFilesetSpec\"q\n\030DataSourceCo" + + "nnectionSpec\022U\n\030bigquery_connection_spec" + + "\030\001 \001(\01323.google.cloud.datacatalog.v1.Big" + + "QueryConnectionSpec\"\303\004\n\013RoutineSpec\022J\n\014r" + + "outine_type\030\001 \001(\01624.google.cloud.datacat" + + "alog.v1.RoutineSpec.RoutineType\022\020\n\010langu" + + "age\030\002 \001(\t\022L\n\021routine_arguments\030\003 \003(\01321.g" + + "oogle.cloud.datacatalog.v1.RoutineSpec.A" + + "rgument\022\023\n\013return_type\030\004 \001(\t\022\027\n\017definiti" + + "on_body\030\005 \001(\t\022Q\n\025bigquery_routine_spec\030\006" + + " \001(\01320.google.cloud.datacatalog.v1.BigQu" + + "eryRoutineSpecH\000\032\246\001\n\010Argument\022\014\n\004name\030\001 " + + "\001(\t\022D\n\004mode\030\002 \001(\01626.google.cloud.datacat" + + "alog.v1.RoutineSpec.Argument.Mode\022\014\n\004typ" + + "e\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_spe" + + "c\"k\n\013DatasetSpec\022M\n\023vertex_dataset_spec\030" + + "\002 \001(\0132..google.cloud.datacatalog.v1.Vert" + + "exDatasetSpecH\000B\r\n\013system_spec\"\\\n\025SqlDat" + + "abaseSystemSpec\022\022\n\nsql_engine\030\001 \001(\t\022\030\n\020d" + + "atabase_version\030\002 \001(\t\022\025\n\rinstance_host\030\003" + + " \001(\t\"\312\001\n\020LookerSystemSpec\022\032\n\022parent_inst" + + "ance_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\031" + + "parent_model_display_name\030\004 \001(\t\022\026\n\016paren" + + "t_view_id\030\005 \001(\t\022 \n\030parent_view_display_n" + + "ame\030\006 \001(\t\"8\n\027CloudBigtableSystemSpec\022\035\n\025" + + "instance_display_name\030\001 \001(\t\"\375\001\n\031CloudBig" + + "tableInstanceSpec\022u\n\034cloud_bigtable_clus" + + "ter_specs\030\001 \003(\0132O.google.cloud.datacatal" + + "og.v1.CloudBigtableInstanceSpec.CloudBig" + + "tableClusterSpec\032i\n\030CloudBigtableCluster" + + "Spec\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_ins" + + "tance_spec\030\001 \001(\01326.google.cloud.datacata" + + "log.v1.CloudBigtableInstanceSpecH\000B\r\n\013sy" + + "stem_spec\"\350\001\n\025VertexModelSourceInfo\022W\n\013s" + + "ource_type\030\001 \001(\0162B.google.cloud.datacata" + + "log.v1.VertexModelSourceInfo.ModelSource" + + "Type\022\014\n\004copy\030\002 \001(\010\"h\n\017ModelSourceType\022!\n" + + "\035MODEL_SOURCE_TYPE_UNSPECIFIED\020\000\022\n\n\006AUTO" + + "ML\020\001\022\n\n\006CUSTOM\020\002\022\010\n\004BQML\020\003\022\020\n\014MODEL_GARD" + + "EN\020\004\"\316\001\n\017VertexModelSpec\022\022\n\nversion_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_sourc" + + "e_info\030\004 \001(\01322.google.cloud.datacatalog." + + "v1.VertexModelSourceInfo\022\033\n\023container_im" + + "age_uri\030\005 \001(\t\"\344\002\n\021VertexDatasetSpec\022\027\n\017d" + + "ata_item_count\030\001 \001(\003\022J\n\tdata_type\030\002 \001(\0162" + + "7.google.cloud.datacatalog.v1.VertexData" + + "setSpec.DataType\"\351\001\n\010DataType\022\031\n\025DATA_TY" + + "PE_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_VISIO" + + "N\020\n\022\036\n\032ENTERPRISE_KNOWLEDGE_GRAPH\020\013\022\017\n\013T" + + "EXT_PROMPT\020\014\"e\n\tModelSpec\022I\n\021vertex_mode" + + "l_spec\030\001 \001(\0132,.google.cloud.datacatalog." + + "v1.VertexModelSpecH\000B\r\n\013system_spec\"\216\001\n\017" + + "BusinessContext\022B\n\016entry_overview\030\001 \001(\0132" + + "*.google.cloud.datacatalog.v1.EntryOverv" + + "iew\0227\n\010contacts\030\002 \001(\0132%.google.cloud.dat" + + "acatalog.v1.Contacts\"!\n\rEntryOverview\022\020\n" + + "\010overview\030\001 \001(\t\"v\n\010Contacts\022<\n\006people\030\001 " + + "\003(\0132,.google.cloud.datacatalog.v1.Contac" + + "ts.Person\032,\n\006Person\022\023\n\013designation\030\001 \001(\t" + + "\022\r\n\005email\030\002 \001(\t\"\212\002\n\nEntryGroup\022\014\n\004name\030\001" + + " \001(\t\022\024\n\014display_name\030\002 \001(\t\022\023\n\013descriptio" + + "n\030\003 \001(\t\022T\n\027data_catalog_timestamps\030\004 \001(\013" + + "2-.google.cloud.datacatalog.v1.SystemTim" + + "estampsB\004\342A\001\003:m\352Aj\n%datacatalog.googleap" + + "is.com/EntryGroup\022Aprojects/{project}/lo" + + "cations/{location}/entryGroups/{entry_gr" + + "oup}\"\300\001\n\030CreateTagTemplateRequest\022?\n\006par" + + "ent\030\001 \001(\tB/\342A\001\002\372A(\022&datacatalog.googleap" + + "is.com/TagTemplate\022\035\n\017tag_template_id\030\003 " + + "\001(\tB\004\342A\001\002\022D\n\014tag_template\030\002 \001(\0132(.google" + + ".cloud.datacatalog.v1.TagTemplateB\004\342A\001\002\"" + + "V\n\025GetTagTemplateRequest\022=\n\004name\030\001 \001(\tB/" + + "\342A\001\002\372A(\n&datacatalog.googleapis.com/TagT" + + "emplate\"\221\001\n\030UpdateTagTemplateRequest\022D\n\014" + + "tag_template\030\001 \001(\0132(.google.cloud.dataca" + + "talog.v1.TagTemplateB\004\342A\001\002\022/\n\013update_mas" + + "k\030\002 \001(\0132\032.google.protobuf.FieldMask\"n\n\030D" + + "eleteTagTemplateRequest\022=\n\004name\030\001 \001(\tB/\342" + + "A\001\002\372A(\n&datacatalog.googleapis.com/TagTe" + + "mplate\022\023\n\005force\030\002 \001(\010B\004\342A\001\002\"\200\001\n\020CreateTa" + + "gRequest\0227\n\006parent\030\001 \001(\tB\'\342A\001\002\372A \022\036datac" + + "atalog.googleapis.com/Tag\0223\n\003tag\030\002 \001(\0132 " + + ".google.cloud.datacatalog.v1.TagB\004\342A\001\002\"x" + + "\n\020UpdateTagRequest\0223\n\003tag\030\001 \001(\0132 .google" + + ".cloud.datacatalog.v1.TagB\004\342A\001\002\022/\n\013updat" + + "e_mask\030\002 \001(\0132\032.google.protobuf.FieldMask" + + "\"I\n\020DeleteTagRequest\0225\n\004name\030\001 \001(\tB\'\342A\001\002" + + "\372A \022\036datacatalog.googleapis.com/Tag\"\326\001\n\035" + + "CreateTagTemplateFieldRequest\022?\n\006parent\030" + + "\001 \001(\tB/\342A\001\002\372A(\n&datacatalog.googleapis.c" + + "om/TagTemplate\022#\n\025tag_template_field_id\030" + + "\002 \001(\tB\004\342A\001\002\022O\n\022tag_template_field\030\003 \001(\0132" + + "-.google.cloud.datacatalog.v1.TagTemplat" + + "eFieldB\004\342A\001\002\"\353\001\n\035UpdateTagTemplateFieldR" + + "equest\022B\n\004name\030\001 \001(\tB4\342A\001\002\372A-\n+datacatal" + + "og.googleapis.com/TagTemplateField\022O\n\022ta" + + "g_template_field\030\002 \001(\0132-.google.cloud.da" + + "tacatalog.v1.TagTemplateFieldB\004\342A\001\002\0225\n\013u" + + "pdate_mask\030\003 \001(\0132\032.google.protobuf.Field" + + "MaskB\004\342A\001\001\"\214\001\n\035RenameTagTemplateFieldReq" + + "uest\022B\n\004name\030\001 \001(\tB4\342A\001\002\372A-\n+datacatalog" + + ".googleapis.com/TagTemplateField\022\'\n\031new_" + + "tag_template_field_id\030\002 \001(\tB\004\342A\001\002\"\240\001\n&Re" + + "nameTagTemplateFieldEnumValueRequest\022K\n\004" + + "name\030\001 \001(\tB=\342A\001\002\372A6\n4datacatalog.googlea" + + "pis.com/TagTemplateFieldEnumValue\022)\n\033new" + + "_enum_value_display_name\030\002 \001(\tB\004\342A\001\002\"x\n\035" + + "DeleteTagTemplateFieldRequest\022B\n\004name\030\001 " + + "\001(\tB4\342A\001\002\372A-\n+datacatalog.googleapis.com" + + "/TagTemplateField\022\023\n\005force\030\002 \001(\010B\004\342A\001\002\"q" + + "\n\017ListTagsRequest\0227\n\006parent\030\001 \001(\tB\'\342A\001\002\372" + + "A \022\036datacatalog.googleapis.com/Tag\022\021\n\tpa" + + "ge_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"[\n\020Lis" + + "tTagsResponse\022.\n\004tags\030\001 \003(\0132 .google.clo" + + "ud.datacatalog.v1.Tag\022\027\n\017next_page_token" + + "\030\002 \001(\t\"\346\001\n\024ReconcileTagsRequest\0229\n\006paren" + + "t\030\001 \001(\tB)\342A\001\002\372A\"\n datacatalog.googleapis" + + ".com/Entry\022E\n\014tag_template\030\002 \001(\tB/\342A\001\002\372A" + + "(\n&datacatalog.googleapis.com/TagTemplat" + + "e\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\025Reconci" + + "leTagsMetadata\022U\n\005state\030\001 \001(\0162F.google.c" + + "loud.datacatalog.v1.ReconcileTagsMetadat" + + "a.ReconciliationState\022N\n\006errors\030\002 \003(\0132>." + + "google.cloud.datacatalog.v1.ReconcileTag" + + "sMetadata.ErrorsEntry\032A\n\013ErrorsEntry\022\013\n\003" + + "key\030\001 \001(\t\022!\n\005value\030\002 \001(\0132\022.google.rpc.St" + + "atus:\0028\001\"\217\001\n\023ReconciliationState\022$\n RECO" + + "NCILIATION_STATE_UNSPECIFIED\020\000\022\031\n\025RECONC" + + "ILIATION_QUEUED\020\001\022\036\n\032RECONCILIATION_IN_P" + + "ROGRESS\020\002\022\027\n\023RECONCILIATION_DONE\020\003\"\252\001\n\022L" + + "istEntriesRequest\022>\n\006parent\030\001 \001(\tB.\342A\001\002\372" + + "A\'\n%datacatalog.googleapis.com/EntryGrou" + + "p\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t" + + "\022-\n\tread_mask\030\004 \001(\0132\032.google.protobuf.Fi" + + "eldMask\"c\n\023ListEntriesResponse\0223\n\007entrie" + + "s\030\001 \003(\0132\".google.cloud.datacatalog.v1.En" + + "try\022\027\n\017next_page_token\030\002 \001(\t\"K\n\020StarEntr" + + "yRequest\0227\n\004name\030\001 \001(\tB)\342A\001\002\372A\"\n datacat" + + "alog.googleapis.com/Entry\"\023\n\021StarEntryRe" + + "sponse\"M\n\022UnstarEntryRequest\0227\n\004name\030\001 \001" + + "(\tB)\342A\001\002\372A\"\n datacatalog.googleapis.com/" + + "Entry\"\025\n\023UnstarEntryResponse\"\214\001\n\024ImportE" + + "ntriesRequest\0229\n\006parent\030\001 \001(\tB)\342A\001\002\372A\"\022 " + + "datacatalog.googleapis.com/Entry\022\031\n\017gcs_" + + "bucket_path\030\002 \001(\tH\000\022\024\n\006job_id\030\003 \001(\tB\004\342A\001" + + "\001B\010\n\006source\"\225\001\n\025ImportEntriesResponse\022#\n" + + "\026upserted_entries_count\030\005 \001(\003H\000\210\001\001\022\"\n\025de" + + "leted_entries_count\030\006 \001(\003H\001\210\001\001B\031\n\027_upser" + + "ted_entries_countB\030\n\026_deleted_entries_co" + + "unt\"\210\002\n\025ImportEntriesMetadata\022M\n\005state\030\001" + + " \001(\0162>.google.cloud.datacatalog.v1.Impor" + + "tEntriesMetadata.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\rIMPORT_" + + "QUEUED\020\001\022\026\n\022IMPORT_IN_PROGRESS\020\002\022\017\n\013IMPO" + + "RT_DONE\020\003\022\023\n\017IMPORT_OBSOLETE\020\004\"\237\001\n\032Modif" + + "yEntryOverviewRequest\0227\n\004name\030\001 \001(\tB)\342A\001" + + "\002\372A\"\n datacatalog.googleapis.com/Entry\022H" + + "\n\016entry_overview\030\002 \001(\0132*.google.cloud.da" + + "tacatalog.v1.EntryOverviewB\004\342A\001\002\"\224\001\n\032Mod" + + "ifyEntryContactsRequest\0227\n\004name\030\001 \001(\tB)\342" + + "A\001\002\372A\"\n datacatalog.googleapis.com/Entry" + + "\022=\n\010contacts\030\002 \001(\0132%.google.cloud.dataca" + + "talog.v1.ContactsB\004\342A\001\002*\373\001\n\tEntryType\022\032\n" + + "\026ENTRY_TYPE_UNSPECIFIED\020\000\022\t\n\005TABLE\020\002\022\t\n\005" + + "MODEL\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\004Z" + + "ONE\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\0222\300;" + + "\n\013DataCatalog\022\243\001\n\rSearchCatalog\0221.google" + + ".cloud.datacatalog.v1.SearchCatalogReque" + + "st\0322.google.cloud.datacatalog.v1.SearchC" + + "atalogResponse\"+\332A\013scope,query\202\323\344\223\002\027\"\022/v" + + "1/catalog:search:\001*\022\333\001\n\020CreateEntryGroup" + + "\0224.google.cloud.datacatalog.v1.CreateEnt" + + "ryGroupRequest\032\'.google.cloud.datacatalo" + + "g.v1.EntryGroup\"h\332A!parent,entry_group_i" + + "d,entry_group\202\323\344\223\002>\"//v1/{parent=project" + + "s/*/locations/*}/entryGroups:\013entry_grou" + + "p\022\274\001\n\rGetEntryGroup\0221.google.cloud.datac" + + "atalog.v1.GetEntryGroupRequest\032\'.google." + + "cloud.datacatalog.v1.EntryGroup\"O\332A\004name" + + "\332A\016name,read_mask\202\323\344\223\0021\022//v1/{name=proje" + + "cts/*/locations/*/entryGroups/*}\022\353\001\n\020Upd" + + "ateEntryGroup\0224.google.cloud.datacatalog" + + ".v1.UpdateEntryGroupRequest\032\'.google.clo" + + "ud.datacatalog.v1.EntryGroup\"x\332A\013entry_g" + + "roup\332A\027entry_group,update_mask\202\323\344\223\002J2;/v" + + "1/{entry_group.name=projects/*/locations" + + "/*/entryGroups/*}:\013entry_group\022\240\001\n\020Delet" + + "eEntryGroup\0224.google.cloud.datacatalog.v" + + "1.DeleteEntryGroupRequest\032\026.google.proto" + + "buf.Empty\">\332A\004name\202\323\344\223\0021*//v1/{name=proj" + + "ects/*/locations/*/entryGroups/*}\022\276\001\n\017Li" + + "stEntryGroups\0223.google.cloud.datacatalog" + + ".v1.ListEntryGroupsRequest\0324.google.clou" + + "d.datacatalog.v1.ListEntryGroupsResponse" + + "\"@\332A\006parent\202\323\344\223\0021\022//v1/{parent=projects/" + + "*/locations/*}/entryGroups\022\304\001\n\013CreateEnt" + + "ry\022/.google.cloud.datacatalog.v1.CreateE" + + "ntryRequest\032\".google.cloud.datacatalog.v" + + "1.Entry\"`\332A\025parent,entry_id,entry\202\323\344\223\002B\"" + + "9/v1/{parent=projects/*/locations/*/entr" + + "yGroups/*}/entries:\005entry\022\316\001\n\013UpdateEntr" + + "y\022/.google.cloud.datacatalog.v1.UpdateEn" + + "tryRequest\032\".google.cloud.datacatalog.v1" + + ".Entry\"j\332A\005entry\332A\021entry,update_mask\202\323\344\223" + + "\002H2?/v1/{entry.name=projects/*/locations" + + "/*/entryGroups/*/entries/*}:\005entry\022\240\001\n\013D" + + "eleteEntry\022/.google.cloud.datacatalog.v1" + + ".DeleteEntryRequest\032\026.google.protobuf.Em" + + "pty\"H\332A\004name\202\323\344\223\002;*9/v1/{name=projects/*" + + "/locations/*/entryGroups/*/entries/*}\022\246\001" + + "\n\010GetEntry\022,.google.cloud.datacatalog.v1" + + ".GetEntryRequest\032\".google.cloud.datacata" + + "log.v1.Entry\"H\332A\004name\202\323\344\223\002;\0229/v1/{name=p" + + "rojects/*/locations/*/entryGroups/*/entr" + + "ies/*}\022~\n\013LookupEntry\022/.google.cloud.dat" + + "acatalog.v1.LookupEntryRequest\032\".google." + + "cloud.datacatalog.v1.Entry\"\032\202\323\344\223\002\024\022\022/v1/" + + "entries:lookup\022\274\001\n\013ListEntries\022/.google." + + "cloud.datacatalog.v1.ListEntriesRequest\032" + + "0.google.cloud.datacatalog.v1.ListEntrie" + + "sResponse\"J\332A\006parent\202\323\344\223\002;\0229/v1/{parent=" + + "projects/*/locations/*/entryGroups/*}/en" + + "tries\022\324\001\n\023ModifyEntryOverview\0227.google.c" + + "loud.datacatalog.v1.ModifyEntryOverviewR" + + "equest\032*.google.cloud.datacatalog.v1.Ent" + + "ryOverview\"X\202\323\344\223\002R\"M/v1/{name=projects/*" + + "/locations/*/entryGroups/*/entries/*}:mo" + + "difyEntryOverview:\001*\022\317\001\n\023ModifyEntryCont" + + "acts\0227.google.cloud.datacatalog.v1.Modif" + + "yEntryContactsRequest\032%.google.cloud.dat" + + "acatalog.v1.Contacts\"X\202\323\344\223\002R\"M/v1/{name=" + + "projects/*/locations/*/entryGroups/*/ent" + + "ries/*}:modifyEntryContacts:\001*\022\342\001\n\021Creat" + + "eTagTemplate\0225.google.cloud.datacatalog." + + "v1.CreateTagTemplateRequest\032(.google.clo" + + "ud.datacatalog.v1.TagTemplate\"l\332A#parent" + + ",tag_template_id,tag_template\202\323\344\223\002@\"0/v1" + + "/{parent=projects/*/locations/*}/tagTemp" + + "lates:\014tag_template\022\257\001\n\016GetTagTemplate\0222" + + ".google.cloud.datacatalog.v1.GetTagTempl" + + "ateRequest\032(.google.cloud.datacatalog.v1", + ".TagTemplate\"?\332A\004name\202\323\344\223\0022\0220/v1/{name=p" + + "rojects/*/locations/*/tagTemplates/*}\022\363\001" + + "\n\021UpdateTagTemplate\0225.google.cloud.datac" + + "atalog.v1.UpdateTagTemplateRequest\032(.goo" + + "gle.cloud.datacatalog.v1.TagTemplate\"}\332A" + + "\014tag_template\332A\030tag_template,update_mask" + + "\202\323\344\223\002M2=/v1/{tag_template.name=projects/" + + "*/locations/*/tagTemplates/*}:\014tag_templ" + + "ate\022\251\001\n\021DeleteTagTemplate\0225.google.cloud" + + ".datacatalog.v1.DeleteTagTemplateRequest" + + "\032\026.google.protobuf.Empty\"E\332A\nname,force\202" + + "\323\344\223\0022*0/v1/{name=projects/*/locations/*/" + + "tagTemplates/*}\022\215\002\n\026CreateTagTemplateFie" + + "ld\022:.google.cloud.datacatalog.v1.CreateT" + + "agTemplateFieldRequest\032-.google.cloud.da" + + "tacatalog.v1.TagTemplateField\"\207\001\332A/paren" + + "t,tag_template_field_id,tag_template_fie" + + "ld\202\323\344\223\002O\"9/v1/{parent=projects/*/locatio" + + "ns/*/tagTemplates/*}/fields:\022tag_templat" + + "e_field\022\233\002\n\026UpdateTagTemplateField\022:.goo" + + "gle.cloud.datacatalog.v1.UpdateTagTempla" + + "teFieldRequest\032-.google.cloud.datacatalo" + + "g.v1.TagTemplateField\"\225\001\332A\027name,tag_temp" + + "late_field\332A#name,tag_template_field,upd" + + "ate_mask\202\323\344\223\002O29/v1/{name=projects/*/loc" + + "ations/*/tagTemplates/*/fields/*}:\022tag_t" + + "emplate_field\022\361\001\n\026RenameTagTemplateField" + + "\022:.google.cloud.datacatalog.v1.RenameTag" + + "TemplateFieldRequest\032-.google.cloud.data" + + "catalog.v1.TagTemplateField\"l\332A\036name,new" + + "_tag_template_field_id\202\323\344\223\002E\"@/v1/{name=" + + "projects/*/locations/*/tagTemplates/*/fi" + + "elds/*}:rename:\001*\022\222\002\n\037RenameTagTemplateF" + + "ieldEnumValue\022C.google.cloud.datacatalog" + + ".v1.RenameTagTemplateFieldEnumValueReque" + + "st\032-.google.cloud.datacatalog.v1.TagTemp" + + "lateField\"{\332A name,new_enum_value_displa" + + "y_name\202\323\344\223\002R\"M/v1/{name=projects/*/locat" + + "ions/*/tagTemplates/*/fields/*/enumValue" + + "s/*}:rename:\001*\022\274\001\n\026DeleteTagTemplateFiel" + + "d\022:.google.cloud.datacatalog.v1.DeleteTa" + + "gTemplateFieldRequest\032\026.google.protobuf." + + "Empty\"N\332A\nname,force\202\323\344\223\002;*9/v1/{name=pr" + + "ojects/*/locations/*/tagTemplates/*/fiel" + + "ds/*}\022\371\001\n\tCreateTag\022-.google.cloud.datac" + + "atalog.v1.CreateTagRequest\032 .google.clou" + + "d.datacatalog.v1.Tag\"\232\001\332A\nparent,tag\202\323\344\223" + + "\002\206\001\"@/v1/{parent=projects/*/locations/*/" + + "entryGroups/*/entries/*}/tags:\003tagZ=\"6/v" + + "1/{parent=projects/*/locations/*/entryGr" + + "oups/*}/tags:\003tag\022\214\002\n\tUpdateTag\022-.google" + + ".cloud.datacatalog.v1.UpdateTagRequest\032 " + + ".google.cloud.datacatalog.v1.Tag\"\255\001\332A\003ta" + + "g\332A\017tag,update_mask\202\323\344\223\002\216\0012D/v1/{tag.nam" + + "e=projects/*/locations/*/entryGroups/*/e" + + "ntries/*/tags/*}:\003tagZA2:/v1/{tag.name=p" + + "rojects/*/locations/*/entryGroups/*/tags" + + "/*}:\003tag\022\336\001\n\tDeleteTag\022-.google.cloud.da" + + "tacatalog.v1.DeleteTagRequest\032\026.google.p" + + "rotobuf.Empty\"\211\001\332A\004name\202\323\344\223\002|*@/v1/{name" + + "=projects/*/locations/*/entryGroups/*/en" + + "tries/*/tags/*}Z8*6/v1/{name=projects/*/" + + "locations/*/entryGroups/*/tags/*}\022\365\001\n\010Li" + + "stTags\022,.google.cloud.datacatalog.v1.Lis" + + "tTagsRequest\032-.google.cloud.datacatalog." + + "v1.ListTagsResponse\"\213\001\332A\006parent\202\323\344\223\002|\022@/" + + "v1/{parent=projects/*/locations/*/entryG" + + "roups/*/entries/*}/tagsZ8\0226/v1/{parent=p" + + "rojects/*/locations/*/entryGroups/*}/tag" + + "s\022\352\001\n\rReconcileTags\0221.google.cloud.datac" + + "atalog.v1.ReconcileTagsRequest\032\035.google." + + "longrunning.Operation\"\206\001\312A.\n\025ReconcileTa" + + "gsResponse\022\025ReconcileTagsMetadata\202\323\344\223\002O\"" + + "J/v1/{parent=projects/*/locations/*/entr" + + "yGroups/*/entries/*}/tags:reconcile:\001*\022\274" + + "\001\n\tStarEntry\022-.google.cloud.datacatalog." + + "v1.StarEntryRequest\032..google.cloud.datac" + + "atalog.v1.StarEntryResponse\"P\332A\004name\202\323\344\223" + + "\002C\">/v1/{name=projects/*/locations/*/ent" + + "ryGroups/*/entries/*}:star:\001*\022\304\001\n\013Unstar" + + "Entry\022/.google.cloud.datacatalog.v1.Unst" + + "arEntryRequest\0320.google.cloud.datacatalo" + + "g.v1.UnstarEntryResponse\"R\332A\004name\202\323\344\223\002E\"" + + "@/v1/{name=projects/*/locations/*/entryG" + + "roups/*/entries/*}:unstar:\001*\022\362\001\n\014SetIamP" + + "olicy\022\".google.iam.v1.SetIamPolicyReques" + + "t\032\025.google.iam.v1.Policy\"\246\001\332A\017resource,p" + + "olicy\202\323\344\223\002\215\001\"A/v1/{resource=projects/*/l" + + "ocations/*/tagTemplates/*}:setIamPolicy:" + + "\001*ZE\"@/v1/{resource=projects/*/locations" + + "/*/entryGroups/*}:setIamPolicy:\001*\022\274\002\n\014Ge" + + "tIamPolicy\022\".google.iam.v1.GetIamPolicyR" + + "equest\032\025.google.iam.v1.Policy\"\360\001\332A\010resou" + + "rce\202\323\344\223\002\336\001\"A/v1/{resource=projects/*/loc" + + "ations/*/tagTemplates/*}:getIamPolicy:\001*" + + "ZE\"@/v1/{resource=projects/*/locations/*" + + "/entryGroups/*}:getIamPolicy:\001*ZO\"J/v1/{" + + "resource=projects/*/locations/*/entryGro" + + "ups/*/entries/*}:getIamPolicy:\001*\022\343\002\n\022Tes" + + "tIamPermissions\022(.google.iam.v1.TestIamP" + + "ermissionsRequest\032).google.iam.v1.TestIa" + + "mPermissionsResponse\"\367\001\202\323\344\223\002\360\001\"G/v1/{res" + + "ource=projects/*/locations/*/tagTemplate" + + "s/*}:testIamPermissions:\001*ZK\"F/v1/{resou" + + "rce=projects/*/locations/*/entryGroups/*" + + "}:testIamPermissions:\001*ZU\"P/v1/{resource" + + "=projects/*/locations/*/entryGroups/*/en" + + "tries/*}:testIamPermissions:\001*\022\337\001\n\rImpor" + + "tEntries\0221.google.cloud.datacatalog.v1.I" + + "mportEntriesRequest\032\035.google.longrunning" + + ".Operation\"|\312A.\n\025ImportEntriesResponse\022\025" + + "ImportEntriesMetadata\202\323\344\223\002E\"@/v1/{parent" + + "=projects/*/locations/*/entryGroups/*}/e" + + "ntries:import:\001*\032N\312A\032datacatalog.googlea" + + "pis.com\322A.https://www.googleapis.com/aut" + + "h/cloud-platformB\212\003\n\037com.google.cloud.da" + + "tacatalog.v1P\001ZAcloud.google.com/go/data" + + "catalog/apiv1/datacatalogpb;datacatalogp" + + "b\370\001\001\252\002\033Google.Cloud.DataCatalog.V1\312\002\033Goo" + + "gle\\Cloud\\DataCatalog\\V1\352\002\036Google::Cloud" + + "::DataCatalog::V1\352A\300\001\n4datacatalog.googl" + + "eapis.com/TagTemplateFieldEnumValue\022\207\001pr" + + "ojects/{project}/locations/{location}/ta" + + "gTemplates/{tag_template}/fields/{tag_te" + + "mplate_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.rpc.StatusProto.getDescriptor(), + }); + internal_static_google_cloud_datacatalog_v1_SearchCatalogRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_datacatalog_v1_SearchCatalogRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.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 + .getNestedTypes() + .get(0); + internal_static_google_cloud_datacatalog_v1_SearchCatalogRequest_Scope_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.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().getMessageTypes().get(1); + internal_static_google_cloud_datacatalog_v1_SearchCatalogResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.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().getMessageTypes().get(2); + internal_static_google_cloud_datacatalog_v1_CreateEntryGroupRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.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().getMessageTypes().get(3); + internal_static_google_cloud_datacatalog_v1_UpdateEntryGroupRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datacatalog_v1_UpdateEntryGroupRequest_descriptor, + new java.lang.String[] { + "EntryGroup", "UpdateMask", + }); + internal_static_google_cloud_datacatalog_v1_GetEntryGroupRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_datacatalog_v1_GetEntryGroupRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datacatalog_v1_GetEntryGroupRequest_descriptor, + new java.lang.String[] { + "Name", "ReadMask", + }); + internal_static_google_cloud_datacatalog_v1_DeleteEntryGroupRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_datacatalog_v1_DeleteEntryGroupRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datacatalog_v1_DeleteEntryGroupRequest_descriptor, + new java.lang.String[] { + "Name", "Force", + }); + internal_static_google_cloud_datacatalog_v1_ListEntryGroupsRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_datacatalog_v1_ListEntryGroupsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.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().getMessageTypes().get(7); + internal_static_google_cloud_datacatalog_v1_ListEntryGroupsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datacatalog_v1_ListEntryGroupsResponse_descriptor, + new java.lang.String[] { + "EntryGroups", "NextPageToken", + }); + internal_static_google_cloud_datacatalog_v1_CreateEntryRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_datacatalog_v1_CreateEntryRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.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().getMessageTypes().get(9); + internal_static_google_cloud_datacatalog_v1_UpdateEntryRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datacatalog_v1_UpdateEntryRequest_descriptor, + new java.lang.String[] { + "Entry", "UpdateMask", + }); + internal_static_google_cloud_datacatalog_v1_DeleteEntryRequest_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_datacatalog_v1_DeleteEntryRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datacatalog_v1_DeleteEntryRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_datacatalog_v1_GetEntryRequest_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_datacatalog_v1_GetEntryRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datacatalog_v1_GetEntryRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_datacatalog_v1_LookupEntryRequest_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_datacatalog_v1_LookupEntryRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.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().getMessageTypes().get(13); + internal_static_google_cloud_datacatalog_v1_Entry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.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", + "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.getNestedTypes().get(0); + internal_static_google_cloud_datacatalog_v1_Entry_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.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().getMessageTypes().get(14); + internal_static_google_cloud_datacatalog_v1_DatabaseTableSpec_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.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 + .getNestedTypes() + .get(0); + internal_static_google_cloud_datacatalog_v1_DatabaseTableSpec_DatabaseViewSpec_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.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().getMessageTypes().get(15); + internal_static_google_cloud_datacatalog_v1_FilesetSpec_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datacatalog_v1_FilesetSpec_descriptor, + new java.lang.String[] { + "DataplexFileset", + }); + internal_static_google_cloud_datacatalog_v1_DataSourceConnectionSpec_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_datacatalog_v1_DataSourceConnectionSpec_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datacatalog_v1_DataSourceConnectionSpec_descriptor, + new java.lang.String[] { + "BigqueryConnectionSpec", + }); + internal_static_google_cloud_datacatalog_v1_RoutineSpec_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_datacatalog_v1_RoutineSpec_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.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.getNestedTypes().get(0); + internal_static_google_cloud_datacatalog_v1_RoutineSpec_Argument_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.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().getMessageTypes().get(18); + internal_static_google_cloud_datacatalog_v1_DatasetSpec_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datacatalog_v1_DatasetSpec_descriptor, + new java.lang.String[] { + "VertexDatasetSpec", "SystemSpec", + }); + internal_static_google_cloud_datacatalog_v1_SqlDatabaseSystemSpec_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_cloud_datacatalog_v1_SqlDatabaseSystemSpec_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.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().getMessageTypes().get(20); + internal_static_google_cloud_datacatalog_v1_LookerSystemSpec_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.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().getMessageTypes().get(21); + internal_static_google_cloud_datacatalog_v1_CloudBigtableSystemSpec_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datacatalog_v1_CloudBigtableSystemSpec_descriptor, + new java.lang.String[] { + "InstanceDisplayName", + }); + internal_static_google_cloud_datacatalog_v1_CloudBigtableInstanceSpec_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_google_cloud_datacatalog_v1_CloudBigtableInstanceSpec_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.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 + .getNestedTypes() + .get(0); + internal_static_google_cloud_datacatalog_v1_CloudBigtableInstanceSpec_CloudBigtableClusterSpec_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.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().getMessageTypes().get(23); + internal_static_google_cloud_datacatalog_v1_ServiceSpec_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datacatalog_v1_ServiceSpec_descriptor, + new java.lang.String[] { + "CloudBigtableInstanceSpec", "SystemSpec", + }); + internal_static_google_cloud_datacatalog_v1_VertexModelSourceInfo_descriptor = + getDescriptor().getMessageTypes().get(24); + internal_static_google_cloud_datacatalog_v1_VertexModelSourceInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datacatalog_v1_VertexModelSourceInfo_descriptor, + new java.lang.String[] { + "SourceType", "Copy", + }); + internal_static_google_cloud_datacatalog_v1_VertexModelSpec_descriptor = + getDescriptor().getMessageTypes().get(25); + internal_static_google_cloud_datacatalog_v1_VertexModelSpec_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.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().getMessageTypes().get(26); + internal_static_google_cloud_datacatalog_v1_VertexDatasetSpec_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datacatalog_v1_VertexDatasetSpec_descriptor, + new java.lang.String[] { + "DataItemCount", "DataType", + }); + internal_static_google_cloud_datacatalog_v1_ModelSpec_descriptor = + getDescriptor().getMessageTypes().get(27); + internal_static_google_cloud_datacatalog_v1_ModelSpec_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datacatalog_v1_ModelSpec_descriptor, + new java.lang.String[] { + "VertexModelSpec", "SystemSpec", + }); + internal_static_google_cloud_datacatalog_v1_BusinessContext_descriptor = + getDescriptor().getMessageTypes().get(28); + internal_static_google_cloud_datacatalog_v1_BusinessContext_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datacatalog_v1_BusinessContext_descriptor, + new java.lang.String[] { + "EntryOverview", "Contacts", + }); + internal_static_google_cloud_datacatalog_v1_EntryOverview_descriptor = + getDescriptor().getMessageTypes().get(29); + internal_static_google_cloud_datacatalog_v1_EntryOverview_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datacatalog_v1_EntryOverview_descriptor, + new java.lang.String[] { + "Overview", + }); + internal_static_google_cloud_datacatalog_v1_Contacts_descriptor = + getDescriptor().getMessageTypes().get(30); + internal_static_google_cloud_datacatalog_v1_Contacts_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.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.getNestedTypes().get(0); + internal_static_google_cloud_datacatalog_v1_Contacts_Person_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.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().getMessageTypes().get(31); + internal_static_google_cloud_datacatalog_v1_EntryGroup_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datacatalog_v1_EntryGroup_descriptor, + new java.lang.String[] { + "Name", "DisplayName", "Description", "DataCatalogTimestamps", + }); + internal_static_google_cloud_datacatalog_v1_CreateTagTemplateRequest_descriptor = + getDescriptor().getMessageTypes().get(32); + internal_static_google_cloud_datacatalog_v1_CreateTagTemplateRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.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().getMessageTypes().get(33); + internal_static_google_cloud_datacatalog_v1_GetTagTemplateRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datacatalog_v1_GetTagTemplateRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_datacatalog_v1_UpdateTagTemplateRequest_descriptor = + getDescriptor().getMessageTypes().get(34); + internal_static_google_cloud_datacatalog_v1_UpdateTagTemplateRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datacatalog_v1_UpdateTagTemplateRequest_descriptor, + new java.lang.String[] { + "TagTemplate", "UpdateMask", + }); + internal_static_google_cloud_datacatalog_v1_DeleteTagTemplateRequest_descriptor = + getDescriptor().getMessageTypes().get(35); + internal_static_google_cloud_datacatalog_v1_DeleteTagTemplateRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datacatalog_v1_DeleteTagTemplateRequest_descriptor, + new java.lang.String[] { + "Name", "Force", + }); + internal_static_google_cloud_datacatalog_v1_CreateTagRequest_descriptor = + getDescriptor().getMessageTypes().get(36); + internal_static_google_cloud_datacatalog_v1_CreateTagRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datacatalog_v1_CreateTagRequest_descriptor, + new java.lang.String[] { + "Parent", "Tag", + }); + internal_static_google_cloud_datacatalog_v1_UpdateTagRequest_descriptor = + getDescriptor().getMessageTypes().get(37); + internal_static_google_cloud_datacatalog_v1_UpdateTagRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datacatalog_v1_UpdateTagRequest_descriptor, + new java.lang.String[] { + "Tag", "UpdateMask", + }); + internal_static_google_cloud_datacatalog_v1_DeleteTagRequest_descriptor = + getDescriptor().getMessageTypes().get(38); + internal_static_google_cloud_datacatalog_v1_DeleteTagRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datacatalog_v1_DeleteTagRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_datacatalog_v1_CreateTagTemplateFieldRequest_descriptor = + getDescriptor().getMessageTypes().get(39); + internal_static_google_cloud_datacatalog_v1_CreateTagTemplateFieldRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.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().getMessageTypes().get(40); + internal_static_google_cloud_datacatalog_v1_UpdateTagTemplateFieldRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.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().getMessageTypes().get(41); + internal_static_google_cloud_datacatalog_v1_RenameTagTemplateFieldRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datacatalog_v1_RenameTagTemplateFieldRequest_descriptor, + new java.lang.String[] { + "Name", "NewTagTemplateFieldId", + }); + internal_static_google_cloud_datacatalog_v1_RenameTagTemplateFieldEnumValueRequest_descriptor = + getDescriptor().getMessageTypes().get(42); + internal_static_google_cloud_datacatalog_v1_RenameTagTemplateFieldEnumValueRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datacatalog_v1_RenameTagTemplateFieldEnumValueRequest_descriptor, + new java.lang.String[] { + "Name", "NewEnumValueDisplayName", + }); + internal_static_google_cloud_datacatalog_v1_DeleteTagTemplateFieldRequest_descriptor = + getDescriptor().getMessageTypes().get(43); + internal_static_google_cloud_datacatalog_v1_DeleteTagTemplateFieldRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datacatalog_v1_DeleteTagTemplateFieldRequest_descriptor, + new java.lang.String[] { + "Name", "Force", + }); + internal_static_google_cloud_datacatalog_v1_ListTagsRequest_descriptor = + getDescriptor().getMessageTypes().get(44); + internal_static_google_cloud_datacatalog_v1_ListTagsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.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().getMessageTypes().get(45); + internal_static_google_cloud_datacatalog_v1_ListTagsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datacatalog_v1_ListTagsResponse_descriptor, + new java.lang.String[] { + "Tags", "NextPageToken", + }); + internal_static_google_cloud_datacatalog_v1_ReconcileTagsRequest_descriptor = + getDescriptor().getMessageTypes().get(46); + internal_static_google_cloud_datacatalog_v1_ReconcileTagsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.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().getMessageTypes().get(47); + internal_static_google_cloud_datacatalog_v1_ReconcileTagsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.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().getMessageTypes().get(48); + internal_static_google_cloud_datacatalog_v1_ReconcileTagsMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.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 + .getNestedTypes() + .get(0); + internal_static_google_cloud_datacatalog_v1_ReconcileTagsMetadata_ErrorsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.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().getMessageTypes().get(49); + internal_static_google_cloud_datacatalog_v1_ListEntriesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.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().getMessageTypes().get(50); + internal_static_google_cloud_datacatalog_v1_ListEntriesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datacatalog_v1_ListEntriesResponse_descriptor, + new java.lang.String[] { + "Entries", "NextPageToken", + }); + internal_static_google_cloud_datacatalog_v1_StarEntryRequest_descriptor = + getDescriptor().getMessageTypes().get(51); + internal_static_google_cloud_datacatalog_v1_StarEntryRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datacatalog_v1_StarEntryRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_datacatalog_v1_StarEntryResponse_descriptor = + getDescriptor().getMessageTypes().get(52); + internal_static_google_cloud_datacatalog_v1_StarEntryResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datacatalog_v1_StarEntryResponse_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_datacatalog_v1_UnstarEntryRequest_descriptor = + getDescriptor().getMessageTypes().get(53); + internal_static_google_cloud_datacatalog_v1_UnstarEntryRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datacatalog_v1_UnstarEntryRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_datacatalog_v1_UnstarEntryResponse_descriptor = + getDescriptor().getMessageTypes().get(54); + internal_static_google_cloud_datacatalog_v1_UnstarEntryResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datacatalog_v1_UnstarEntryResponse_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_datacatalog_v1_ImportEntriesRequest_descriptor = + getDescriptor().getMessageTypes().get(55); + internal_static_google_cloud_datacatalog_v1_ImportEntriesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.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().getMessageTypes().get(56); + internal_static_google_cloud_datacatalog_v1_ImportEntriesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datacatalog_v1_ImportEntriesResponse_descriptor, + new java.lang.String[] { + "UpsertedEntriesCount", + "DeletedEntriesCount", + "UpsertedEntriesCount", + "DeletedEntriesCount", + }); + internal_static_google_cloud_datacatalog_v1_ImportEntriesMetadata_descriptor = + getDescriptor().getMessageTypes().get(57); + internal_static_google_cloud_datacatalog_v1_ImportEntriesMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datacatalog_v1_ImportEntriesMetadata_descriptor, + new java.lang.String[] { + "State", "Errors", + }); + internal_static_google_cloud_datacatalog_v1_ModifyEntryOverviewRequest_descriptor = + getDescriptor().getMessageTypes().get(58); + internal_static_google_cloud_datacatalog_v1_ModifyEntryOverviewRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datacatalog_v1_ModifyEntryOverviewRequest_descriptor, + new java.lang.String[] { + "Name", "EntryOverview", + }); + internal_static_google_cloud_datacatalog_v1_ModifyEntryContactsRequest_descriptor = + getDescriptor().getMessageTypes().get(59); + internal_static_google_cloud_datacatalog_v1_ModifyEntryContactsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datacatalog_v1_ModifyEntryContactsRequest_descriptor, + new java.lang.String[] { + "Name", "Contacts", + }); + 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); + 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.rpc.StatusProto.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/DataplexExternalTable.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DataplexExternalTable.java new file mode 100644 index 000000000000..7495f1b1468f --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DataplexExternalTable.java @@ -0,0 +1,1155 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/dataplex_spec.proto + +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} + */ +public final class DataplexExternalTable extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.DataplexExternalTable) + DataplexExternalTableOrBuilder { + private static final long serialVersionUID = 0L; + // Use DataplexExternalTable.newBuilder() to construct. + private DataplexExternalTable(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DataplexExternalTable() { + system_ = 0; + fullyQualifiedName_ = ""; + googleCloudResource_ = ""; + dataCatalogEntry_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DataplexExternalTable(); + } + + 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(googleCloudResource_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, googleCloudResource_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dataCatalogEntry_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, dataCatalogEntry_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fullyQualifiedName_)) { + com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(googleCloudResource_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, googleCloudResource_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dataCatalogEntry_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, dataCatalogEntry_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fullyQualifiedName_)) { + size += com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..8b6e5b480785 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DataplexExternalTableOrBuilder.java @@ -0,0 +1,125 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/dataplex_spec.proto + +package com.google.cloud.datacatalog.v1; + +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 new file mode 100644 index 000000000000..f7c00d3bd881 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DataplexFilesetSpec.java @@ -0,0 +1,707 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/dataplex_spec.proto + +package com.google.cloud.datacatalog.v1; + +/** + * + * + *
+ * Entry specyfication for a Dataplex fileset.
+ * 
+ * + * Protobuf type {@code google.cloud.datacatalog.v1.DataplexFilesetSpec} + */ +public final class DataplexFilesetSpec extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.DataplexFilesetSpec) + DataplexFilesetSpecOrBuilder { + private static final long serialVersionUID = 0L; + // Use DataplexFilesetSpec.newBuilder() to construct. + private DataplexFilesetSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DataplexFilesetSpec() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new 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.GeneratedMessageV3.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); + } + + 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 dataplexSpec_ != null; + } + /** + * + * + *
+   * 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 (dataplexSpec_ != null) { + output.writeMessage(1, getDataplexSpec()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (dataplexSpec_ != null) { + 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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @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_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.dataplexSpec_ = + dataplexSpecBuilder_ == null ? dataplexSpec_ : dataplexSpecBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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(getDataplexSpecFieldBuilder().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.SingleFieldBuilderV3< + 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); + } + 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 getDataplexSpecFieldBuilder().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.SingleFieldBuilderV3< + com.google.cloud.datacatalog.v1.DataplexSpec, + com.google.cloud.datacatalog.v1.DataplexSpec.Builder, + com.google.cloud.datacatalog.v1.DataplexSpecOrBuilder> + getDataplexSpecFieldBuilder() { + if (dataplexSpecBuilder_ == null) { + dataplexSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + 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_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..f3705ed41c51 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DataplexFilesetSpecOrBuilder.java @@ -0,0 +1,60 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/dataplex_spec.proto + +package com.google.cloud.datacatalog.v1; + +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 new file mode 100644 index 000000000000..4af7a31cfa63 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DataplexSpec.java @@ -0,0 +1,1280 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/dataplex_spec.proto + +package com.google.cloud.datacatalog.v1; + +/** + * + * + *
+ * Common Dataplex fields.
+ * 
+ * + * Protobuf type {@code google.cloud.datacatalog.v1.DataplexSpec} + */ +public final class DataplexSpec extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.DataplexSpec) + DataplexSpecOrBuilder { + private static final long serialVersionUID = 0L; + // Use DataplexSpec.newBuilder() to construct. + private DataplexSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DataplexSpec() { + asset_ = ""; + compressionFormat_ = ""; + projectId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DataplexSpec(); + } + + 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.GeneratedMessageV3.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); + } + + 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 dataFormat_ != null; + } + /** + * + * + *
+   * 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.GeneratedMessageV3.isStringEmpty(asset_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, asset_); + } + if (dataFormat_ != null) { + output.writeMessage(2, getDataFormat()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(compressionFormat_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, compressionFormat_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(asset_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, asset_); + } + if (dataFormat_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDataFormat()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(compressionFormat_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, compressionFormat_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + size += com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @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_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.dataFormat_ = dataFormatBuilder_ == null ? dataFormat_ : dataFormatBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.compressionFormat_ = compressionFormat_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.projectId_ = projectId_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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(getDataFormatFieldBuilder().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.SingleFieldBuilderV3< + 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); + } + 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 getDataFormatFieldBuilder().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.SingleFieldBuilderV3< + com.google.cloud.datacatalog.v1.PhysicalSchema, + com.google.cloud.datacatalog.v1.PhysicalSchema.Builder, + com.google.cloud.datacatalog.v1.PhysicalSchemaOrBuilder> + getDataFormatFieldBuilder() { + if (dataFormatBuilder_ == null) { + dataFormatBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + 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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..956de6b2d557 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DataplexSpecOrBuilder.java @@ -0,0 +1,143 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/dataplex_spec.proto + +package com.google.cloud.datacatalog.v1; + +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 new file mode 100644 index 000000000000..c4c8720c3ab2 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DataplexSpecProto.java @@ -0,0 +1,125 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/dataplex_spec.proto + +package com.google.cloud.datacatalog.v1; + +public final class DataplexSpecProto { + private 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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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\331\001\n\037com.google.cloud.datacat" + + "alog.v1B\021DataplexSpecProtoP\001ZAcloud.goog" + + "le.com/go/datacatalog/apiv1/datacatalogp" + + "b;datacatalogpb\370\001\001\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.cloud.datacatalog.v1.Common.getDescriptor(), + com.google.cloud.datacatalog.v1.PhysicalSchemaProto.getDescriptor(), + }); + internal_static_google_cloud_datacatalog_v1_DataplexSpec_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_datacatalog_v1_DataplexSpec_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.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().getMessageTypes().get(1); + internal_static_google_cloud_datacatalog_v1_DataplexFilesetSpec_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datacatalog_v1_DataplexFilesetSpec_descriptor, + new java.lang.String[] { + "DataplexSpec", + }); + internal_static_google_cloud_datacatalog_v1_DataplexTableSpec_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_datacatalog_v1_DataplexTableSpec_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.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().getMessageTypes().get(3); + internal_static_google_cloud_datacatalog_v1_DataplexExternalTable_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datacatalog_v1_DataplexExternalTable_descriptor, + new java.lang.String[] { + "System", "FullyQualifiedName", "GoogleCloudResource", "DataCatalogEntry", + }); + 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 new file mode 100644 index 000000000000..e293816e6fbd --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DataplexTableSpec.java @@ -0,0 +1,1381 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/dataplex_spec.proto + +package com.google.cloud.datacatalog.v1; + +/** + * + * + *
+ * Entry specification for a Dataplex table.
+ * 
+ * + * Protobuf type {@code google.cloud.datacatalog.v1.DataplexTableSpec} + */ +public final class DataplexTableSpec extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.DataplexTableSpec) + DataplexTableSpecOrBuilder { + private static final long serialVersionUID = 0L; + // Use DataplexTableSpec.newBuilder() to construct. + private DataplexTableSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DataplexTableSpec() { + externalTables_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DataplexTableSpec(); + } + + 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.GeneratedMessageV3.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); + } + + 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 dataplexSpec_ != null; + } + /** + * + * + *
+   * 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 (dataplexSpec_ != null) { + 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 (dataplexSpec_ != null) { + 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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @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_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.dataplexSpec_ = + dataplexSpecBuilder_ == null ? dataplexSpec_ : dataplexSpecBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.userManaged_ = userManaged_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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.GeneratedMessageV3.alwaysUseFieldBuilders + ? getExternalTablesFieldBuilder() + : 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(getDataplexSpecFieldBuilder().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.RepeatedFieldBuilderV3< + 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 getExternalTablesFieldBuilder().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 getExternalTablesFieldBuilder() + .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 getExternalTablesFieldBuilder() + .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 getExternalTablesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datacatalog.v1.DataplexExternalTable, + com.google.cloud.datacatalog.v1.DataplexExternalTable.Builder, + com.google.cloud.datacatalog.v1.DataplexExternalTableOrBuilder> + getExternalTablesFieldBuilder() { + if (externalTablesBuilder_ == null) { + externalTablesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + 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.SingleFieldBuilderV3< + 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); + } + 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 getDataplexSpecFieldBuilder().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.SingleFieldBuilderV3< + com.google.cloud.datacatalog.v1.DataplexSpec, + com.google.cloud.datacatalog.v1.DataplexSpec.Builder, + com.google.cloud.datacatalog.v1.DataplexSpecOrBuilder> + getDataplexSpecFieldBuilder() { + if (dataplexSpecBuilder_ == null) { + dataplexSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + 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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1/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 similarity index 79% rename from owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DataplexTableSpecOrBuilder.java rename to java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DataplexTableSpecOrBuilder.java index 89f0441d401e..90e1deb82d5c 100644 --- a/owl-bot-staging/java-datacatalog/v1/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 @@ -1,13 +1,31 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datacatalog/v1/dataplex_spec.proto package com.google.cloud.datacatalog.v1; -public interface DataplexTableSpecOrBuilder extends +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.
@@ -17,9 +35,10 @@ public interface DataplexTableSpecOrBuilder extends
    *
    * repeated .google.cloud.datacatalog.v1.DataplexExternalTable external_tables = 1;
    */
-  java.util.List 
-      getExternalTablesList();
+  java.util.List getExternalTablesList();
   /**
+   *
+   *
    * 
    * List of external tables registered by Dataplex in other systems based on
    * the same underlying data.
@@ -31,6 +50,8 @@ public interface DataplexTableSpecOrBuilder extends
    */
   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.
@@ -42,6 +63,8 @@ public interface DataplexTableSpecOrBuilder extends
    */
   int getExternalTablesCount();
   /**
+   *
+   *
    * 
    * List of external tables registered by Dataplex in other systems based on
    * the same underlying data.
@@ -51,9 +74,11 @@ public interface DataplexTableSpecOrBuilder extends
    *
    * repeated .google.cloud.datacatalog.v1.DataplexExternalTable external_tables = 1;
    */
-  java.util.List 
+  java.util.List
       getExternalTablesOrBuilderList();
   /**
+   *
+   *
    * 
    * List of external tables registered by Dataplex in other systems based on
    * the same underlying data.
@@ -67,24 +92,32 @@ com.google.cloud.datacatalog.v1.DataplexExternalTableOrBuilder getExternalTables
       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.
    * 
@@ -94,11 +127,14 @@ com.google.cloud.datacatalog.v1.DataplexExternalTableOrBuilder getExternalTables 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 new file mode 100644 index 000000000000..cecaf47c8150 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DatasetSpec.java @@ -0,0 +1,821 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/datacatalog.proto + +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} + */ +public final class DatasetSpec extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.DatasetSpec) + DatasetSpecOrBuilder { + private static final long serialVersionUID = 0L; + // Use DatasetSpec.newBuilder() to construct. + private DatasetSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DatasetSpec() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new 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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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( + getVertexDatasetSpecFieldBuilder().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.SingleFieldBuilderV3< + 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 getVertexDatasetSpecFieldBuilder().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.SingleFieldBuilderV3< + com.google.cloud.datacatalog.v1.VertexDatasetSpec, + com.google.cloud.datacatalog.v1.VertexDatasetSpec.Builder, + com.google.cloud.datacatalog.v1.VertexDatasetSpecOrBuilder> + getVertexDatasetSpecFieldBuilder() { + if (vertexDatasetSpecBuilder_ == null) { + if (!(systemSpecCase_ == 2)) { + systemSpec_ = com.google.cloud.datacatalog.v1.VertexDatasetSpec.getDefaultInstance(); + } + vertexDatasetSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + 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_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..3e0e37f7d9ac --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DatasetSpecOrBuilder.java @@ -0,0 +1,62 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/datacatalog.proto + +package com.google.cloud.datacatalog.v1; + +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 new file mode 100644 index 000000000000..750b1a7074cf --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DeleteEntryGroupRequest.java @@ -0,0 +1,734 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/datacatalog.proto + +package com.google.cloud.datacatalog.v1; + +/** + * + * + *
+ * Request message for
+ * [DeleteEntryGroup][google.cloud.datacatalog.v1.DataCatalog.DeleteEntryGroup].
+ * 
+ * + * Protobuf type {@code google.cloud.datacatalog.v1.DeleteEntryGroupRequest} + */ +public final class DeleteEntryGroupRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.DeleteEntryGroupRequest) + DeleteEntryGroupRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteEntryGroupRequest.newBuilder() to construct. + private DeleteEntryGroupRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteEntryGroupRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteEntryGroupRequest(); + } + + 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..409c39282d54 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DeleteEntryGroupRequestOrBuilder.java @@ -0,0 +1,67 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/datacatalog.proto + +package com.google.cloud.datacatalog.v1; + +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 new file mode 100644 index 000000000000..b8a20f86eeaa --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DeleteEntryRequest.java @@ -0,0 +1,640 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/datacatalog.proto + +package com.google.cloud.datacatalog.v1; + +/** + * + * + *
+ * Request message for
+ * [DeleteEntry][google.cloud.datacatalog.v1.DataCatalog.DeleteEntry].
+ * 
+ * + * Protobuf type {@code google.cloud.datacatalog.v1.DeleteEntryRequest} + */ +public final class DeleteEntryRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.DeleteEntryRequest) + DeleteEntryRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteEntryRequest.newBuilder() to construct. + private DeleteEntryRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteEntryRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteEntryRequest(); + } + + 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.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 clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..dc2bd85e2ce3 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DeleteEntryRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/datacatalog.proto + +package com.google.cloud.datacatalog.v1; + +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 new file mode 100644 index 000000000000..c930bfff3c41 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DeletePolicyTagRequest.java @@ -0,0 +1,655 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/policytagmanager.proto + +package com.google.cloud.datacatalog.v1; + +/** + * + * + *
+ * Request message for
+ * [DeletePolicyTag][google.cloud.datacatalog.v1.PolicyTagManager.DeletePolicyTag].
+ * 
+ * + * Protobuf type {@code google.cloud.datacatalog.v1.DeletePolicyTagRequest} + */ +public final class DeletePolicyTagRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.DeletePolicyTagRequest) + DeletePolicyTagRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeletePolicyTagRequest.newBuilder() to construct. + private DeletePolicyTagRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeletePolicyTagRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeletePolicyTagRequest(); + } + + 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.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 clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..4093af26dee7 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DeletePolicyTagRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/policytagmanager.proto + +package com.google.cloud.datacatalog.v1; + +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 new file mode 100644 index 000000000000..09f9a075d235 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DeleteTagRequest.java @@ -0,0 +1,640 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/datacatalog.proto + +package com.google.cloud.datacatalog.v1; + +/** + * + * + *
+ * Request message for
+ * [DeleteTag][google.cloud.datacatalog.v1.DataCatalog.DeleteTag].
+ * 
+ * + * Protobuf type {@code google.cloud.datacatalog.v1.DeleteTagRequest} + */ +public final class DeleteTagRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.DeleteTagRequest) + DeleteTagRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteTagRequest.newBuilder() to construct. + private DeleteTagRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteTagRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteTagRequest(); + } + + 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.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 clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..30a5a0784fb5 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DeleteTagRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/datacatalog.proto + +package com.google.cloud.datacatalog.v1; + +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 new file mode 100644 index 000000000000..b474b525b416 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DeleteTagTemplateFieldRequest.java @@ -0,0 +1,746 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/datacatalog.proto + +package com.google.cloud.datacatalog.v1; + +/** + * + * + *
+ * Request message for
+ * [DeleteTagTemplateField][google.cloud.datacatalog.v1.DataCatalog.DeleteTagTemplateField].
+ * 
+ * + * Protobuf type {@code google.cloud.datacatalog.v1.DeleteTagTemplateFieldRequest} + */ +public final class DeleteTagTemplateFieldRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.DeleteTagTemplateFieldRequest) + DeleteTagTemplateFieldRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteTagTemplateFieldRequest.newBuilder() to construct. + private DeleteTagTemplateFieldRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteTagTemplateFieldRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteTagTemplateFieldRequest(); + } + + 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..82ef09b88ed9 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DeleteTagTemplateFieldRequestOrBuilder.java @@ -0,0 +1,69 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/datacatalog.proto + +package com.google.cloud.datacatalog.v1; + +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 new file mode 100644 index 000000000000..e6c6feced0c2 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DeleteTagTemplateRequest.java @@ -0,0 +1,742 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/datacatalog.proto + +package com.google.cloud.datacatalog.v1; + +/** + * + * + *
+ * Request message for
+ * [DeleteTagTemplate][google.cloud.datacatalog.v1.DataCatalog.DeleteTagTemplate].
+ * 
+ * + * Protobuf type {@code google.cloud.datacatalog.v1.DeleteTagTemplateRequest} + */ +public final class DeleteTagTemplateRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.DeleteTagTemplateRequest) + DeleteTagTemplateRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteTagTemplateRequest.newBuilder() to construct. + private DeleteTagTemplateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteTagTemplateRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteTagTemplateRequest(); + } + + 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..f835cb1f59d9 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DeleteTagTemplateRequestOrBuilder.java @@ -0,0 +1,69 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/datacatalog.proto + +package com.google.cloud.datacatalog.v1; + +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 new file mode 100644 index 000000000000..589b95b4a374 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DeleteTaxonomyRequest.java @@ -0,0 +1,655 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/policytagmanager.proto + +package com.google.cloud.datacatalog.v1; + +/** + * + * + *
+ * Request message for
+ * [DeleteTaxonomy][google.cloud.datacatalog.v1.PolicyTagManager.DeleteTaxonomy].
+ * 
+ * + * Protobuf type {@code google.cloud.datacatalog.v1.DeleteTaxonomyRequest} + */ +public final class DeleteTaxonomyRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.DeleteTaxonomyRequest) + DeleteTaxonomyRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteTaxonomyRequest.newBuilder() to construct. + private DeleteTaxonomyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteTaxonomyRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteTaxonomyRequest(); + } + + 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.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 clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..75bffaaefa69 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DeleteTaxonomyRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/policytagmanager.proto + +package com.google.cloud.datacatalog.v1; + +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 new file mode 100644 index 000000000000..34e22213284c --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DumpContentProto.java @@ -0,0 +1,101 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/dump_content.proto + +package com.google.cloud.datacatalog.v1; + +public final class DumpContentProto { + private 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.GeneratedMessageV3.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.GeneratedMessageV3.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\"\311\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\004\342A\001\001\022;\n\013absent_tags\030\003 \003(\0132 .googl" + + "e.cloud.datacatalog.v1.TagB\004\342A\001\001B\007\n\005entr" + + "y\"T\n\010DumpItem\022@\n\014tagged_entry\030\001 \001(\0132(.go" + + "ogle.cloud.datacatalog.v1.TaggedEntryH\000B" + + "\006\n\004itemB\330\001\n\037com.google.cloud.datacatalog" + + ".v1B\020DumpContentProtoP\001ZAcloud.google.co" + + "m/go/datacatalog/apiv1/datacatalogpb;dat" + + "acatalogpb\370\001\001\252\002\033Google.Cloud.DataCatalog" + + ".V1\312\002\033Google\\Cloud\\DataCatalog\\V1\352\002\036Goog" + + "le::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.Datacatalog.getDescriptor(), + com.google.cloud.datacatalog.v1.Tags.getDescriptor(), + }); + internal_static_google_cloud_datacatalog_v1_TaggedEntry_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_datacatalog_v1_TaggedEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.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().getMessageTypes().get(1); + internal_static_google_cloud_datacatalog_v1_DumpItem_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datacatalog_v1_DumpItem_descriptor, + new java.lang.String[] { + "TaggedEntry", "Item", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.cloud.datacatalog.v1.Datacatalog.getDescriptor(); + com.google.cloud.datacatalog.v1.Tags.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/DumpItem.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DumpItem.java new file mode 100644 index 000000000000..5b1e7b6c1a66 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DumpItem.java @@ -0,0 +1,814 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/dump_content.proto + +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} + */ +public final class DumpItem extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.DumpItem) + DumpItemOrBuilder { + private static final long serialVersionUID = 0L; + // Use DumpItem.newBuilder() to construct. + private DumpItem(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DumpItem() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new 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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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(getTaggedEntryFieldBuilder().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.SingleFieldBuilderV3< + 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 getTaggedEntryFieldBuilder().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.SingleFieldBuilderV3< + com.google.cloud.datacatalog.v1.TaggedEntry, + com.google.cloud.datacatalog.v1.TaggedEntry.Builder, + com.google.cloud.datacatalog.v1.TaggedEntryOrBuilder> + getTaggedEntryFieldBuilder() { + if (taggedEntryBuilder_ == null) { + if (!(itemCase_ == 1)) { + item_ = com.google.cloud.datacatalog.v1.TaggedEntry.getDefaultInstance(); + } + taggedEntryBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + 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_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..3e34ecbcff73 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DumpItemOrBuilder.java @@ -0,0 +1,62 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/dump_content.proto + +package com.google.cloud.datacatalog.v1; + +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 new file mode 100644 index 000000000000..b88283614e06 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/Entry.java @@ -0,0 +1,9296 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/datacatalog.proto + +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} + */ +public final class Entry extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.Entry) + EntryOrBuilder { + private static final long serialVersionUID = 0L; + // Use Entry.newBuilder() to construct. + private Entry(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Entry() { + name_ = ""; + linkedResource_ = ""; + fullyQualifiedName_ = ""; + displayName_ = ""; + description_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Entry(); + } + + 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.MapField internalGetMapField(int number) { + switch (number) { + case 14: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.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 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), + 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 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. 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.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. 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.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 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 businessContext_ != null; + } + /** + * + * + *
+   * 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 schema_ != null; + } + /** + * + * + *
+   * 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 sourceSystemTimestamps_ != null; + } + /** + * + * + *
+   * 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 usageSignal_ != null; + } + /** + * + * + *
+   * 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 dataSource_ != null; + } + /** + * + * + *
+   * 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 personalDetails_ != null; + } + /** + * + * + *
+   * 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.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (entryTypeCase_ == 2) { + output.writeEnum(2, ((java.lang.Integer) entryType_)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, description_); + } + if (schema_ != null) { + output.writeMessage(5, getSchema()); + } + if (typeSpecCase_ == 6) { + output.writeMessage(6, (com.google.cloud.datacatalog.v1.GcsFilesetSpec) typeSpec_); + } + if (sourceSystemTimestamps_ != null) { + output.writeMessage(7, getSourceSystemTimestamps()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(linkedResource_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, linkedResource_); + } + if (typeSpecCase_ == 12) { + output.writeMessage(12, (com.google.cloud.datacatalog.v1.BigQueryTableSpec) typeSpec_); + } + if (usageSignal_ != null) { + output.writeMessage(13, getUsageSignal()); + } + com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.writeString(output, 16, entryType_); + } + if (systemCase_ == 17) { + output.writeEnum(17, ((java.lang.Integer) system_)); + } + if (systemCase_ == 18) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 18, system_); + } + if (dataSource_ != null) { + output.writeMessage(20, getDataSource()); + } + if (specCase_ == 24) { + output.writeMessage(24, (com.google.cloud.datacatalog.v1.DatabaseTableSpec) spec_); + } + if (personalDetails_ != null) { + 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.GeneratedMessageV3.isStringEmpty(fullyQualifiedName_)) { + com.google.protobuf.GeneratedMessageV3.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 (businessContext_ != null) { + 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_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (entryTypeCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeEnumSize( + 2, ((java.lang.Integer) entryType_)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, description_); + } + if (schema_ != null) { + 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 (sourceSystemTimestamps_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(7, getSourceSystemTimestamps()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(linkedResource_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, linkedResource_); + } + if (typeSpecCase_ == 12) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 12, (com.google.cloud.datacatalog.v1.BigQueryTableSpec) typeSpec_); + } + if (usageSignal_ != null) { + 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.GeneratedMessageV3.computeStringSize(16, entryType_); + } + if (systemCase_ == 17) { + size += + com.google.protobuf.CodedOutputStream.computeEnumSize(17, ((java.lang.Integer) system_)); + } + if (systemCase_ == 18) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(18, system_); + } + if (dataSource_ != null) { + 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 (personalDetails_ != null) { + 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.GeneratedMessageV3.isStringEmpty(fullyQualifiedName_)) { + size += com.google.protobuf.GeneratedMessageV3.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 (businessContext_ != null) { + 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_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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 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 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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.MapField internalGetMapField(int number) { + switch (number) { + case 14: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + switch (number) { + case 14: + return internalGetMutableLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.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() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @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(); + } + 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_ & 0x00100000) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00200000) != 0)) { + result.description_ = description_; + } + if (((from_bitField0_ & 0x00400000) != 0)) { + result.businessContext_ = + businessContextBuilder_ == null ? businessContext_ : businessContextBuilder_.build(); + } + if (((from_bitField0_ & 0x00800000) != 0)) { + result.schema_ = schemaBuilder_ == null ? schema_ : schemaBuilder_.build(); + } + if (((from_bitField0_ & 0x01000000) != 0)) { + result.sourceSystemTimestamps_ = + sourceSystemTimestampsBuilder_ == null + ? sourceSystemTimestamps_ + : sourceSystemTimestampsBuilder_.build(); + } + if (((from_bitField0_ & 0x02000000) != 0)) { + result.usageSignal_ = + usageSignalBuilder_ == null ? usageSignal_ : usageSignalBuilder_.build(); + } + if (((from_bitField0_ & 0x04000000) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + if (((from_bitField0_ & 0x08000000) != 0)) { + result.dataSource_ = dataSourceBuilder_ == null ? dataSource_ : dataSourceBuilder_.build(); + } + if (((from_bitField0_ & 0x10000000) != 0)) { + result.personalDetails_ = + personalDetailsBuilder_ == null ? personalDetails_ : personalDetailsBuilder_.build(); + } + } + + 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(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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_ |= 0x00100000; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00200000; + 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_ |= 0x04000000; + 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 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_ |= 0x00100000; + break; + } // case 26 + case 34: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00200000; + break; + } // case 34 + case 42: + { + input.readMessage(getSchemaFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00800000; + break; + } // case 42 + case 50: + { + input.readMessage(getGcsFilesetSpecFieldBuilder().getBuilder(), extensionRegistry); + typeSpecCase_ = 6; + break; + } // case 50 + case 58: + { + input.readMessage( + getSourceSystemTimestampsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x01000000; + break; + } // case 58 + case 74: + { + linkedResource_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 74 + case 98: + { + input.readMessage( + getBigqueryTableSpecFieldBuilder().getBuilder(), extensionRegistry); + typeSpecCase_ = 12; + break; + } // case 98 + case 106: + { + input.readMessage(getUsageSignalFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x02000000; + break; + } // case 106 + case 114: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x04000000; + break; + } // case 114 + case 122: + { + input.readMessage( + getBigqueryDateShardedSpecFieldBuilder().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(getDataSourceFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x08000000; + break; + } // case 162 + case 194: + { + input.readMessage( + getDatabaseTableSpecFieldBuilder().getBuilder(), extensionRegistry); + specCase_ = 24; + break; + } // case 194 + case 210: + { + input.readMessage(getPersonalDetailsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x10000000; + break; + } // case 210 + case 218: + { + input.readMessage( + getDataSourceConnectionSpecFieldBuilder().getBuilder(), extensionRegistry); + specCase_ = 27; + break; + } // case 218 + case 226: + { + input.readMessage(getRoutineSpecFieldBuilder().getBuilder(), extensionRegistry); + specCase_ = 28; + break; + } // case 226 + case 234: + { + fullyQualifiedName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 234 + case 258: + { + input.readMessage(getDatasetSpecFieldBuilder().getBuilder(), extensionRegistry); + specCase_ = 32; + break; + } // case 258 + case 266: + { + input.readMessage(getFilesetSpecFieldBuilder().getBuilder(), extensionRegistry); + specCase_ = 33; + break; + } // case 266 + case 298: + { + input.readMessage(getBusinessContextFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00400000; + break; + } // case 298 + case 314: + { + input.readMessage( + getSqlDatabaseSystemSpecFieldBuilder().getBuilder(), extensionRegistry); + systemSpecCase_ = 39; + break; + } // case 314 + case 322: + { + input.readMessage( + getLookerSystemSpecFieldBuilder().getBuilder(), extensionRegistry); + systemSpecCase_ = 40; + break; + } // case 322 + case 330: + { + input.readMessage( + getCloudBigtableSystemSpecFieldBuilder().getBuilder(), extensionRegistry); + systemSpecCase_ = 41; + break; + } // case 330 + case 338: + { + input.readMessage(getServiceSpecFieldBuilder().getBuilder(), extensionRegistry); + specCase_ = 42; + break; + } // case 338 + case 346: + { + input.readMessage(getModelSpecFieldBuilder().getBuilder(), extensionRegistry); + specCase_ = 43; + break; + } // case 346 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an 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. 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.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. 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.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. 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.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. 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.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. 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.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.SingleFieldBuilderV3< + 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 getSqlDatabaseSystemSpecFieldBuilder().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.SingleFieldBuilderV3< + com.google.cloud.datacatalog.v1.SqlDatabaseSystemSpec, + com.google.cloud.datacatalog.v1.SqlDatabaseSystemSpec.Builder, + com.google.cloud.datacatalog.v1.SqlDatabaseSystemSpecOrBuilder> + getSqlDatabaseSystemSpecFieldBuilder() { + if (sqlDatabaseSystemSpecBuilder_ == null) { + if (!(systemSpecCase_ == 39)) { + systemSpec_ = com.google.cloud.datacatalog.v1.SqlDatabaseSystemSpec.getDefaultInstance(); + } + sqlDatabaseSystemSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + 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.SingleFieldBuilderV3< + 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 getLookerSystemSpecFieldBuilder().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.SingleFieldBuilderV3< + com.google.cloud.datacatalog.v1.LookerSystemSpec, + com.google.cloud.datacatalog.v1.LookerSystemSpec.Builder, + com.google.cloud.datacatalog.v1.LookerSystemSpecOrBuilder> + getLookerSystemSpecFieldBuilder() { + if (lookerSystemSpecBuilder_ == null) { + if (!(systemSpecCase_ == 40)) { + systemSpec_ = com.google.cloud.datacatalog.v1.LookerSystemSpec.getDefaultInstance(); + } + lookerSystemSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + 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.SingleFieldBuilderV3< + 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 getCloudBigtableSystemSpecFieldBuilder().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.SingleFieldBuilderV3< + com.google.cloud.datacatalog.v1.CloudBigtableSystemSpec, + com.google.cloud.datacatalog.v1.CloudBigtableSystemSpec.Builder, + com.google.cloud.datacatalog.v1.CloudBigtableSystemSpecOrBuilder> + getCloudBigtableSystemSpecFieldBuilder() { + if (cloudBigtableSystemSpecBuilder_ == null) { + if (!(systemSpecCase_ == 41)) { + systemSpec_ = + com.google.cloud.datacatalog.v1.CloudBigtableSystemSpec.getDefaultInstance(); + } + cloudBigtableSystemSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + 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.SingleFieldBuilderV3< + 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 getGcsFilesetSpecFieldBuilder().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.SingleFieldBuilderV3< + com.google.cloud.datacatalog.v1.GcsFilesetSpec, + com.google.cloud.datacatalog.v1.GcsFilesetSpec.Builder, + com.google.cloud.datacatalog.v1.GcsFilesetSpecOrBuilder> + getGcsFilesetSpecFieldBuilder() { + if (gcsFilesetSpecBuilder_ == null) { + if (!(typeSpecCase_ == 6)) { + typeSpec_ = com.google.cloud.datacatalog.v1.GcsFilesetSpec.getDefaultInstance(); + } + gcsFilesetSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + 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.SingleFieldBuilderV3< + 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 getBigqueryTableSpecFieldBuilder().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.SingleFieldBuilderV3< + com.google.cloud.datacatalog.v1.BigQueryTableSpec, + com.google.cloud.datacatalog.v1.BigQueryTableSpec.Builder, + com.google.cloud.datacatalog.v1.BigQueryTableSpecOrBuilder> + getBigqueryTableSpecFieldBuilder() { + if (bigqueryTableSpecBuilder_ == null) { + if (!(typeSpecCase_ == 12)) { + typeSpec_ = com.google.cloud.datacatalog.v1.BigQueryTableSpec.getDefaultInstance(); + } + bigqueryTableSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + 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.SingleFieldBuilderV3< + 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 getBigqueryDateShardedSpecFieldBuilder().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.SingleFieldBuilderV3< + com.google.cloud.datacatalog.v1.BigQueryDateShardedSpec, + com.google.cloud.datacatalog.v1.BigQueryDateShardedSpec.Builder, + com.google.cloud.datacatalog.v1.BigQueryDateShardedSpecOrBuilder> + getBigqueryDateShardedSpecFieldBuilder() { + if (bigqueryDateShardedSpecBuilder_ == null) { + if (!(typeSpecCase_ == 15)) { + typeSpec_ = com.google.cloud.datacatalog.v1.BigQueryDateShardedSpec.getDefaultInstance(); + } + bigqueryDateShardedSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + 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.SingleFieldBuilderV3< + 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 getDatabaseTableSpecFieldBuilder().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.SingleFieldBuilderV3< + com.google.cloud.datacatalog.v1.DatabaseTableSpec, + com.google.cloud.datacatalog.v1.DatabaseTableSpec.Builder, + com.google.cloud.datacatalog.v1.DatabaseTableSpecOrBuilder> + getDatabaseTableSpecFieldBuilder() { + if (databaseTableSpecBuilder_ == null) { + if (!(specCase_ == 24)) { + spec_ = com.google.cloud.datacatalog.v1.DatabaseTableSpec.getDefaultInstance(); + } + databaseTableSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + 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.SingleFieldBuilderV3< + 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 getDataSourceConnectionSpecFieldBuilder().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.SingleFieldBuilderV3< + com.google.cloud.datacatalog.v1.DataSourceConnectionSpec, + com.google.cloud.datacatalog.v1.DataSourceConnectionSpec.Builder, + com.google.cloud.datacatalog.v1.DataSourceConnectionSpecOrBuilder> + getDataSourceConnectionSpecFieldBuilder() { + if (dataSourceConnectionSpecBuilder_ == null) { + if (!(specCase_ == 27)) { + spec_ = com.google.cloud.datacatalog.v1.DataSourceConnectionSpec.getDefaultInstance(); + } + dataSourceConnectionSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + 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.SingleFieldBuilderV3< + 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 getRoutineSpecFieldBuilder().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.SingleFieldBuilderV3< + com.google.cloud.datacatalog.v1.RoutineSpec, + com.google.cloud.datacatalog.v1.RoutineSpec.Builder, + com.google.cloud.datacatalog.v1.RoutineSpecOrBuilder> + getRoutineSpecFieldBuilder() { + if (routineSpecBuilder_ == null) { + if (!(specCase_ == 28)) { + spec_ = com.google.cloud.datacatalog.v1.RoutineSpec.getDefaultInstance(); + } + routineSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + 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.SingleFieldBuilderV3< + 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 getDatasetSpecFieldBuilder().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.SingleFieldBuilderV3< + com.google.cloud.datacatalog.v1.DatasetSpec, + com.google.cloud.datacatalog.v1.DatasetSpec.Builder, + com.google.cloud.datacatalog.v1.DatasetSpecOrBuilder> + getDatasetSpecFieldBuilder() { + if (datasetSpecBuilder_ == null) { + if (!(specCase_ == 32)) { + spec_ = com.google.cloud.datacatalog.v1.DatasetSpec.getDefaultInstance(); + } + datasetSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + 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.SingleFieldBuilderV3< + 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 getFilesetSpecFieldBuilder().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.SingleFieldBuilderV3< + com.google.cloud.datacatalog.v1.FilesetSpec, + com.google.cloud.datacatalog.v1.FilesetSpec.Builder, + com.google.cloud.datacatalog.v1.FilesetSpecOrBuilder> + getFilesetSpecFieldBuilder() { + if (filesetSpecBuilder_ == null) { + if (!(specCase_ == 33)) { + spec_ = com.google.cloud.datacatalog.v1.FilesetSpec.getDefaultInstance(); + } + filesetSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + 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.SingleFieldBuilderV3< + 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 getServiceSpecFieldBuilder().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.SingleFieldBuilderV3< + com.google.cloud.datacatalog.v1.ServiceSpec, + com.google.cloud.datacatalog.v1.ServiceSpec.Builder, + com.google.cloud.datacatalog.v1.ServiceSpecOrBuilder> + getServiceSpecFieldBuilder() { + if (serviceSpecBuilder_ == null) { + if (!(specCase_ == 42)) { + spec_ = com.google.cloud.datacatalog.v1.ServiceSpec.getDefaultInstance(); + } + serviceSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + 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.SingleFieldBuilderV3< + 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 getModelSpecFieldBuilder().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.SingleFieldBuilderV3< + com.google.cloud.datacatalog.v1.ModelSpec, + com.google.cloud.datacatalog.v1.ModelSpec.Builder, + com.google.cloud.datacatalog.v1.ModelSpecOrBuilder> + getModelSpecFieldBuilder() { + if (modelSpecBuilder_ == null) { + if (!(specCase_ == 43)) { + spec_ = com.google.cloud.datacatalog.v1.ModelSpec.getDefaultInstance(); + } + modelSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + 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 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_ |= 0x00100000; + 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_ & ~0x00100000); + 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_ |= 0x00100000; + 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_ |= 0x00200000; + 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_ & ~0x00200000); + 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_ |= 0x00200000; + onChanged(); + return this; + } + + private com.google.cloud.datacatalog.v1.BusinessContext businessContext_; + private com.google.protobuf.SingleFieldBuilderV3< + 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_ & 0x00400000) != 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_ |= 0x00400000; + 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_ |= 0x00400000; + 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_ & 0x00400000) != 0) + && businessContext_ != null + && businessContext_ + != com.google.cloud.datacatalog.v1.BusinessContext.getDefaultInstance()) { + getBusinessContextBuilder().mergeFrom(value); + } else { + businessContext_ = value; + } + } else { + businessContextBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00400000; + 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_ & ~0x00400000); + 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_ |= 0x00400000; + onChanged(); + return getBusinessContextFieldBuilder().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.SingleFieldBuilderV3< + com.google.cloud.datacatalog.v1.BusinessContext, + com.google.cloud.datacatalog.v1.BusinessContext.Builder, + com.google.cloud.datacatalog.v1.BusinessContextOrBuilder> + getBusinessContextFieldBuilder() { + if (businessContextBuilder_ == null) { + businessContextBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + 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.SingleFieldBuilderV3< + 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_ & 0x00800000) != 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_ |= 0x00800000; + 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_ |= 0x00800000; + 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_ & 0x00800000) != 0) + && schema_ != null + && schema_ != com.google.cloud.datacatalog.v1.Schema.getDefaultInstance()) { + getSchemaBuilder().mergeFrom(value); + } else { + schema_ = value; + } + } else { + schemaBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00800000; + 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_ & ~0x00800000); + 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_ |= 0x00800000; + onChanged(); + return getSchemaFieldBuilder().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.SingleFieldBuilderV3< + com.google.cloud.datacatalog.v1.Schema, + com.google.cloud.datacatalog.v1.Schema.Builder, + com.google.cloud.datacatalog.v1.SchemaOrBuilder> + getSchemaFieldBuilder() { + if (schemaBuilder_ == null) { + schemaBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + 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.SingleFieldBuilderV3< + 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_ & 0x01000000) != 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_ |= 0x01000000; + 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_ |= 0x01000000; + 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_ & 0x01000000) != 0) + && sourceSystemTimestamps_ != null + && sourceSystemTimestamps_ + != com.google.cloud.datacatalog.v1.SystemTimestamps.getDefaultInstance()) { + getSourceSystemTimestampsBuilder().mergeFrom(value); + } else { + sourceSystemTimestamps_ = value; + } + } else { + sourceSystemTimestampsBuilder_.mergeFrom(value); + } + bitField0_ |= 0x01000000; + 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_ & ~0x01000000); + 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_ |= 0x01000000; + onChanged(); + return getSourceSystemTimestampsFieldBuilder().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.SingleFieldBuilderV3< + com.google.cloud.datacatalog.v1.SystemTimestamps, + com.google.cloud.datacatalog.v1.SystemTimestamps.Builder, + com.google.cloud.datacatalog.v1.SystemTimestampsOrBuilder> + getSourceSystemTimestampsFieldBuilder() { + if (sourceSystemTimestampsBuilder_ == null) { + sourceSystemTimestampsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + 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.SingleFieldBuilderV3< + 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_ & 0x02000000) != 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_ |= 0x02000000; + 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_ |= 0x02000000; + 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_ & 0x02000000) != 0) + && usageSignal_ != null + && usageSignal_ != com.google.cloud.datacatalog.v1.UsageSignal.getDefaultInstance()) { + getUsageSignalBuilder().mergeFrom(value); + } else { + usageSignal_ = value; + } + } else { + usageSignalBuilder_.mergeFrom(value); + } + bitField0_ |= 0x02000000; + onChanged(); + return this; + } + /** + * + * + *
+     * Resource usage statistics.
+     * 
+ * + * .google.cloud.datacatalog.v1.UsageSignal usage_signal = 13; + */ + public Builder clearUsageSignal() { + bitField0_ = (bitField0_ & ~0x02000000); + 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_ |= 0x02000000; + onChanged(); + return getUsageSignalFieldBuilder().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.SingleFieldBuilderV3< + com.google.cloud.datacatalog.v1.UsageSignal, + com.google.cloud.datacatalog.v1.UsageSignal.Builder, + com.google.cloud.datacatalog.v1.UsageSignalOrBuilder> + getUsageSignalFieldBuilder() { + if (usageSignalBuilder_ == null) { + usageSignalBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + 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_ |= 0x04000000; + 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_ & ~0x04000000); + 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_ |= 0x04000000; + 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_ |= 0x04000000; + 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_ |= 0x04000000; + return this; + } + + private com.google.cloud.datacatalog.v1.DataSource dataSource_; + private com.google.protobuf.SingleFieldBuilderV3< + 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_ & 0x08000000) != 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_ |= 0x08000000; + 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_ |= 0x08000000; + 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_ & 0x08000000) != 0) + && dataSource_ != null + && dataSource_ != com.google.cloud.datacatalog.v1.DataSource.getDefaultInstance()) { + getDataSourceBuilder().mergeFrom(value); + } else { + dataSource_ = value; + } + } else { + dataSourceBuilder_.mergeFrom(value); + } + bitField0_ |= 0x08000000; + 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_ & ~0x08000000); + 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_ |= 0x08000000; + onChanged(); + return getDataSourceFieldBuilder().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.SingleFieldBuilderV3< + com.google.cloud.datacatalog.v1.DataSource, + com.google.cloud.datacatalog.v1.DataSource.Builder, + com.google.cloud.datacatalog.v1.DataSourceOrBuilder> + getDataSourceFieldBuilder() { + if (dataSourceBuilder_ == null) { + dataSourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + 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.SingleFieldBuilderV3< + 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_ & 0x10000000) != 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_ |= 0x10000000; + 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_ |= 0x10000000; + 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_ & 0x10000000) != 0) + && personalDetails_ != null + && personalDetails_ + != com.google.cloud.datacatalog.v1.PersonalDetails.getDefaultInstance()) { + getPersonalDetailsBuilder().mergeFrom(value); + } else { + personalDetails_ = value; + } + } else { + personalDetailsBuilder_.mergeFrom(value); + } + bitField0_ |= 0x10000000; + 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_ & ~0x10000000); + 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_ |= 0x10000000; + onChanged(); + return getPersonalDetailsFieldBuilder().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.SingleFieldBuilderV3< + com.google.cloud.datacatalog.v1.PersonalDetails, + com.google.cloud.datacatalog.v1.PersonalDetails.Builder, + com.google.cloud.datacatalog.v1.PersonalDetailsOrBuilder> + getPersonalDetailsFieldBuilder() { + if (personalDetailsBuilder_ == null) { + personalDetailsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + 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_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..b4edad13e085 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/EntryGroup.java @@ -0,0 +1,1335 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/datacatalog.proto + +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} + */ +public final class EntryGroup extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.EntryGroup) + EntryGroupOrBuilder { + private static final long serialVersionUID = 0L; + // Use EntryGroup.newBuilder() to construct. + private EntryGroup(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private EntryGroup() { + name_ = ""; + displayName_ = ""; + description_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new EntryGroup(); + } + + 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.GeneratedMessageV3.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); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * 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; + * + * @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 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; + * + * @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 dataCatalogTimestamps_ != null; + } + /** + * + * + *
+   * 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_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_); + } + if (dataCatalogTimestamps_ != null) { + 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.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); + } + if (dataCatalogTimestamps_ != null) { + 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.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 (!getUnknownFields().equals(other.getUnknownFields())) return false; + 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.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @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.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_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.dataCatalogTimestamps_ = + dataCatalogTimestampsBuilder_ == null + ? dataCatalogTimestamps_ + : dataCatalogTimestampsBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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( + getDataCatalogTimestampsFieldBuilder().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_ = ""; + /** + * + * + *
+     * 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; + * + * @return The name. + */ + public java.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 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; + * + * @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 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; + * + * @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 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; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * 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; + * + * @param value The 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.SingleFieldBuilderV3< + 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); + } + 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 getDataCatalogTimestampsFieldBuilder().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.SingleFieldBuilderV3< + com.google.cloud.datacatalog.v1.SystemTimestamps, + com.google.cloud.datacatalog.v1.SystemTimestamps.Builder, + com.google.cloud.datacatalog.v1.SystemTimestampsOrBuilder> + getDataCatalogTimestampsFieldBuilder() { + if (dataCatalogTimestampsBuilder_ == null) { + dataCatalogTimestampsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + 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_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/EntryGroupName.java rename to java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/EntryGroupName.java 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 new file mode 100644 index 000000000000..0e33f1773ec7 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/EntryGroupOrBuilder.java @@ -0,0 +1,153 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/datacatalog.proto + +package com.google.cloud.datacatalog.v1; + +public interface EntryGroupOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.EntryGroup) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * 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; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * 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; + * + * @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(); +} diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/EntryName.java rename to java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/EntryName.java 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 new file mode 100644 index 000000000000..f43859adca21 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/EntryOrBuilder.java @@ -0,0 +1,1289 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/datacatalog.proto + +package com.google.cloud.datacatalog.v1; + +public interface EntryOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.Entry) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. 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.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Output only. 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.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(); + + /** + * + * + *
+   * 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 new file mode 100644 index 000000000000..4c6fa9a8998d --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/EntryOverview.java @@ -0,0 +1,665 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/datacatalog.proto + +package com.google.cloud.datacatalog.v1; + +/** + * + * + *
+ * Entry overview fields for rich text descriptions of entries.
+ * 
+ * + * Protobuf type {@code google.cloud.datacatalog.v1.EntryOverview} + */ +public final class EntryOverview extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.EntryOverview) + EntryOverviewOrBuilder { + private static final long serialVersionUID = 0L; + // Use EntryOverview.newBuilder() to construct. + private EntryOverview(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private EntryOverview() { + overview_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new EntryOverview(); + } + + 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(overview_)) { + com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(overview_)) { + size += com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..6f87e0c4e303 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/EntryOverviewOrBuilder.java @@ -0,0 +1,62 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/datacatalog.proto + +package com.google.cloud.datacatalog.v1; + +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 new file mode 100644 index 000000000000..c682eefbecce --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/EntryType.java @@ -0,0 +1,497 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/datacatalog.proto + +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} + */ +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), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+   * 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; + + 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; + 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 final 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 new file mode 100644 index 000000000000..c89097d18b46 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ExportTaxonomiesRequest.java @@ -0,0 +1,1172 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/policytagmanagerserialization.proto + +package com.google.cloud.datacatalog.v1; + +/** + * + * + *
+ * Request message for
+ * [ExportTaxonomies][google.cloud.datacatalog.v1.PolicyTagManagerSerialization.ExportTaxonomies].
+ * 
+ * + * Protobuf type {@code google.cloud.datacatalog.v1.ExportTaxonomiesRequest} + */ +public final class ExportTaxonomiesRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.ExportTaxonomiesRequest) + ExportTaxonomiesRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ExportTaxonomiesRequest.newBuilder() to construct. + private ExportTaxonomiesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ExportTaxonomiesRequest() { + parent_ = ""; + taxonomies_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ExportTaxonomiesRequest(); + } + + 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + for (int i = 0; i < taxonomies_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..da837eb07b48 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ExportTaxonomiesRequestOrBuilder.java @@ -0,0 +1,144 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/policytagmanagerserialization.proto + +package com.google.cloud.datacatalog.v1; + +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 new file mode 100644 index 000000000000..0bf54faf3771 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ExportTaxonomiesResponse.java @@ -0,0 +1,949 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/policytagmanagerserialization.proto + +package com.google.cloud.datacatalog.v1; + +/** + * + * + *
+ * Response message for
+ * [ExportTaxonomies][google.cloud.datacatalog.v1.PolicyTagManagerSerialization.ExportTaxonomies].
+ * 
+ * + * Protobuf type {@code google.cloud.datacatalog.v1.ExportTaxonomiesResponse} + */ +public final class ExportTaxonomiesResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.ExportTaxonomiesResponse) + ExportTaxonomiesResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ExportTaxonomiesResponse.newBuilder() to construct. + private ExportTaxonomiesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ExportTaxonomiesResponse() { + taxonomies_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ExportTaxonomiesResponse(); + } + + 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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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.GeneratedMessageV3.alwaysUseFieldBuilders + ? getTaxonomiesFieldBuilder() + : 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.RepeatedFieldBuilderV3< + 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 getTaxonomiesFieldBuilder().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 getTaxonomiesFieldBuilder() + .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 getTaxonomiesFieldBuilder() + .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 getTaxonomiesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datacatalog.v1.SerializedTaxonomy, + com.google.cloud.datacatalog.v1.SerializedTaxonomy.Builder, + com.google.cloud.datacatalog.v1.SerializedTaxonomyOrBuilder> + getTaxonomiesFieldBuilder() { + if (taxonomiesBuilder_ == null) { + taxonomiesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + 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_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..286aafe5ac6a --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ExportTaxonomiesResponseOrBuilder.java @@ -0,0 +1,77 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/policytagmanagerserialization.proto + +package com.google.cloud.datacatalog.v1; + +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/FieldType.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/FieldType.java new file mode 100644 index 000000000000..2db984043454 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/FieldType.java @@ -0,0 +1,3155 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/tags.proto + +package com.google.cloud.datacatalog.v1; + +/** Protobuf type {@code google.cloud.datacatalog.v1.FieldType} */ +public final class FieldType extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.FieldType) + FieldTypeOrBuilder { + private static final long serialVersionUID = 0L; + // Use FieldType.newBuilder() to construct. + private FieldType(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private FieldType() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new 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.GeneratedMessageV3.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), + ; + + /** + * + * + *
+     * 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 final 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.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.FieldType.EnumType) + EnumTypeOrBuilder { + private static final long serialVersionUID = 0L; + // Use EnumType.newBuilder() to construct. + private EnumType(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private EnumType() { + allowedValues_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new EnumType(); + } + + 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.GeneratedMessageV3.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.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.FieldType.EnumType.EnumValue) + EnumValueOrBuilder { + private static final long serialVersionUID = 0L; + // Use EnumValue.newBuilder() to construct. + private EnumValue(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private EnumValue() { + displayName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new EnumValue(); + } + + 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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.GeneratedMessageV3.alwaysUseFieldBuilders + ? getAllowedValuesFieldBuilder() + : 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.RepeatedFieldBuilderV3< + 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 getAllowedValuesFieldBuilder().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 getAllowedValuesFieldBuilder() + .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 getAllowedValuesFieldBuilder() + .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 getAllowedValuesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + 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> + getAllowedValuesFieldBuilder() { + if (allowedValuesBuilder_ == null) { + allowedValuesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + 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_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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(getEnumTypeFieldBuilder().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.SingleFieldBuilderV3< + 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 getEnumTypeFieldBuilder().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.SingleFieldBuilderV3< + com.google.cloud.datacatalog.v1.FieldType.EnumType, + com.google.cloud.datacatalog.v1.FieldType.EnumType.Builder, + com.google.cloud.datacatalog.v1.FieldType.EnumTypeOrBuilder> + getEnumTypeFieldBuilder() { + if (enumTypeBuilder_ == null) { + if (!(typeDeclCase_ == 2)) { + typeDecl_ = com.google.cloud.datacatalog.v1.FieldType.EnumType.getDefaultInstance(); + } + enumTypeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + 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_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..84a899982cff --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/FieldTypeOrBuilder.java @@ -0,0 +1,99 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/tags.proto + +package com.google.cloud.datacatalog.v1; + +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 new file mode 100644 index 000000000000..e9b691146b43 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/FilesetSpec.java @@ -0,0 +1,723 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/datacatalog.proto + +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} + */ +public final class FilesetSpec extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.FilesetSpec) + FilesetSpecOrBuilder { + private static final long serialVersionUID = 0L; + // Use FilesetSpec.newBuilder() to construct. + private FilesetSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private FilesetSpec() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new 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.GeneratedMessageV3.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); + } + + 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 dataplexFileset_ != null; + } + /** + * + * + *
+   * 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 (dataplexFileset_ != null) { + output.writeMessage(1, getDataplexFileset()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (dataplexFileset_ != null) { + 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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @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_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.dataplexFileset_ = + dataplexFilesetBuilder_ == null ? dataplexFileset_ : dataplexFilesetBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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(getDataplexFilesetFieldBuilder().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.SingleFieldBuilderV3< + 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); + } + 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 getDataplexFilesetFieldBuilder().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.SingleFieldBuilderV3< + com.google.cloud.datacatalog.v1.DataplexFilesetSpec, + com.google.cloud.datacatalog.v1.DataplexFilesetSpec.Builder, + com.google.cloud.datacatalog.v1.DataplexFilesetSpecOrBuilder> + getDataplexFilesetFieldBuilder() { + if (dataplexFilesetBuilder_ == null) { + dataplexFilesetBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + 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_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..7af32755af5d --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/FilesetSpecOrBuilder.java @@ -0,0 +1,63 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/datacatalog.proto + +package com.google.cloud.datacatalog.v1; + +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 new file mode 100644 index 000000000000..a2e0d96d00ca --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/GcsFileSpec.java @@ -0,0 +1,1019 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/gcs_fileset_spec.proto + +package com.google.cloud.datacatalog.v1; + +/** + * + * + *
+ * Specification of a single file in Cloud Storage.
+ * 
+ * + * Protobuf type {@code google.cloud.datacatalog.v1.GcsFileSpec} + */ +public final class GcsFileSpec extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.GcsFileSpec) + GcsFileSpecOrBuilder { + private static final long serialVersionUID = 0L; + // Use GcsFileSpec.newBuilder() to construct. + private GcsFileSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GcsFileSpec() { + filePath_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GcsFileSpec(); + } + + 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.GeneratedMessageV3.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); + } + + 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 gcsTimestamps_ != null; + } + /** + * + * + *
+   * 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.GeneratedMessageV3.isStringEmpty(filePath_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, filePath_); + } + if (gcsTimestamps_ != null) { + 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.GeneratedMessageV3.isStringEmpty(filePath_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, filePath_); + } + if (gcsTimestamps_ != null) { + 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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @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_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.gcsTimestamps_ = + gcsTimestampsBuilder_ == null ? gcsTimestamps_ : gcsTimestampsBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.sizeBytes_ = sizeBytes_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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(getGcsTimestampsFieldBuilder().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.SingleFieldBuilderV3< + 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); + } + 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 getGcsTimestampsFieldBuilder().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.SingleFieldBuilderV3< + com.google.cloud.datacatalog.v1.SystemTimestamps, + com.google.cloud.datacatalog.v1.SystemTimestamps.Builder, + com.google.cloud.datacatalog.v1.SystemTimestampsOrBuilder> + getGcsTimestampsFieldBuilder() { + if (gcsTimestampsBuilder_ == null) { + gcsTimestampsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + 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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..4d1489f61f0b --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/GcsFileSpecOrBuilder.java @@ -0,0 +1,107 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/gcs_fileset_spec.proto + +package com.google.cloud.datacatalog.v1; + +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 new file mode 100644 index 000000000000..984d8a54dc5c --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/GcsFilesetSpec.java @@ -0,0 +1,1656 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/gcs_fileset_spec.proto + +package com.google.cloud.datacatalog.v1; + +/** + * + * + *
+ * Describes a Cloud Storage fileset entry.
+ * 
+ * + * Protobuf type {@code google.cloud.datacatalog.v1.GcsFilesetSpec} + */ +public final class GcsFilesetSpec extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.GcsFilesetSpec) + GcsFilesetSpecOrBuilder { + private static final long serialVersionUID = 0L; + // Use GcsFilesetSpec.newBuilder() to construct. + private GcsFilesetSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GcsFilesetSpec() { + filePatterns_ = com.google.protobuf.LazyStringArrayList.emptyList(); + sampleGcsFileSpecs_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GcsFilesetSpec(); + } + + 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.GeneratedMessageV3.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/gsutil/addlhelp/WildcardNames).
+   *
+   * 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/gsutil/addlhelp/WildcardNames).
+   *
+   * 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/gsutil/addlhelp/WildcardNames).
+   *
+   * 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/gsutil/addlhelp/WildcardNames).
+   *
+   * 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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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.GeneratedMessageV3.alwaysUseFieldBuilders + ? getSampleGcsFileSpecsFieldBuilder() + : 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/gsutil/addlhelp/WildcardNames).
+     *
+     * 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/gsutil/addlhelp/WildcardNames).
+     *
+     * 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/gsutil/addlhelp/WildcardNames).
+     *
+     * 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/gsutil/addlhelp/WildcardNames).
+     *
+     * 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/gsutil/addlhelp/WildcardNames).
+     *
+     * 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/gsutil/addlhelp/WildcardNames).
+     *
+     * 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/gsutil/addlhelp/WildcardNames).
+     *
+     * 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/gsutil/addlhelp/WildcardNames).
+     *
+     * 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/gsutil/addlhelp/WildcardNames).
+     *
+     * 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.RepeatedFieldBuilderV3< + 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 getSampleGcsFileSpecsFieldBuilder().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 getSampleGcsFileSpecsFieldBuilder() + .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 getSampleGcsFileSpecsFieldBuilder() + .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 getSampleGcsFileSpecsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datacatalog.v1.GcsFileSpec, + com.google.cloud.datacatalog.v1.GcsFileSpec.Builder, + com.google.cloud.datacatalog.v1.GcsFileSpecOrBuilder> + getSampleGcsFileSpecsFieldBuilder() { + if (sampleGcsFileSpecsBuilder_ == null) { + sampleGcsFileSpecsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + 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_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..4ef1af398796 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/GcsFilesetSpecOrBuilder.java @@ -0,0 +1,255 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/gcs_fileset_spec.proto + +package com.google.cloud.datacatalog.v1; + +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/gsutil/addlhelp/WildcardNames).
+   *
+   * 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/gsutil/addlhelp/WildcardNames).
+   *
+   * 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/gsutil/addlhelp/WildcardNames).
+   *
+   * 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/gsutil/addlhelp/WildcardNames).
+   *
+   * 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 new file mode 100644 index 000000000000..3dbd70a9a378 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/GcsFilesetSpecOuterClass.java @@ -0,0 +1,97 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/gcs_fileset_spec.proto + +package com.google.cloud.datacatalog.v1; + +public final class GcsFilesetSpecOuterClass { + private 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.GeneratedMessageV3.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.GeneratedMessageV3.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" + + "\"|\n\016GcsFilesetSpec\022\033\n\rfile_patterns\030\001 \003(" + + "\tB\004\342A\001\002\022M\n\025sample_gcs_file_specs\030\002 \003(\0132(" + + ".google.cloud.datacatalog.v1.GcsFileSpec" + + "B\004\342A\001\003\"\215\001\n\013GcsFileSpec\022\027\n\tfile_path\030\001 \001(" + + "\tB\004\342A\001\002\022K\n\016gcs_timestamps\030\002 \001(\0132-.google" + + ".cloud.datacatalog.v1.SystemTimestampsB\004" + + "\342A\001\003\022\030\n\nsize_bytes\030\004 \001(\003B\004\342A\001\003B\306\001\n\037com.g" + + "oogle.cloud.datacatalog.v1P\001ZAcloud.goog" + + "le.com/go/datacatalog/apiv1/datacatalogp" + + "b;datacatalogpb\370\001\001\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.FieldBehaviorProto.getDescriptor(), + com.google.cloud.datacatalog.v1.Timestamps.getDescriptor(), + }); + internal_static_google_cloud_datacatalog_v1_GcsFilesetSpec_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_datacatalog_v1_GcsFilesetSpec_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datacatalog_v1_GcsFilesetSpec_descriptor, + new java.lang.String[] { + "FilePatterns", "SampleGcsFileSpecs", + }); + internal_static_google_cloud_datacatalog_v1_GcsFileSpec_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_datacatalog_v1_GcsFileSpec_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datacatalog_v1_GcsFileSpec_descriptor, + new java.lang.String[] { + "FilePath", "GcsTimestamps", "SizeBytes", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.cloud.datacatalog.v1.Timestamps.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/GetEntryGroupRequest.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/GetEntryGroupRequest.java new file mode 100644 index 000000000000..0312845c302a --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/GetEntryGroupRequest.java @@ -0,0 +1,896 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/datacatalog.proto + +package com.google.cloud.datacatalog.v1; + +/** + * + * + *
+ * Request message for
+ * [GetEntryGroup][google.cloud.datacatalog.v1.DataCatalog.GetEntryGroup].
+ * 
+ * + * Protobuf type {@code google.cloud.datacatalog.v1.GetEntryGroupRequest} + */ +public final class GetEntryGroupRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.GetEntryGroupRequest) + GetEntryGroupRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetEntryGroupRequest.newBuilder() to construct. + private GetEntryGroupRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetEntryGroupRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetEntryGroupRequest(); + } + + 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.GeneratedMessageV3.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); + } + + 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 readMask_ != null; + } + /** + * + * + *
+   * 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.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (readMask_ != null) { + 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.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (readMask_ != null) { + 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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @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_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.readMask_ = readMaskBuilder_ == null ? readMask_ : readMaskBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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(getReadMaskFieldBuilder().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.SingleFieldBuilderV3< + 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); + } + 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 getReadMaskFieldBuilder().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.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getReadMaskFieldBuilder() { + if (readMaskBuilder_ == null) { + readMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getReadMask(), getParentForChildren(), isClean()); + readMask_ = null; + } + return readMaskBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..5f215f2ef185 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/GetEntryGroupRequestOrBuilder.java @@ -0,0 +1,89 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/datacatalog.proto + +package com.google.cloud.datacatalog.v1; + +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 new file mode 100644 index 000000000000..e2aca446c31c --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/GetEntryRequest.java @@ -0,0 +1,640 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/datacatalog.proto + +package com.google.cloud.datacatalog.v1; + +/** + * + * + *
+ * Request message for
+ * [GetEntry][google.cloud.datacatalog.v1.DataCatalog.GetEntry].
+ * 
+ * + * Protobuf type {@code google.cloud.datacatalog.v1.GetEntryRequest} + */ +public final class GetEntryRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.GetEntryRequest) + GetEntryRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetEntryRequest.newBuilder() to construct. + private GetEntryRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetEntryRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetEntryRequest(); + } + + 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.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 clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..d31422b29231 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/GetEntryRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/datacatalog.proto + +package com.google.cloud.datacatalog.v1; + +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 new file mode 100644 index 000000000000..1cf69cf798d3 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/GetPolicyTagRequest.java @@ -0,0 +1,640 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/policytagmanager.proto + +package com.google.cloud.datacatalog.v1; + +/** + * + * + *
+ * Request message for
+ * [GetPolicyTag][google.cloud.datacatalog.v1.PolicyTagManager.GetPolicyTag].
+ * 
+ * + * Protobuf type {@code google.cloud.datacatalog.v1.GetPolicyTagRequest} + */ +public final class GetPolicyTagRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.GetPolicyTagRequest) + GetPolicyTagRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetPolicyTagRequest.newBuilder() to construct. + private GetPolicyTagRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetPolicyTagRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetPolicyTagRequest(); + } + + 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.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 clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..955484eb5ec5 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/GetPolicyTagRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/policytagmanager.proto + +package com.google.cloud.datacatalog.v1; + +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 new file mode 100644 index 000000000000..2fe68c142ca0 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/GetTagTemplateRequest.java @@ -0,0 +1,641 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/datacatalog.proto + +package com.google.cloud.datacatalog.v1; + +/** + * + * + *
+ * Request message for
+ * [GetTagTemplate][google.cloud.datacatalog.v1.DataCatalog.GetTagTemplate].
+ * 
+ * + * Protobuf type {@code google.cloud.datacatalog.v1.GetTagTemplateRequest} + */ +public final class GetTagTemplateRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.GetTagTemplateRequest) + GetTagTemplateRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetTagTemplateRequest.newBuilder() to construct. + private GetTagTemplateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetTagTemplateRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetTagTemplateRequest(); + } + + 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.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 clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..c37223a2dfdd --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/GetTagTemplateRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/datacatalog.proto + +package com.google.cloud.datacatalog.v1; + +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 new file mode 100644 index 000000000000..5790c85e3a38 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/GetTaxonomyRequest.java @@ -0,0 +1,640 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/policytagmanager.proto + +package com.google.cloud.datacatalog.v1; + +/** + * + * + *
+ * Request message for
+ * [GetTaxonomy][google.cloud.datacatalog.v1.PolicyTagManager.GetTaxonomy].
+ * 
+ * + * Protobuf type {@code google.cloud.datacatalog.v1.GetTaxonomyRequest} + */ +public final class GetTaxonomyRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.GetTaxonomyRequest) + GetTaxonomyRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetTaxonomyRequest.newBuilder() to construct. + private GetTaxonomyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetTaxonomyRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetTaxonomyRequest(); + } + + 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.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 clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..d577ffaa3cf6 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/GetTaxonomyRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/policytagmanager.proto + +package com.google.cloud.datacatalog.v1; + +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 new file mode 100644 index 000000000000..440110a2a908 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ImportEntriesMetadata.java @@ -0,0 +1,1357 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/datacatalog.proto + +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} + */ +public final class ImportEntriesMetadata extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.ImportEntriesMetadata) + ImportEntriesMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use ImportEntriesMetadata.newBuilder() to construct. + private ImportEntriesMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ImportEntriesMetadata() { + state_ = 0; + errors_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ImportEntriesMetadata(); + } + + 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.GeneratedMessageV3.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), + ; + + /** + * + * + *
+     * 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 final 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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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.GeneratedMessageV3.alwaysUseFieldBuilders + ? getErrorsFieldBuilder() + : 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.RepeatedFieldBuilderV3< + 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 getErrorsFieldBuilder().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 getErrorsFieldBuilder().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 getErrorsFieldBuilder().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 getErrorsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + getErrorsFieldBuilder() { + if (errorsBuilder_ == null) { + errorsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.rpc.Status, + com.google.rpc.Status.Builder, + com.google.rpc.StatusOrBuilder>( + errors_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + errors_ = null; + } + return errorsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..ad834cf7cff4 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ImportEntriesMetadataOrBuilder.java @@ -0,0 +1,116 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/datacatalog.proto + +package com.google.cloud.datacatalog.v1; + +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 new file mode 100644 index 000000000000..936628d8f8a8 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ImportEntriesRequest.java @@ -0,0 +1,1145 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/datacatalog.proto + +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} + */ +public final class ImportEntriesRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.ImportEntriesRequest) + ImportEntriesRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ImportEntriesRequest.newBuilder() to construct. + private ImportEntriesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ImportEntriesRequest() { + parent_ = ""; + jobId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ImportEntriesRequest(); + } + + 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (sourceCase_ == 2) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, source_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(jobId_)) { + com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (sourceCase_ == 2) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, source_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(jobId_)) { + size += com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..c01aa1170345 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ImportEntriesRequestOrBuilder.java @@ -0,0 +1,120 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/datacatalog.proto + +package com.google.cloud.datacatalog.v1; + +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 new file mode 100644 index 000000000000..542a6e10c7c6 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ImportEntriesResponse.java @@ -0,0 +1,713 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/datacatalog.proto + +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} + */ +public final class ImportEntriesResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.ImportEntriesResponse) + ImportEntriesResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ImportEntriesResponse.newBuilder() to construct. + private ImportEntriesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ImportEntriesResponse() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new 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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..4b76466cf4fb --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ImportEntriesResponseOrBuilder.java @@ -0,0 +1,77 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/datacatalog.proto + +package com.google.cloud.datacatalog.v1; + +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 new file mode 100644 index 000000000000..aab91b138b8a --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ImportTaxonomiesRequest.java @@ -0,0 +1,1326 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/policytagmanagerserialization.proto + +package com.google.cloud.datacatalog.v1; + +/** + * + * + *
+ * Request message for
+ * [ImportTaxonomies][google.cloud.datacatalog.v1.PolicyTagManagerSerialization.ImportTaxonomies].
+ * 
+ * + * Protobuf type {@code google.cloud.datacatalog.v1.ImportTaxonomiesRequest} + */ +public final class ImportTaxonomiesRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.ImportTaxonomiesRequest) + ImportTaxonomiesRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ImportTaxonomiesRequest.newBuilder() to construct. + private ImportTaxonomiesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ImportTaxonomiesRequest() { + parent_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ImportTaxonomiesRequest(); + } + + 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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(getInlineSourceFieldBuilder().getBuilder(), extensionRegistry); + sourceCase_ = 2; + break; + } // case 18 + case 26: + { + input.readMessage( + getCrossRegionalSourceFieldBuilder().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.SingleFieldBuilderV3< + 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 getInlineSourceFieldBuilder().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.SingleFieldBuilderV3< + com.google.cloud.datacatalog.v1.InlineSource, + com.google.cloud.datacatalog.v1.InlineSource.Builder, + com.google.cloud.datacatalog.v1.InlineSourceOrBuilder> + getInlineSourceFieldBuilder() { + if (inlineSourceBuilder_ == null) { + if (!(sourceCase_ == 2)) { + source_ = com.google.cloud.datacatalog.v1.InlineSource.getDefaultInstance(); + } + inlineSourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + 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.SingleFieldBuilderV3< + 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 getCrossRegionalSourceFieldBuilder().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.SingleFieldBuilderV3< + com.google.cloud.datacatalog.v1.CrossRegionalSource, + com.google.cloud.datacatalog.v1.CrossRegionalSource.Builder, + com.google.cloud.datacatalog.v1.CrossRegionalSourceOrBuilder> + getCrossRegionalSourceFieldBuilder() { + if (crossRegionalSourceBuilder_ == null) { + if (!(sourceCase_ == 3)) { + source_ = com.google.cloud.datacatalog.v1.CrossRegionalSource.getDefaultInstance(); + } + crossRegionalSourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + 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_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..cd4ee592af42 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ImportTaxonomiesRequestOrBuilder.java @@ -0,0 +1,128 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/policytagmanagerserialization.proto + +package com.google.cloud.datacatalog.v1; + +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 new file mode 100644 index 000000000000..02ac2467da3a --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ImportTaxonomiesResponse.java @@ -0,0 +1,939 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/policytagmanagerserialization.proto + +package com.google.cloud.datacatalog.v1; + +/** + * + * + *
+ * Response message for
+ * [ImportTaxonomies][google.cloud.datacatalog.v1.PolicyTagManagerSerialization.ImportTaxonomies].
+ * 
+ * + * Protobuf type {@code google.cloud.datacatalog.v1.ImportTaxonomiesResponse} + */ +public final class ImportTaxonomiesResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.ImportTaxonomiesResponse) + ImportTaxonomiesResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ImportTaxonomiesResponse.newBuilder() to construct. + private ImportTaxonomiesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ImportTaxonomiesResponse() { + taxonomies_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ImportTaxonomiesResponse(); + } + + 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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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.GeneratedMessageV3.alwaysUseFieldBuilders + ? getTaxonomiesFieldBuilder() + : 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.RepeatedFieldBuilderV3< + 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 getTaxonomiesFieldBuilder().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 getTaxonomiesFieldBuilder() + .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 getTaxonomiesFieldBuilder() + .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 getTaxonomiesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datacatalog.v1.Taxonomy, + com.google.cloud.datacatalog.v1.Taxonomy.Builder, + com.google.cloud.datacatalog.v1.TaxonomyOrBuilder> + getTaxonomiesFieldBuilder() { + if (taxonomiesBuilder_ == null) { + taxonomiesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + 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_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..2eac46704179 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ImportTaxonomiesResponseOrBuilder.java @@ -0,0 +1,77 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/policytagmanagerserialization.proto + +package com.google.cloud.datacatalog.v1; + +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 new file mode 100644 index 000000000000..f53d578b305d --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/InlineSource.java @@ -0,0 +1,990 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/policytagmanagerserialization.proto + +package com.google.cloud.datacatalog.v1; + +/** + * + * + *
+ * Inline source containing taxonomies to import.
+ * 
+ * + * Protobuf type {@code google.cloud.datacatalog.v1.InlineSource} + */ +public final class InlineSource extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.InlineSource) + InlineSourceOrBuilder { + private static final long serialVersionUID = 0L; + // Use InlineSource.newBuilder() to construct. + private InlineSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private InlineSource() { + taxonomies_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new InlineSource(); + } + + 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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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.GeneratedMessageV3.alwaysUseFieldBuilders + ? getTaxonomiesFieldBuilder() + : 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.RepeatedFieldBuilderV3< + 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 getTaxonomiesFieldBuilder().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 getTaxonomiesFieldBuilder() + .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 getTaxonomiesFieldBuilder() + .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 getTaxonomiesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datacatalog.v1.SerializedTaxonomy, + com.google.cloud.datacatalog.v1.SerializedTaxonomy.Builder, + com.google.cloud.datacatalog.v1.SerializedTaxonomyOrBuilder> + getTaxonomiesFieldBuilder() { + if (taxonomiesBuilder_ == null) { + taxonomiesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + 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_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..47a8ba2d9310 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/InlineSourceOrBuilder.java @@ -0,0 +1,87 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/policytagmanagerserialization.proto + +package com.google.cloud.datacatalog.v1; + +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 new file mode 100644 index 000000000000..fd28a1e6e8af --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/IntegratedSystem.java @@ -0,0 +1,330 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/common.proto + +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} + */ +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), + ; + + /** + * + * + *
+   * 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 final 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 new file mode 100644 index 000000000000..7d6dccc700d3 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListEntriesRequest.java @@ -0,0 +1,1244 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/datacatalog.proto + +package com.google.cloud.datacatalog.v1; + +/** + * + * + *
+ * Request message for
+ * [ListEntries][google.cloud.datacatalog.v1.DataCatalog.ListEntries].
+ * 
+ * + * Protobuf type {@code google.cloud.datacatalog.v1.ListEntriesRequest} + */ +public final class ListEntriesRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.ListEntriesRequest) + ListEntriesRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListEntriesRequest.newBuilder() to construct. + private ListEntriesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListEntriesRequest() { + parent_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListEntriesRequest(); + } + + 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.GeneratedMessageV3.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); + } + + 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 readMask_ != null; + } + /** + * + * + *
+   * 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.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + if (readMask_ != null) { + 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.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + if (readMask_ != null) { + 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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @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_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.readMask_ = readMaskBuilder_ == null ? readMask_ : readMaskBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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(getReadMaskFieldBuilder().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.SingleFieldBuilderV3< + 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); + } + 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 getReadMaskFieldBuilder().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.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getReadMaskFieldBuilder() { + if (readMaskBuilder_ == null) { + readMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getReadMask(), getParentForChildren(), isClean()); + readMask_ = null; + } + return readMaskBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..8e751a7b682b --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListEntriesRequestOrBuilder.java @@ -0,0 +1,146 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/datacatalog.proto + +package com.google.cloud.datacatalog.v1; + +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 new file mode 100644 index 000000000000..8b27dbeb0ad4 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListEntriesResponse.java @@ -0,0 +1,1125 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/datacatalog.proto + +package com.google.cloud.datacatalog.v1; + +/** + * + * + *
+ * Response message for
+ * [ListEntries][google.cloud.datacatalog.v1.DataCatalog.ListEntries].
+ * 
+ * + * Protobuf type {@code google.cloud.datacatalog.v1.ListEntriesResponse} + */ +public final class ListEntriesResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.ListEntriesResponse) + ListEntriesResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListEntriesResponse.newBuilder() to construct. + private ListEntriesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListEntriesResponse() { + entries_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListEntriesResponse(); + } + + 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < entries_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, entries_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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.GeneratedMessageV3.alwaysUseFieldBuilders + ? getEntriesFieldBuilder() + : 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.RepeatedFieldBuilderV3< + 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 getEntriesFieldBuilder().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 getEntriesFieldBuilder() + .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 getEntriesFieldBuilder() + .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 getEntriesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datacatalog.v1.Entry, + com.google.cloud.datacatalog.v1.Entry.Builder, + com.google.cloud.datacatalog.v1.EntryOrBuilder> + getEntriesFieldBuilder() { + if (entriesBuilder_ == null) { + entriesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + 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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..958b4c0d34c3 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListEntriesResponseOrBuilder.java @@ -0,0 +1,104 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/datacatalog.proto + +package com.google.cloud.datacatalog.v1; + +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 new file mode 100644 index 000000000000..bd83c7ff9681 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListEntryGroupsRequest.java @@ -0,0 +1,949 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/datacatalog.proto + +package com.google.cloud.datacatalog.v1; + +/** + * + * + *
+ * Request message for
+ * [ListEntryGroups][google.cloud.datacatalog.v1.DataCatalog.ListEntryGroups].
+ * 
+ * + * Protobuf type {@code google.cloud.datacatalog.v1.ListEntryGroupsRequest} + */ +public final class ListEntryGroupsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.ListEntryGroupsRequest) + ListEntryGroupsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListEntryGroupsRequest.newBuilder() to construct. + private ListEntryGroupsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListEntryGroupsRequest() { + parent_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListEntryGroupsRequest(); + } + + 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.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 clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..06005e56f455 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListEntryGroupsRequestOrBuilder.java @@ -0,0 +1,101 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/datacatalog.proto + +package com.google.cloud.datacatalog.v1; + +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 new file mode 100644 index 000000000000..0b237a113343 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListEntryGroupsResponse.java @@ -0,0 +1,1129 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/datacatalog.proto + +package com.google.cloud.datacatalog.v1; + +/** + * + * + *
+ * Response message for
+ * [ListEntryGroups][google.cloud.datacatalog.v1.DataCatalog.ListEntryGroups].
+ * 
+ * + * Protobuf type {@code google.cloud.datacatalog.v1.ListEntryGroupsResponse} + */ +public final class ListEntryGroupsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.ListEntryGroupsResponse) + ListEntryGroupsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListEntryGroupsResponse.newBuilder() to construct. + private ListEntryGroupsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListEntryGroupsResponse() { + entryGroups_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListEntryGroupsResponse(); + } + + 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < entryGroups_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, entryGroups_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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.GeneratedMessageV3.alwaysUseFieldBuilders + ? getEntryGroupsFieldBuilder() + : 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.RepeatedFieldBuilderV3< + 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 getEntryGroupsFieldBuilder().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 getEntryGroupsFieldBuilder() + .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 getEntryGroupsFieldBuilder() + .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 getEntryGroupsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datacatalog.v1.EntryGroup, + com.google.cloud.datacatalog.v1.EntryGroup.Builder, + com.google.cloud.datacatalog.v1.EntryGroupOrBuilder> + getEntryGroupsFieldBuilder() { + if (entryGroupsBuilder_ == null) { + entryGroupsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + 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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..021ffce6839d --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListEntryGroupsResponseOrBuilder.java @@ -0,0 +1,104 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/datacatalog.proto + +package com.google.cloud.datacatalog.v1; + +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 new file mode 100644 index 000000000000..f33725a33295 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListPolicyTagsRequest.java @@ -0,0 +1,945 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/policytagmanager.proto + +package com.google.cloud.datacatalog.v1; + +/** + * + * + *
+ * Request message for
+ * [ListPolicyTags][google.cloud.datacatalog.v1.PolicyTagManager.ListPolicyTags].
+ * 
+ * + * Protobuf type {@code google.cloud.datacatalog.v1.ListPolicyTagsRequest} + */ +public final class ListPolicyTagsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.ListPolicyTagsRequest) + ListPolicyTagsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListPolicyTagsRequest.newBuilder() to construct. + private ListPolicyTagsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListPolicyTagsRequest() { + parent_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListPolicyTagsRequest(); + } + + 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.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 clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..0cdb0ceebd33 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListPolicyTagsRequestOrBuilder.java @@ -0,0 +1,100 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/policytagmanager.proto + +package com.google.cloud.datacatalog.v1; + +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 new file mode 100644 index 000000000000..6c38112ed708 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListPolicyTagsResponse.java @@ -0,0 +1,1129 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/policytagmanager.proto + +package com.google.cloud.datacatalog.v1; + +/** + * + * + *
+ * Response message for
+ * [ListPolicyTags][google.cloud.datacatalog.v1.PolicyTagManager.ListPolicyTags].
+ * 
+ * + * Protobuf type {@code google.cloud.datacatalog.v1.ListPolicyTagsResponse} + */ +public final class ListPolicyTagsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.ListPolicyTagsResponse) + ListPolicyTagsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListPolicyTagsResponse.newBuilder() to construct. + private ListPolicyTagsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListPolicyTagsResponse() { + policyTags_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListPolicyTagsResponse(); + } + + 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < policyTags_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, policyTags_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPolicyTagsFieldBuilder() + : 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.RepeatedFieldBuilderV3< + 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 getPolicyTagsFieldBuilder().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 getPolicyTagsFieldBuilder() + .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 getPolicyTagsFieldBuilder() + .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 getPolicyTagsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datacatalog.v1.PolicyTag, + com.google.cloud.datacatalog.v1.PolicyTag.Builder, + com.google.cloud.datacatalog.v1.PolicyTagOrBuilder> + getPolicyTagsFieldBuilder() { + if (policyTagsBuilder_ == null) { + policyTagsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + 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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..e353fddf1ff5 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListPolicyTagsResponseOrBuilder.java @@ -0,0 +1,104 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/policytagmanager.proto + +package com.google.cloud.datacatalog.v1; + +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 new file mode 100644 index 000000000000..c4bb62b502fb --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListTagsRequest.java @@ -0,0 +1,950 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/datacatalog.proto + +package com.google.cloud.datacatalog.v1; + +/** + * + * + *
+ * Request message for
+ * [ListTags][google.cloud.datacatalog.v1.DataCatalog.ListTags].
+ * 
+ * + * Protobuf type {@code google.cloud.datacatalog.v1.ListTagsRequest} + */ +public final class ListTagsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.ListTagsRequest) + ListTagsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListTagsRequest.newBuilder() to construct. + private ListTagsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListTagsRequest() { + parent_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListTagsRequest(); + } + + 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.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 clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..68f6ffd63f6b --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListTagsRequestOrBuilder.java @@ -0,0 +1,102 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/datacatalog.proto + +package com.google.cloud.datacatalog.v1; + +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 new file mode 100644 index 000000000000..825dcc649aad --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListTagsResponse.java @@ -0,0 +1,1123 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/datacatalog.proto + +package com.google.cloud.datacatalog.v1; + +/** + * + * + *
+ * Response message for
+ * [ListTags][google.cloud.datacatalog.v1.DataCatalog.ListTags].
+ * 
+ * + * Protobuf type {@code google.cloud.datacatalog.v1.ListTagsResponse} + */ +public final class ListTagsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.ListTagsResponse) + ListTagsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListTagsResponse.newBuilder() to construct. + private ListTagsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListTagsResponse() { + tags_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListTagsResponse(); + } + + 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < tags_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, tags_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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.GeneratedMessageV3.alwaysUseFieldBuilders + ? getTagsFieldBuilder() + : 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.RepeatedFieldBuilderV3< + 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 getTagsFieldBuilder().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 getTagsFieldBuilder() + .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 getTagsFieldBuilder() + .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 getTagsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datacatalog.v1.Tag, + com.google.cloud.datacatalog.v1.Tag.Builder, + com.google.cloud.datacatalog.v1.TagOrBuilder> + getTagsFieldBuilder() { + if (tagsBuilder_ == null) { + tagsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + 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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..a8177c786dfb --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListTagsResponseOrBuilder.java @@ -0,0 +1,103 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/datacatalog.proto + +package com.google.cloud.datacatalog.v1; + +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 new file mode 100644 index 000000000000..ab5a95ce82a2 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListTaxonomiesRequest.java @@ -0,0 +1,1130 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/policytagmanager.proto + +package com.google.cloud.datacatalog.v1; + +/** + * + * + *
+ * Request message for
+ * [ListTaxonomies][google.cloud.datacatalog.v1.PolicyTagManager.ListTaxonomies].
+ * 
+ * + * Protobuf type {@code google.cloud.datacatalog.v1.ListTaxonomiesRequest} + */ +public final class ListTaxonomiesRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.ListTaxonomiesRequest) + ListTaxonomiesRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListTaxonomiesRequest.newBuilder() to construct. + private ListTaxonomiesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListTaxonomiesRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListTaxonomiesRequest(); + } + + 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..5cf1b2b264fb --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListTaxonomiesRequestOrBuilder.java @@ -0,0 +1,126 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/policytagmanager.proto + +package com.google.cloud.datacatalog.v1; + +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 new file mode 100644 index 000000000000..5eb5868715ad --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListTaxonomiesResponse.java @@ -0,0 +1,1128 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/policytagmanager.proto + +package com.google.cloud.datacatalog.v1; + +/** + * + * + *
+ * Response message for
+ * [ListTaxonomies][google.cloud.datacatalog.v1.PolicyTagManager.ListTaxonomies].
+ * 
+ * + * Protobuf type {@code google.cloud.datacatalog.v1.ListTaxonomiesResponse} + */ +public final class ListTaxonomiesResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.ListTaxonomiesResponse) + ListTaxonomiesResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListTaxonomiesResponse.newBuilder() to construct. + private ListTaxonomiesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListTaxonomiesResponse() { + taxonomies_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListTaxonomiesResponse(); + } + + 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < taxonomies_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, taxonomies_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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.GeneratedMessageV3.alwaysUseFieldBuilders + ? getTaxonomiesFieldBuilder() + : 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.RepeatedFieldBuilderV3< + 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 getTaxonomiesFieldBuilder().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 getTaxonomiesFieldBuilder() + .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 getTaxonomiesFieldBuilder() + .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 getTaxonomiesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datacatalog.v1.Taxonomy, + com.google.cloud.datacatalog.v1.Taxonomy.Builder, + com.google.cloud.datacatalog.v1.TaxonomyOrBuilder> + getTaxonomiesFieldBuilder() { + if (taxonomiesBuilder_ == null) { + taxonomiesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + 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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..f8b150b20979 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListTaxonomiesResponseOrBuilder.java @@ -0,0 +1,104 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/policytagmanager.proto + +package com.google.cloud.datacatalog.v1; + +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/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/LocationName.java rename to java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/LocationName.java 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 new file mode 100644 index 000000000000..de807f5e577d --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/LookerSystemSpec.java @@ -0,0 +1,1546 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/datacatalog.proto + +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} + */ +public final class LookerSystemSpec extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.LookerSystemSpec) + LookerSystemSpecOrBuilder { + private static final long serialVersionUID = 0L; + // Use LookerSystemSpec.newBuilder() to construct. + private LookerSystemSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private LookerSystemSpec() { + parentInstanceId_ = ""; + parentInstanceDisplayName_ = ""; + parentModelId_ = ""; + parentModelDisplayName_ = ""; + parentViewId_ = ""; + parentViewDisplayName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new LookerSystemSpec(); + } + + 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(parentInstanceId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parentInstanceId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parentInstanceDisplayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, parentInstanceDisplayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parentModelId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, parentModelId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parentModelDisplayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, parentModelDisplayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parentViewId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, parentViewId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parentViewDisplayName_)) { + com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(parentInstanceId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parentInstanceId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parentInstanceDisplayName_)) { + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize(2, parentInstanceDisplayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parentModelId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, parentModelId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parentModelDisplayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, parentModelDisplayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parentViewId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, parentViewId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parentViewDisplayName_)) { + size += com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..13055f5a1a59 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/LookerSystemSpecOrBuilder.java @@ -0,0 +1,177 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/datacatalog.proto + +package com.google.cloud.datacatalog.v1; + +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 new file mode 100644 index 000000000000..ce7d2da9a4d8 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/LookupEntryRequest.java @@ -0,0 +1,1933 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/datacatalog.proto + +package com.google.cloud.datacatalog.v1; + +/** + * + * + *
+ * Request message for
+ * [LookupEntry][google.cloud.datacatalog.v1.DataCatalog.LookupEntry].
+ * 
+ * + * Protobuf type {@code google.cloud.datacatalog.v1.LookupEntryRequest} + */ +public final class LookupEntryRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.LookupEntryRequest) + LookupEntryRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use LookupEntryRequest.newBuilder() to construct. + private LookupEntryRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private LookupEntryRequest() { + project_ = ""; + location_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new LookupEntryRequest(); + } + + 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.GeneratedMessageV3.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 Standard SQL]
+   * (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 Standard SQL]
+   * (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 Standard SQL]
+   * (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.GeneratedMessageV3.writeString(output, 1, targetName_); + } + if (targetNameCase_ == 3) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, targetName_); + } + if (targetNameCase_ == 5) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, targetName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(project_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, project_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(location_)) { + com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.computeStringSize(1, targetName_); + } + if (targetNameCase_ == 3) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, targetName_); + } + if (targetNameCase_ == 5) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, targetName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(project_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, project_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(location_)) { + size += com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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 Standard SQL]
+     * (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 Standard SQL]
+     * (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 Standard SQL]
+     * (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 Standard SQL]
+     * (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 Standard SQL]
+     * (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 Standard SQL]
+     * (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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..801d3f85e0f7 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/LookupEntryRequestOrBuilder.java @@ -0,0 +1,301 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/datacatalog.proto + +package com.google.cloud.datacatalog.v1; + +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 Standard SQL]
+   * (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 Standard SQL]
+   * (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 Standard SQL]
+   * (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 new file mode 100644 index 000000000000..fe82c6a9f687 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ManagingSystem.java @@ -0,0 +1,177 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/common.proto + +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} + */ +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), + ; + + /** + * + * + *
+   * 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 final 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/ModelSpec.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ModelSpec.java new file mode 100644 index 000000000000..ed09f6650d82 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ModelSpec.java @@ -0,0 +1,818 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/datacatalog.proto + +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} + */ +public final class ModelSpec extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.ModelSpec) + ModelSpecOrBuilder { + private static final long serialVersionUID = 0L; + // Use ModelSpec.newBuilder() to construct. + private ModelSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ModelSpec() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new 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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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(getVertexModelSpecFieldBuilder().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.SingleFieldBuilderV3< + 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 getVertexModelSpecFieldBuilder().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.SingleFieldBuilderV3< + com.google.cloud.datacatalog.v1.VertexModelSpec, + com.google.cloud.datacatalog.v1.VertexModelSpec.Builder, + com.google.cloud.datacatalog.v1.VertexModelSpecOrBuilder> + getVertexModelSpecFieldBuilder() { + if (vertexModelSpecBuilder_ == null) { + if (!(systemSpecCase_ == 1)) { + systemSpec_ = com.google.cloud.datacatalog.v1.VertexModelSpec.getDefaultInstance(); + } + vertexModelSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + 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_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..7030e5faa010 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ModelSpecOrBuilder.java @@ -0,0 +1,62 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/datacatalog.proto + +package com.google.cloud.datacatalog.v1; + +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 new file mode 100644 index 000000000000..d00b5dcfb1b4 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ModifyEntryContactsRequest.java @@ -0,0 +1,929 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/datacatalog.proto + +package com.google.cloud.datacatalog.v1; + +/** + * + * + *
+ * Request message for
+ * [ModifyEntryContacts][google.cloud.datacatalog.v1.DataCatalog.ModifyEntryContacts].
+ * 
+ * + * Protobuf type {@code google.cloud.datacatalog.v1.ModifyEntryContactsRequest} + */ +public final class ModifyEntryContactsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.ModifyEntryContactsRequest) + ModifyEntryContactsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ModifyEntryContactsRequest.newBuilder() to construct. + private ModifyEntryContactsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ModifyEntryContactsRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ModifyEntryContactsRequest(); + } + + 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.GeneratedMessageV3.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); + } + + 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 contacts_ != null; + } + /** + * + * + *
+   * 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.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (contacts_ != null) { + 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.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (contacts_ != null) { + 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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @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_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.contacts_ = contactsBuilder_ == null ? contacts_ : contactsBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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(getContactsFieldBuilder().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.SingleFieldBuilderV3< + 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); + } + 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 getContactsFieldBuilder().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.SingleFieldBuilderV3< + com.google.cloud.datacatalog.v1.Contacts, + com.google.cloud.datacatalog.v1.Contacts.Builder, + com.google.cloud.datacatalog.v1.ContactsOrBuilder> + getContactsFieldBuilder() { + if (contactsBuilder_ == null) { + contactsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + 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_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..c585ba87f333 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ModifyEntryContactsRequestOrBuilder.java @@ -0,0 +1,95 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/datacatalog.proto + +package com.google.cloud.datacatalog.v1; + +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 new file mode 100644 index 000000000000..5f7381d0f6fe --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ModifyEntryOverviewRequest.java @@ -0,0 +1,932 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/datacatalog.proto + +package com.google.cloud.datacatalog.v1; + +/** + * + * + *
+ * Request message for
+ * [ModifyEntryOverview][google.cloud.datacatalog.v1.DataCatalog.ModifyEntryOverview].
+ * 
+ * + * Protobuf type {@code google.cloud.datacatalog.v1.ModifyEntryOverviewRequest} + */ +public final class ModifyEntryOverviewRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.ModifyEntryOverviewRequest) + ModifyEntryOverviewRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ModifyEntryOverviewRequest.newBuilder() to construct. + private ModifyEntryOverviewRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ModifyEntryOverviewRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ModifyEntryOverviewRequest(); + } + + 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.GeneratedMessageV3.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); + } + + 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 entryOverview_ != null; + } + /** + * + * + *
+   * 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.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (entryOverview_ != null) { + 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.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (entryOverview_ != null) { + 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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @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_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.entryOverview_ = + entryOverviewBuilder_ == null ? entryOverview_ : entryOverviewBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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(getEntryOverviewFieldBuilder().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.SingleFieldBuilderV3< + 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); + } + 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 getEntryOverviewFieldBuilder().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.SingleFieldBuilderV3< + com.google.cloud.datacatalog.v1.EntryOverview, + com.google.cloud.datacatalog.v1.EntryOverview.Builder, + com.google.cloud.datacatalog.v1.EntryOverviewOrBuilder> + getEntryOverviewFieldBuilder() { + if (entryOverviewBuilder_ == null) { + entryOverviewBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + 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_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..f54cd2391c3f --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ModifyEntryOverviewRequestOrBuilder.java @@ -0,0 +1,95 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/datacatalog.proto + +package com.google.cloud.datacatalog.v1; + +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/PersonalDetails.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/PersonalDetails.java new file mode 100644 index 000000000000..a6e3d630ff5d --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/PersonalDetails.java @@ -0,0 +1,790 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/common.proto + +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} + */ +public final class PersonalDetails extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.PersonalDetails) + PersonalDetailsOrBuilder { + private static final long serialVersionUID = 0L; + // Use PersonalDetails.newBuilder() to construct. + private PersonalDetails(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PersonalDetails() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new 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.GeneratedMessageV3.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); + } + + 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 starTime_ != null; + } + /** + * + * + *
+   * 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 (starTime_ != null) { + 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 (starTime_ != null) { + 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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @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_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.starTime_ = starTimeBuilder_ == null ? starTime_ : starTimeBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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(getStarTimeFieldBuilder().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.SingleFieldBuilderV3< + 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); + } + 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 getStarTimeFieldBuilder().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.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getStarTimeFieldBuilder() { + if (starTimeBuilder_ == null) { + starTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getStarTime(), getParentForChildren(), isClean()); + starTime_ = null; + } + return starTimeBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..9032ba0c35e1 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/PersonalDetailsOrBuilder.java @@ -0,0 +1,73 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/common.proto + +package com.google.cloud.datacatalog.v1; + +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 new file mode 100644 index 000000000000..1dba976a28b4 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/PhysicalSchema.java @@ -0,0 +1,5527 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/physical_schema.proto + +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} + */ +public final class PhysicalSchema extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.PhysicalSchema) + PhysicalSchemaOrBuilder { + private static final long serialVersionUID = 0L; + // Use PhysicalSchema.newBuilder() to construct. + private PhysicalSchema(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PhysicalSchema() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new 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.GeneratedMessageV3.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.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.PhysicalSchema.AvroSchema) + AvroSchemaOrBuilder { + private static final long serialVersionUID = 0L; + // Use AvroSchema.newBuilder() to construct. + private AvroSchema(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AvroSchema() { + text_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AvroSchema(); + } + + 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(text_)) { + com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(text_)) { + size += com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema) + ThriftSchemaOrBuilder { + private static final long serialVersionUID = 0L; + // Use ThriftSchema.newBuilder() to construct. + private ThriftSchema(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ThriftSchema() { + text_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ThriftSchema(); + } + + 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(text_)) { + com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(text_)) { + size += com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchema) + ProtobufSchemaOrBuilder { + private static final long serialVersionUID = 0L; + // Use ProtobufSchema.newBuilder() to construct. + private ProtobufSchema(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ProtobufSchema() { + text_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ProtobufSchema(); + } + + 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(text_)) { + com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(text_)) { + size += com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema) + ParquetSchemaOrBuilder { + private static final long serialVersionUID = 0L; + // Use ParquetSchema.newBuilder() to construct. + private ParquetSchema(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ParquetSchema() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new 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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.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 clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.PhysicalSchema.OrcSchema) + OrcSchemaOrBuilder { + private static final long serialVersionUID = 0L; + // Use OrcSchema.newBuilder() to construct. + private OrcSchema(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private OrcSchema() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new 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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.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 clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.PhysicalSchema.CsvSchema) + CsvSchemaOrBuilder { + private static final long serialVersionUID = 0L; + // Use CsvSchema.newBuilder() to construct. + private CsvSchema(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CsvSchema() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new 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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.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 clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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(getAvroFieldBuilder().getBuilder(), extensionRegistry); + schemaCase_ = 1; + break; + } // case 10 + case 18: + { + input.readMessage(getThriftFieldBuilder().getBuilder(), extensionRegistry); + schemaCase_ = 2; + break; + } // case 18 + case 26: + { + input.readMessage(getProtobufFieldBuilder().getBuilder(), extensionRegistry); + schemaCase_ = 3; + break; + } // case 26 + case 34: + { + input.readMessage(getParquetFieldBuilder().getBuilder(), extensionRegistry); + schemaCase_ = 4; + break; + } // case 34 + case 42: + { + input.readMessage(getOrcFieldBuilder().getBuilder(), extensionRegistry); + schemaCase_ = 5; + break; + } // case 42 + case 50: + { + input.readMessage(getCsvFieldBuilder().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.SingleFieldBuilderV3< + 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 getAvroFieldBuilder().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.SingleFieldBuilderV3< + com.google.cloud.datacatalog.v1.PhysicalSchema.AvroSchema, + com.google.cloud.datacatalog.v1.PhysicalSchema.AvroSchema.Builder, + com.google.cloud.datacatalog.v1.PhysicalSchema.AvroSchemaOrBuilder> + getAvroFieldBuilder() { + if (avroBuilder_ == null) { + if (!(schemaCase_ == 1)) { + schema_ = com.google.cloud.datacatalog.v1.PhysicalSchema.AvroSchema.getDefaultInstance(); + } + avroBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + 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.SingleFieldBuilderV3< + 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 getThriftFieldBuilder().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.SingleFieldBuilderV3< + com.google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema, + com.google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema.Builder, + com.google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchemaOrBuilder> + getThriftFieldBuilder() { + if (thriftBuilder_ == null) { + if (!(schemaCase_ == 2)) { + schema_ = + com.google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema.getDefaultInstance(); + } + thriftBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + 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.SingleFieldBuilderV3< + 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 getProtobufFieldBuilder().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.SingleFieldBuilderV3< + com.google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchema, + com.google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchema.Builder, + com.google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchemaOrBuilder> + getProtobufFieldBuilder() { + if (protobufBuilder_ == null) { + if (!(schemaCase_ == 3)) { + schema_ = + com.google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchema.getDefaultInstance(); + } + protobufBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + 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.SingleFieldBuilderV3< + 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 getParquetFieldBuilder().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.SingleFieldBuilderV3< + com.google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema, + com.google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema.Builder, + com.google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchemaOrBuilder> + getParquetFieldBuilder() { + if (parquetBuilder_ == null) { + if (!(schemaCase_ == 4)) { + schema_ = + com.google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema.getDefaultInstance(); + } + parquetBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + 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.SingleFieldBuilderV3< + 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 getOrcFieldBuilder().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.SingleFieldBuilderV3< + com.google.cloud.datacatalog.v1.PhysicalSchema.OrcSchema, + com.google.cloud.datacatalog.v1.PhysicalSchema.OrcSchema.Builder, + com.google.cloud.datacatalog.v1.PhysicalSchema.OrcSchemaOrBuilder> + getOrcFieldBuilder() { + if (orcBuilder_ == null) { + if (!(schemaCase_ == 5)) { + schema_ = com.google.cloud.datacatalog.v1.PhysicalSchema.OrcSchema.getDefaultInstance(); + } + orcBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + 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.SingleFieldBuilderV3< + 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 getCsvFieldBuilder().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.SingleFieldBuilderV3< + com.google.cloud.datacatalog.v1.PhysicalSchema.CsvSchema, + com.google.cloud.datacatalog.v1.PhysicalSchema.CsvSchema.Builder, + com.google.cloud.datacatalog.v1.PhysicalSchema.CsvSchemaOrBuilder> + getCsvFieldBuilder() { + if (csvBuilder_ == null) { + if (!(schemaCase_ == 6)) { + schema_ = com.google.cloud.datacatalog.v1.PhysicalSchema.CsvSchema.getDefaultInstance(); + } + csvBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + 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_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1/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 similarity index 84% rename from owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/PhysicalSchemaOrBuilder.java rename to java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/PhysicalSchemaOrBuilder.java index 177effb23fa9..b0becdb54ff4 100644 --- a/owl-bot-staging/java-datacatalog/v1/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 @@ -1,31 +1,55 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datacatalog/v1/physical_schema.proto package com.google.cloud.datacatalog.v1; -public interface PhysicalSchemaOrBuilder extends +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.
    * 
@@ -35,24 +59,32 @@ public interface PhysicalSchemaOrBuilder extends 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.
    * 
@@ -62,24 +94,32 @@ public interface PhysicalSchemaOrBuilder extends 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.
    * 
@@ -89,24 +129,32 @@ public interface PhysicalSchemaOrBuilder extends 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.
    * 
@@ -116,24 +164,32 @@ public interface PhysicalSchemaOrBuilder extends 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.
    * 
@@ -143,24 +199,32 @@ public interface PhysicalSchemaOrBuilder extends 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.
    * 
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 new file mode 100644 index 000000000000..21279465e591 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/PhysicalSchemaProto.java @@ -0,0 +1,159 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/physical_schema.proto + +package com.google.cloud.datacatalog.v1; + +public final class PhysicalSchemaProto { + private 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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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\333\001\n\037com.google.cloud.datacatalo" + + "g.v1B\023PhysicalSchemaProtoP\001ZAcloud.googl" + + "e.com/go/datacatalog/apiv1/datacatalogpb" + + ";datacatalogpb\370\001\001\252\002\033Google.Cloud.DataCat" + + "alog.V1\312\002\033Google\\Cloud\\DataCatalog\\V1\352\002\036" + + "Google::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().getMessageTypes().get(0); + internal_static_google_cloud_datacatalog_v1_PhysicalSchema_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.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 + .getNestedTypes() + .get(0); + internal_static_google_cloud_datacatalog_v1_PhysicalSchema_AvroSchema_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.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 + .getNestedTypes() + .get(1); + internal_static_google_cloud_datacatalog_v1_PhysicalSchema_ThriftSchema_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.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 + .getNestedTypes() + .get(2); + internal_static_google_cloud_datacatalog_v1_PhysicalSchema_ProtobufSchema_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.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 + .getNestedTypes() + .get(3); + internal_static_google_cloud_datacatalog_v1_PhysicalSchema_ParquetSchema_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.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 + .getNestedTypes() + .get(4); + internal_static_google_cloud_datacatalog_v1_PhysicalSchema_OrcSchema_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.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 + .getNestedTypes() + .get(5); + internal_static_google_cloud_datacatalog_v1_PhysicalSchema_CsvSchema_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datacatalog_v1_PhysicalSchema_CsvSchema_descriptor, + new java.lang.String[] {}); + } + + // @@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 new file mode 100644 index 000000000000..aa50b3761086 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/PolicyTag.java @@ -0,0 +1,1586 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/policytagmanager.proto + +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} + */ +public final class PolicyTag extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.PolicyTag) + PolicyTagOrBuilder { + private static final long serialVersionUID = 0L; + // Use PolicyTag.newBuilder() to construct. + private PolicyTag(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PolicyTag() { + name_ = ""; + displayName_ = ""; + description_ = ""; + parentPolicyTag_ = ""; + childPolicyTags_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PolicyTag(); + } + + 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.GeneratedMessageV3.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_ = ""; + /** + * + * + *
+   * Output only. 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) = 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. 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) = 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 = 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.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parentPolicyTag_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, parentPolicyTag_); + } + for (int i = 0; i < childPolicyTags_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parentPolicyTag_)) { + size += com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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_ = ""; + /** + * + * + *
+     * Output only. 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) = 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. 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) = 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. 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) = 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. 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) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. 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) = 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_ = ""; + /** + * + * + *
+     * 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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..cea193eb84aa --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/PolicyTagManagerProto.java @@ -0,0 +1,408 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/policytagmanager.proto + +package com.google.cloud.datacatalog.v1; + +public final class PolicyTagManagerProto { + private 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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 = { + "\n2google/cloud/datacatalog/v1/policytagm" + + "anager.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/protobu" + + "f/empty.proto\032 google/protobuf/field_mas" + + "k.proto\"\362\004\n\010Taxonomy\022\022\n\004name\030\001 \001(\tB\004\342A\001\003" + + "\022\032\n\014display_name\030\002 \001(\tB\004\342A\001\002\022\031\n\013descript" + + "ion\030\003 \001(\tB\004\342A\001\001\022\036\n\020policy_tag_count\030\004 \001(" + + "\005B\004\342A\001\003\022P\n\023taxonomy_timestamps\030\005 \001(\0132-.g" + + "oogle.cloud.datacatalog.v1.SystemTimesta" + + "mpsB\004\342A\001\003\022V\n\026activated_policy_types\030\006 \003(" + + "\01620.google.cloud.datacatalog.v1.Taxonomy" + + ".PolicyTypeB\004\342A\001\001\022D\n\007service\030\007 \001(\0132-.goo" + + "gle.cloud.datacatalog.v1.Taxonomy.Servic" + + "eB\004\342A\001\003\032V\n\007Service\0229\n\004name\030\001 \001(\0162+.googl" + + "e.cloud.datacatalog.v1.ManagingSystem\022\020\n" + + "\010identity\030\002 \001(\t\"J\n\nPolicyType\022\033\n\027POLICY_" + + "TYPE_UNSPECIFIED\020\000\022\037\n\033FINE_GRAINED_ACCES" + + "S_CONTROL\020\001:g\352Ad\n#datacatalog.googleapis" + + ".com/Taxonomy\022=projects/{project}/locati" + + "ons/{location}/taxonomies/{taxonomy}\"\217\002\n" + + "\tPolicyTag\022\022\n\004name\030\001 \001(\tB\004\342A\001\003\022\032\n\014displa" + + "y_name\030\002 \001(\tB\004\342A\001\002\022\023\n\013description\030\003 \001(\t\022" + + "\031\n\021parent_policy_tag\030\004 \001(\t\022\037\n\021child_poli" + + "cy_tags\030\005 \003(\tB\004\342A\001\003:\200\001\352A}\n$datacatalog.g" + + "oogleapis.com/PolicyTag\022Uprojects/{proje" + + "ct}/locations/{location}/taxonomies/{tax" + + "onomy}/policyTags/{policy_tag}\"\216\001\n\025Creat" + + "eTaxonomyRequest\022<\n\006parent\030\001 \001(\tB,\342A\001\002\372A" + + "%\022#datacatalog.googleapis.com/Taxonomy\0227" + + "\n\010taxonomy\030\002 \001(\0132%.google.cloud.datacata" + + "log.v1.Taxonomy\"S\n\025DeleteTaxonomyRequest" + + "\022:\n\004name\030\001 \001(\tB,\342A\001\002\372A%\n#datacatalog.goo" + + "gleapis.com/Taxonomy\"\201\001\n\025UpdateTaxonomyR" + + "equest\0227\n\010taxonomy\030\001 \001(\0132%.google.cloud." + + "datacatalog.v1.Taxonomy\022/\n\013update_mask\030\002" + + " \001(\0132\032.google.protobuf.FieldMask\"\214\001\n\025Lis" + + "tTaxonomiesRequest\022<\n\006parent\030\001 \001(\tB,\342A\001\002" + + "\372A%\022#datacatalog.googleapis.com/Taxonomy" + + "\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022" + + "\016\n\006filter\030\004 \001(\t\"l\n\026ListTaxonomiesRespons" + + "e\0229\n\ntaxonomies\030\001 \003(\0132%.google.cloud.dat" + + "acatalog.v1.Taxonomy\022\027\n\017next_page_token\030" + + "\002 \001(\t\"P\n\022GetTaxonomyRequest\022:\n\004name\030\001 \001(" + + "\tB,\342A\001\002\372A%\n#datacatalog.googleapis.com/T" + + "axonomy\"\223\001\n\026CreatePolicyTagRequest\022=\n\006pa" + + "rent\030\001 \001(\tB-\342A\001\002\372A&\022$datacatalog.googlea" + + "pis.com/PolicyTag\022:\n\npolicy_tag\030\002 \001(\0132&." + + "google.cloud.datacatalog.v1.PolicyTag\"U\n" + + "\026DeletePolicyTagRequest\022;\n\004name\030\001 \001(\tB-\342" + + "A\001\002\372A&\n$datacatalog.googleapis.com/Polic" + + "yTag\"\205\001\n\026UpdatePolicyTagRequest\022:\n\npolic" + + "y_tag\030\001 \001(\0132&.google.cloud.datacatalog.v" + + "1.PolicyTag\022/\n\013update_mask\030\002 \001(\0132\032.googl" + + "e.protobuf.FieldMask\"}\n\025ListPolicyTagsRe" + + "quest\022=\n\006parent\030\001 \001(\tB-\342A\001\002\372A&\022$datacata" + + "log.googleapis.com/PolicyTag\022\021\n\tpage_siz" + + "e\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"n\n\026ListPolic" + + "yTagsResponse\022;\n\013policy_tags\030\001 \003(\0132&.goo" + + "gle.cloud.datacatalog.v1.PolicyTag\022\027\n\017ne" + + "xt_page_token\030\002 \001(\t\"R\n\023GetPolicyTagReque" + + "st\022;\n\004name\030\001 \001(\tB-\342A\001\002\372A&\n$datacatalog.g" + + "oogleapis.com/PolicyTag2\273\025\n\020PolicyTagMan" + + "ager\022\277\001\n\016CreateTaxonomy\0222.google.cloud.d" + + "atacatalog.v1.CreateTaxonomyRequest\032%.go" + + "ogle.cloud.datacatalog.v1.Taxonomy\"R\332A\017p" + + "arent,taxonomy\202\323\344\223\002:\"./v1/{parent=projec" + + "ts/*/locations/*}/taxonomies:\010taxonomy\022\233" + + "\001\n\016DeleteTaxonomy\0222.google.cloud.datacat" + + "alog.v1.DeleteTaxonomyRequest\032\026.google.p" + + "rotobuf.Empty\"=\332A\004name\202\323\344\223\0020*./v1/{name=" + + "projects/*/locations/*/taxonomies/*}\022\301\001\n" + + "\016UpdateTaxonomy\0222.google.cloud.datacatal" + + "og.v1.UpdateTaxonomyRequest\032%.google.clo" + + "ud.datacatalog.v1.Taxonomy\"T\332A\010taxonomy\202" + + "\323\344\223\002C27/v1/{taxonomy.name=projects/*/loc" + + "ations/*/taxonomies/*}:\010taxonomy\022\272\001\n\016Lis" + + "tTaxonomies\0222.google.cloud.datacatalog.v" + + "1.ListTaxonomiesRequest\0323.google.cloud.d" + + "atacatalog.v1.ListTaxonomiesResponse\"?\332A" + + "\006parent\202\323\344\223\0020\022./v1/{parent=projects/*/lo" + + "cations/*}/taxonomies\022\244\001\n\013GetTaxonomy\022/." + + "google.cloud.datacatalog.v1.GetTaxonomyR" + + "equest\032%.google.cloud.datacatalog.v1.Tax" + + "onomy\"=\332A\004name\202\323\344\223\0020\022./v1/{name=projects" + + "/*/locations/*/taxonomies/*}\022\323\001\n\017CreateP" + + "olicyTag\0223.google.cloud.datacatalog.v1.C" + + "reatePolicyTagRequest\032&.google.cloud.dat" + + "acatalog.v1.PolicyTag\"c\332A\021parent,policy_" + + "tag\202\323\344\223\002I\";/v1/{parent=projects/*/locati" + + "ons/*/taxonomies/*}/policyTags:\npolicy_t" + + "ag\022\252\001\n\017DeletePolicyTag\0223.google.cloud.da" + + "tacatalog.v1.DeletePolicyTagRequest\032\026.go" + + "ogle.protobuf.Empty\"J\332A\004name\202\323\344\223\002=*;/v1/" + + "{name=projects/*/locations/*/taxonomies/" + + "*/policyTags/*}\022\327\001\n\017UpdatePolicyTag\0223.go" + + "ogle.cloud.datacatalog.v1.UpdatePolicyTa" + + "gRequest\032&.google.cloud.datacatalog.v1.P" + + "olicyTag\"g\332A\npolicy_tag\202\323\344\223\002T2F/v1/{poli" + + "cy_tag.name=projects/*/locations/*/taxon" + + "omies/*/policyTags/*}:\npolicy_tag\022\307\001\n\016Li" + + "stPolicyTags\0222.google.cloud.datacatalog." + + "v1.ListPolicyTagsRequest\0323.google.cloud." + + "datacatalog.v1.ListPolicyTagsResponse\"L\332" + + "A\006parent\202\323\344\223\002=\022;/v1/{parent=projects/*/l" + + "ocations/*/taxonomies/*}/policyTags\022\264\001\n\014" + + "GetPolicyTag\0220.google.cloud.datacatalog." + + "v1.GetPolicyTagRequest\032&.google.cloud.da" + + "tacatalog.v1.PolicyTag\"J\332A\004name\202\323\344\223\002=\022;/" + + "v1/{name=projects/*/locations/*/taxonomi" + + "es/*/policyTags/*}\022\352\001\n\014GetIamPolicy\022\".go" + + "ogle.iam.v1.GetIamPolicyRequest\032\025.google" + + ".iam.v1.Policy\"\236\001\202\323\344\223\002\227\001\"?/v1/{resource=" + + "projects/*/locations/*/taxonomies/*}:get" + + "IamPolicy:\001*ZQ\"L/v1/{resource=projects/*" + + "/locations/*/taxonomies/*/policyTags/*}:" + + "getIamPolicy:\001*\022\352\001\n\014SetIamPolicy\022\".googl" + + "e.iam.v1.SetIamPolicyRequest\032\025.google.ia" + + "m.v1.Policy\"\236\001\202\323\344\223\002\227\001\"?/v1/{resource=pro" + + "jects/*/locations/*/taxonomies/*}:setIam" + + "Policy:\001*ZQ\"L/v1/{resource=projects/*/lo" + + "cations/*/taxonomies/*/policyTags/*}:set" + + "IamPolicy:\001*\022\226\002\n\022TestIamPermissions\022(.go" + + "ogle.iam.v1.TestIamPermissionsRequest\032)." + + "google.iam.v1.TestIamPermissionsResponse" + + "\"\252\001\202\323\344\223\002\243\001\"E/v1/{resource=projects/*/loc" + + "ations/*/taxonomies/*}:testIamPermission" + + "s:\001*ZW\"R/v1/{resource=projects/*/locatio" + + "ns/*/taxonomies/*/policyTags/*}:testIamP" + + "ermissions:\001*\032N\312A\032datacatalog.googleapis" + + ".com\322A.https://www.googleapis.com/auth/c" + + "loud-platformB\335\001\n\037com.google.cloud.datac" + + "atalog.v1B\025PolicyTagManagerProtoP\001ZAclou" + + "d.google.com/go/datacatalog/apiv1/dataca" + + "talogpb;datacatalogpb\370\001\001\252\002\033Google.Cloud." + + "DataCatalog.V1\312\002\033Google\\Cloud\\DataCatalo" + + "g\\V1\352\002\036Google::Cloud::DataCatalog::V1b\006p" + + "roto3" + }; + 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().getMessageTypes().get(0); + internal_static_google_cloud_datacatalog_v1_Taxonomy_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.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.getNestedTypes().get(0); + internal_static_google_cloud_datacatalog_v1_Taxonomy_Service_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.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().getMessageTypes().get(1); + internal_static_google_cloud_datacatalog_v1_PolicyTag_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.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().getMessageTypes().get(2); + internal_static_google_cloud_datacatalog_v1_CreateTaxonomyRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datacatalog_v1_CreateTaxonomyRequest_descriptor, + new java.lang.String[] { + "Parent", "Taxonomy", + }); + internal_static_google_cloud_datacatalog_v1_DeleteTaxonomyRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_datacatalog_v1_DeleteTaxonomyRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datacatalog_v1_DeleteTaxonomyRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_datacatalog_v1_UpdateTaxonomyRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_datacatalog_v1_UpdateTaxonomyRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datacatalog_v1_UpdateTaxonomyRequest_descriptor, + new java.lang.String[] { + "Taxonomy", "UpdateMask", + }); + internal_static_google_cloud_datacatalog_v1_ListTaxonomiesRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_datacatalog_v1_ListTaxonomiesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.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().getMessageTypes().get(6); + internal_static_google_cloud_datacatalog_v1_ListTaxonomiesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datacatalog_v1_ListTaxonomiesResponse_descriptor, + new java.lang.String[] { + "Taxonomies", "NextPageToken", + }); + internal_static_google_cloud_datacatalog_v1_GetTaxonomyRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_datacatalog_v1_GetTaxonomyRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datacatalog_v1_GetTaxonomyRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_datacatalog_v1_CreatePolicyTagRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_datacatalog_v1_CreatePolicyTagRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datacatalog_v1_CreatePolicyTagRequest_descriptor, + new java.lang.String[] { + "Parent", "PolicyTag", + }); + internal_static_google_cloud_datacatalog_v1_DeletePolicyTagRequest_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_datacatalog_v1_DeletePolicyTagRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datacatalog_v1_DeletePolicyTagRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_datacatalog_v1_UpdatePolicyTagRequest_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_datacatalog_v1_UpdatePolicyTagRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datacatalog_v1_UpdatePolicyTagRequest_descriptor, + new java.lang.String[] { + "PolicyTag", "UpdateMask", + }); + internal_static_google_cloud_datacatalog_v1_ListPolicyTagsRequest_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_datacatalog_v1_ListPolicyTagsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.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().getMessageTypes().get(12); + internal_static_google_cloud_datacatalog_v1_ListPolicyTagsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datacatalog_v1_ListPolicyTagsResponse_descriptor, + new java.lang.String[] { + "PolicyTags", "NextPageToken", + }); + internal_static_google_cloud_datacatalog_v1_GetPolicyTagRequest_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_datacatalog_v1_GetPolicyTagRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datacatalog_v1_GetPolicyTagRequest_descriptor, + new java.lang.String[] { + "Name", + }); + 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); + 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(); + } + + // @@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 new file mode 100644 index 000000000000..48c84d1e0cfc --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/PolicyTagManagerSerializationProto.java @@ -0,0 +1,240 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/policytagmanagerserialization.proto + +package com.google.cloud.datacatalog.v1; + +public final class PolicyTagManagerSerializationProto { + private 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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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/policytagm" + + "anagerserialization.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/p" + + "olicytagmanager.proto\"\336\001\n\022SerializedTaxo" + + "nomy\022\032\n\014display_name\030\001 \001(\tB\004\342A\001\002\022\023\n\013desc" + + "ription\030\002 \001(\t\022E\n\013policy_tags\030\003 \003(\01320.goo" + + "gle.cloud.datacatalog.v1.SerializedPolic" + + "yTag\022P\n\026activated_policy_types\030\004 \003(\01620.g" + + "oogle.cloud.datacatalog.v1.Taxonomy.Poli" + + "cyType\"\247\001\n\023SerializedPolicyTag\022\022\n\npolicy" + + "_tag\030\001 \001(\t\022\032\n\014display_name\030\002 \001(\tB\004\342A\001\002\022\023" + + "\n\013description\030\003 \001(\t\022K\n\021child_policy_tags" + + "\030\004 \003(\01320.google.cloud.datacatalog.v1.Ser" + + "ializedPolicyTag\"\250\001\n\026ReplaceTaxonomyRequ" + + "est\022:\n\004name\030\001 \001(\tB,\342A\001\002\372A%\n#datacatalog." + + "googleapis.com/Taxonomy\022R\n\023serialized_ta" + + "xonomy\030\002 \001(\0132/.google.cloud.datacatalog." + + "v1.SerializedTaxonomyB\004\342A\001\002\"\370\001\n\027ImportTa" + + "xonomiesRequest\022<\n\006parent\030\001 \001(\tB,\342A\001\002\372A%" + + "\022#datacatalog.googleapis.com/Taxonomy\022B\n" + + "\rinline_source\030\002 \001(\0132).google.cloud.data" + + "catalog.v1.InlineSourceH\000\022Q\n\025cross_regio" + + "nal_source\030\003 \001(\01320.google.cloud.datacata" + + "log.v1.CrossRegionalSourceH\000B\010\n\006source\"Y" + + "\n\014InlineSource\022I\n\ntaxonomies\030\001 \003(\0132/.goo" + + "gle.cloud.datacatalog.v1.SerializedTaxon" + + "omyB\004\342A\001\002\"U\n\023CrossRegionalSource\022>\n\010taxo" + + "nomy\030\001 \001(\tB,\342A\001\002\372A%\n#datacatalog.googlea" + + "pis.com/Taxonomy\"U\n\030ImportTaxonomiesResp" + + "onse\0229\n\ntaxonomies\030\001 \003(\0132%.google.cloud." + + "datacatalog.v1.Taxonomy\"\311\001\n\027ExportTaxono" + + "miesRequest\022<\n\006parent\030\001 \001(\tB,\342A\001\002\372A%\022#da" + + "tacatalog.googleapis.com/Taxonomy\022@\n\ntax" + + "onomies\030\002 \003(\tB,\342A\001\002\372A%\n#datacatalog.goog" + + "leapis.com/Taxonomy\022\037\n\025serialized_taxono" + + "mies\030\003 \001(\010H\000B\r\n\013destination\"_\n\030ExportTax" + + "onomiesResponse\022C\n\ntaxonomies\030\001 \003(\0132/.go" + + "ogle.cloud.datacatalog.v1.SerializedTaxo" + + "nomy2\247\005\n\035PolicyTagManagerSerialization\022\260" + + "\001\n\017ReplaceTaxonomy\0223.google.cloud.dataca" + + "talog.v1.ReplaceTaxonomyRequest\032%.google" + + ".cloud.datacatalog.v1.Taxonomy\"A\202\323\344\223\002;\"6" + + "/v1/{name=projects/*/locations/*/taxonom" + + "ies/*}:replace:\001*\022\301\001\n\020ImportTaxonomies\0224" + + ".google.cloud.datacatalog.v1.ImportTaxon" + + "omiesRequest\0325.google.cloud.datacatalog." + + "v1.ImportTaxonomiesResponse\"@\202\323\344\223\002:\"5/v1" + + "/{parent=projects/*/locations/*}/taxonom" + + "ies:import:\001*\022\276\001\n\020ExportTaxonomies\0224.goo" + + "gle.cloud.datacatalog.v1.ExportTaxonomie" + + "sRequest\0325.google.cloud.datacatalog.v1.E" + + "xportTaxonomiesResponse\"=\202\323\344\223\0027\0225/v1/{pa" + + "rent=projects/*/locations/*}/taxonomies:" + + "export\032N\312A\032datacatalog.googleapis.com\322A." + + "https://www.googleapis.com/auth/cloud-pl" + + "atformB\352\001\n\037com.google.cloud.datacatalog." + + "v1B\"PolicyTagManagerSerializationProtoP\001" + + "ZAcloud.google.com/go/datacatalog/apiv1/" + + "datacatalogpb;datacatalogpb\370\001\001\252\002\033Google." + + "Cloud.DataCatalog.V1\312\002\033Google\\Cloud\\Data" + + "Catalog\\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().getMessageTypes().get(0); + internal_static_google_cloud_datacatalog_v1_SerializedTaxonomy_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.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().getMessageTypes().get(1); + internal_static_google_cloud_datacatalog_v1_SerializedPolicyTag_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.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().getMessageTypes().get(2); + internal_static_google_cloud_datacatalog_v1_ReplaceTaxonomyRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datacatalog_v1_ReplaceTaxonomyRequest_descriptor, + new java.lang.String[] { + "Name", "SerializedTaxonomy", + }); + internal_static_google_cloud_datacatalog_v1_ImportTaxonomiesRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_datacatalog_v1_ImportTaxonomiesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.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().getMessageTypes().get(4); + internal_static_google_cloud_datacatalog_v1_InlineSource_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datacatalog_v1_InlineSource_descriptor, + new java.lang.String[] { + "Taxonomies", + }); + internal_static_google_cloud_datacatalog_v1_CrossRegionalSource_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_datacatalog_v1_CrossRegionalSource_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datacatalog_v1_CrossRegionalSource_descriptor, + new java.lang.String[] { + "Taxonomy", + }); + internal_static_google_cloud_datacatalog_v1_ImportTaxonomiesResponse_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_datacatalog_v1_ImportTaxonomiesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datacatalog_v1_ImportTaxonomiesResponse_descriptor, + new java.lang.String[] { + "Taxonomies", + }); + internal_static_google_cloud_datacatalog_v1_ExportTaxonomiesRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_datacatalog_v1_ExportTaxonomiesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.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().getMessageTypes().get(8); + internal_static_google_cloud_datacatalog_v1_ExportTaxonomiesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datacatalog_v1_ExportTaxonomiesResponse_descriptor, + new java.lang.String[] { + "Taxonomies", + }); + 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); + 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(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/PolicyTagName.java rename to java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/PolicyTagName.java 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 new file mode 100644 index 000000000000..14101711c368 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/PolicyTagOrBuilder.java @@ -0,0 +1,210 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/policytagmanager.proto + +package com.google.cloud.datacatalog.v1; + +public interface PolicyTagOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.PolicyTag) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. 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) = OUTPUT_ONLY]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Output only. 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) = OUTPUT_ONLY]; + * + * @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 new file mode 100644 index 000000000000..91ff8cd295bb --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ReconcileTagsMetadata.java @@ -0,0 +1,1143 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/datacatalog.proto + +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} + */ +public final class ReconcileTagsMetadata extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.ReconcileTagsMetadata) + ReconcileTagsMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use ReconcileTagsMetadata.newBuilder() to construct. + private ReconcileTagsMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ReconcileTagsMetadata() { + state_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ReconcileTagsMetadata(); + } + + 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.MapField internalGetMapField(int number) { + switch (number) { + case 2: + return internalGetErrors(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.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), + ; + + /** + * + * + *
+     * 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 final 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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.MapField internalGetMapField(int number) { + switch (number) { + case 2: + return internalGetErrors(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + switch (number) { + case 2: + return internalGetMutableErrors(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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(); + result.errors_.makeImmutable(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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() + .getMutableMap() + .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 com.google.protobuf.MapField errors_; + + private com.google.protobuf.MapField + internalGetErrors() { + if (errors_ == null) { + return com.google.protobuf.MapField.emptyMapField(ErrorsDefaultEntryHolder.defaultEntry); + } + return errors_; + } + + private com.google.protobuf.MapField + internalGetMutableErrors() { + if (errors_ == null) { + errors_ = com.google.protobuf.MapField.newMapField(ErrorsDefaultEntryHolder.defaultEntry); + } + if (!errors_.isMutable()) { + errors_ = errors_.copy(); + } + bitField0_ |= 0x00000002; + onChanged(); + 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); + } + + public Builder clearErrors() { + bitField0_ = (bitField0_ & ~0x00000002); + internalGetMutableErrors().getMutableMap().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().getMutableMap().remove(key); + return this; + } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableErrors() { + bitField0_ |= 0x00000002; + return internalGetMutableErrors().getMutableMap(); + } + /** + * + * + *
+     * 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().getMutableMap().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) { + internalGetMutableErrors().getMutableMap().putAll(values); + bitField0_ |= 0x00000002; + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..29b9c0082c27 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ReconcileTagsMetadataOrBuilder.java @@ -0,0 +1,113 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/datacatalog.proto + +package com.google.cloud.datacatalog.v1; + +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 new file mode 100644 index 000000000000..68010c4da572 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ReconcileTagsRequest.java @@ -0,0 +1,1496 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/datacatalog.proto + +package com.google.cloud.datacatalog.v1; + +/** + * + * + *
+ * Request message for
+ * [ReconcileTags][google.cloud.datacatalog.v1.DataCatalog.ReconcileTags].
+ * 
+ * + * Protobuf type {@code google.cloud.datacatalog.v1.ReconcileTagsRequest} + */ +public final class ReconcileTagsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.ReconcileTagsRequest) + ReconcileTagsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ReconcileTagsRequest.newBuilder() to construct. + private ReconcileTagsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ReconcileTagsRequest() { + parent_ = ""; + tagTemplate_ = ""; + tags_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ReconcileTagsRequest(); + } + + 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tagTemplate_)) { + com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tagTemplate_)) { + size += com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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.GeneratedMessageV3.alwaysUseFieldBuilders + ? getTagsFieldBuilder() + : 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.RepeatedFieldBuilderV3< + 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 getTagsFieldBuilder().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 getTagsFieldBuilder() + .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 getTagsFieldBuilder() + .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 getTagsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datacatalog.v1.Tag, + com.google.cloud.datacatalog.v1.Tag.Builder, + com.google.cloud.datacatalog.v1.TagOrBuilder> + getTagsFieldBuilder() { + if (tagsBuilder_ == null) { + tagsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + 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_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..8a41be95f6b6 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ReconcileTagsRequestOrBuilder.java @@ -0,0 +1,164 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/datacatalog.proto + +package com.google.cloud.datacatalog.v1; + +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 new file mode 100644 index 000000000000..d15fddf29a6a --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ReconcileTagsResponse.java @@ -0,0 +1,725 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/datacatalog.proto + +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} + */ +public final class ReconcileTagsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.ReconcileTagsResponse) + ReconcileTagsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ReconcileTagsResponse.newBuilder() to construct. + private ReconcileTagsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ReconcileTagsResponse() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new 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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..f6d7593b2439 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ReconcileTagsResponseOrBuilder.java @@ -0,0 +1,64 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/datacatalog.proto + +package com.google.cloud.datacatalog.v1; + +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 new file mode 100644 index 000000000000..c63877c79990 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/RenameTagTemplateFieldEnumValueRequest.java @@ -0,0 +1,849 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/datacatalog.proto + +package com.google.cloud.datacatalog.v1; + +/** + * + * + *
+ * Request message for
+ * [RenameTagTemplateFieldEnumValue][google.cloud.datacatalog.v1.DataCatalog.RenameTagTemplateFieldEnumValue].
+ * 
+ * + * Protobuf type {@code google.cloud.datacatalog.v1.RenameTagTemplateFieldEnumValueRequest} + */ +public final class RenameTagTemplateFieldEnumValueRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.RenameTagTemplateFieldEnumValueRequest) + RenameTagTemplateFieldEnumValueRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use RenameTagTemplateFieldEnumValueRequest.newBuilder() to construct. + private RenameTagTemplateFieldEnumValueRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RenameTagTemplateFieldEnumValueRequest() { + name_ = ""; + newEnumValueDisplayName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RenameTagTemplateFieldEnumValueRequest(); + } + + 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(newEnumValueDisplayName_)) { + com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(newEnumValueDisplayName_)) { + size += com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..f6cf558a7dfb --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/RenameTagTemplateFieldEnumValueRequestOrBuilder.java @@ -0,0 +1,81 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/datacatalog.proto + +package com.google.cloud.datacatalog.v1; + +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 new file mode 100644 index 000000000000..1a9dbd6f11c9 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/RenameTagTemplateFieldRequest.java @@ -0,0 +1,834 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/datacatalog.proto + +package com.google.cloud.datacatalog.v1; + +/** + * + * + *
+ * Request message for
+ * [RenameTagTemplateField][google.cloud.datacatalog.v1.DataCatalog.RenameTagTemplateField].
+ * 
+ * + * Protobuf type {@code google.cloud.datacatalog.v1.RenameTagTemplateFieldRequest} + */ +public final class RenameTagTemplateFieldRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.RenameTagTemplateFieldRequest) + RenameTagTemplateFieldRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use RenameTagTemplateFieldRequest.newBuilder() to construct. + private RenameTagTemplateFieldRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RenameTagTemplateFieldRequest() { + name_ = ""; + newTagTemplateFieldId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RenameTagTemplateFieldRequest(); + } + + 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(newTagTemplateFieldId_)) { + com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(newTagTemplateFieldId_)) { + size += com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..0214c8cd25a3 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/RenameTagTemplateFieldRequestOrBuilder.java @@ -0,0 +1,81 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/datacatalog.proto + +package com.google.cloud.datacatalog.v1; + +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 new file mode 100644 index 000000000000..eae8637053e7 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ReplaceTaxonomyRequest.java @@ -0,0 +1,939 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/policytagmanagerserialization.proto + +package com.google.cloud.datacatalog.v1; + +/** + * + * + *
+ * Request message for
+ * [ReplaceTaxonomy][google.cloud.datacatalog.v1.PolicyTagManagerSerialization.ReplaceTaxonomy].
+ * 
+ * + * Protobuf type {@code google.cloud.datacatalog.v1.ReplaceTaxonomyRequest} + */ +public final class ReplaceTaxonomyRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.ReplaceTaxonomyRequest) + ReplaceTaxonomyRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ReplaceTaxonomyRequest.newBuilder() to construct. + private ReplaceTaxonomyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ReplaceTaxonomyRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ReplaceTaxonomyRequest(); + } + + 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.GeneratedMessageV3.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); + } + + 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 serializedTaxonomy_ != null; + } + /** + * + * + *
+   * 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.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (serializedTaxonomy_ != null) { + 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.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (serializedTaxonomy_ != null) { + 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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @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_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.serializedTaxonomy_ = + serializedTaxonomyBuilder_ == null + ? serializedTaxonomy_ + : serializedTaxonomyBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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( + getSerializedTaxonomyFieldBuilder().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.SingleFieldBuilderV3< + 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); + } + 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 getSerializedTaxonomyFieldBuilder().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.SingleFieldBuilderV3< + com.google.cloud.datacatalog.v1.SerializedTaxonomy, + com.google.cloud.datacatalog.v1.SerializedTaxonomy.Builder, + com.google.cloud.datacatalog.v1.SerializedTaxonomyOrBuilder> + getSerializedTaxonomyFieldBuilder() { + if (serializedTaxonomyBuilder_ == null) { + serializedTaxonomyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + 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_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..8ac435f11b5c --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ReplaceTaxonomyRequestOrBuilder.java @@ -0,0 +1,95 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/policytagmanagerserialization.proto + +package com.google.cloud.datacatalog.v1; + +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/RoutineSpec.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/RoutineSpec.java new file mode 100644 index 000000000000..c0aeb9fa1c93 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/RoutineSpec.java @@ -0,0 +1,3475 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/datacatalog.proto + +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} + */ +public final class RoutineSpec extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.RoutineSpec) + RoutineSpecOrBuilder { + private static final long serialVersionUID = 0L; + // Use RoutineSpec.newBuilder() to construct. + private RoutineSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RoutineSpec() { + routineType_ = 0; + language_ = ""; + routineArguments_ = java.util.Collections.emptyList(); + returnType_ = ""; + definitionBody_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RoutineSpec(); + } + + 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.GeneratedMessageV3.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), + ; + + /** + * + * + *
+     * 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 final 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.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.RoutineSpec.Argument) + ArgumentOrBuilder { + private static final long serialVersionUID = 0L; + // Use Argument.newBuilder() to construct. + private Argument(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Argument() { + name_ = ""; + mode_ = 0; + type_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Argument(); + } + + 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.GeneratedMessageV3.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), + ; + + /** + * + * + *
+       * 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 final 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.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(type_)) { + com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(type_)) { + size += com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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.GeneratedMessageV3.isStringEmpty(language_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, language_); + } + for (int i = 0; i < routineArguments_.size(); i++) { + output.writeMessage(3, routineArguments_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(returnType_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, returnType_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(definitionBody_)) { + com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(language_)) { + size += com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(returnType_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, returnType_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(definitionBody_)) { + size += com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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.GeneratedMessageV3.alwaysUseFieldBuilders + ? getRoutineArgumentsFieldBuilder() + : 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( + getBigqueryRoutineSpecFieldBuilder().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.RepeatedFieldBuilderV3< + 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 getRoutineArgumentsFieldBuilder().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 getRoutineArgumentsFieldBuilder() + .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 getRoutineArgumentsFieldBuilder() + .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 getRoutineArgumentsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datacatalog.v1.RoutineSpec.Argument, + com.google.cloud.datacatalog.v1.RoutineSpec.Argument.Builder, + com.google.cloud.datacatalog.v1.RoutineSpec.ArgumentOrBuilder> + getRoutineArgumentsFieldBuilder() { + if (routineArgumentsBuilder_ == null) { + routineArgumentsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + 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.SingleFieldBuilderV3< + 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 getBigqueryRoutineSpecFieldBuilder().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.SingleFieldBuilderV3< + com.google.cloud.datacatalog.v1.BigQueryRoutineSpec, + com.google.cloud.datacatalog.v1.BigQueryRoutineSpec.Builder, + com.google.cloud.datacatalog.v1.BigQueryRoutineSpecOrBuilder> + getBigqueryRoutineSpecFieldBuilder() { + if (bigqueryRoutineSpecBuilder_ == null) { + if (!(systemSpecCase_ == 6)) { + systemSpec_ = com.google.cloud.datacatalog.v1.BigQueryRoutineSpec.getDefaultInstance(); + } + bigqueryRoutineSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + 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_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1/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 similarity index 80% rename from owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/RoutineSpecOrBuilder.java rename to java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/RoutineSpecOrBuilder.java index 1f7c370d1c05..09807bb7e3e5 100644 --- a/owl-bot-staging/java-datacatalog/v1/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 @@ -1,32 +1,56 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datacatalog/v1/datacatalog.proto package com.google.cloud.datacatalog.v1; -public interface RoutineSpecOrBuilder extends +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:
@@ -36,10 +60,13 @@ public interface RoutineSpecOrBuilder extends
    * 
* * 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:
@@ -49,21 +76,24 @@ public interface RoutineSpecOrBuilder extends
    * 
* * string language = 2; + * * @return The bytes for language. */ - com.google.protobuf.ByteString - getLanguageBytes(); + com.google.protobuf.ByteString getLanguageBytes(); /** + * + * *
    * Arguments of the routine.
    * 
* * repeated .google.cloud.datacatalog.v1.RoutineSpec.Argument routine_arguments = 3; */ - java.util.List - getRoutineArgumentsList(); + java.util.List getRoutineArgumentsList(); /** + * + * *
    * Arguments of the routine.
    * 
@@ -72,6 +102,8 @@ public interface RoutineSpecOrBuilder extends */ com.google.cloud.datacatalog.v1.RoutineSpec.Argument getRoutineArguments(int index); /** + * + * *
    * Arguments of the routine.
    * 
@@ -80,15 +112,19 @@ public interface RoutineSpecOrBuilder extends */ int getRoutineArgumentsCount(); /** + * + * *
    * Arguments of the routine.
    * 
* * repeated .google.cloud.datacatalog.v1.RoutineSpec.Argument routine_arguments = 3; */ - java.util.List + java.util.List getRoutineArgumentsOrBuilderList(); /** + * + * *
    * Arguments of the routine.
    * 
@@ -99,66 +135,84 @@ com.google.cloud.datacatalog.v1.RoutineSpec.ArgumentOrBuilder getRoutineArgument 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(); + 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(); + 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.
    * 
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 new file mode 100644 index 000000000000..933952bc2ae5 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/Schema.java @@ -0,0 +1,1002 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/schema.proto + +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} + */ +public final class Schema extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.Schema) + SchemaOrBuilder { + private static final long serialVersionUID = 0L; + // Use Schema.newBuilder() to construct. + private Schema(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Schema() { + columns_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Schema(); + } + + 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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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.GeneratedMessageV3.alwaysUseFieldBuilders + ? getColumnsFieldBuilder() + : 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.RepeatedFieldBuilderV3< + 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 getColumnsFieldBuilder().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 getColumnsFieldBuilder() + .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 getColumnsFieldBuilder() + .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 getColumnsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datacatalog.v1.ColumnSchema, + com.google.cloud.datacatalog.v1.ColumnSchema.Builder, + com.google.cloud.datacatalog.v1.ColumnSchemaOrBuilder> + getColumnsFieldBuilder() { + if (columnsBuilder_ == null) { + columnsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + 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_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..1acd97924791 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SchemaOrBuilder.java @@ -0,0 +1,92 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/schema.proto + +package com.google.cloud.datacatalog.v1; + +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 new file mode 100644 index 000000000000..e69cf8a2a026 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SchemaOuterClass.java @@ -0,0 +1,133 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/schema.proto + +package com.google.cloud.datacatalog.v1; + +public final class SchemaOuterClass { + private 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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datacatalog_v1_ColumnSchema_LookerColumnSpec_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\007co" + + "lumns\030\002 \003(\0132).google.cloud.datacatalog.v" + + "1.ColumnSchema\"\332\006\n\014ColumnSchema\022\024\n\006colum" + + "n\030\006 \001(\tB\004\342A\001\002\022\022\n\004type\030\001 \001(\tB\004\342A\001\002\022\031\n\013des" + + "cription\030\002 \001(\tB\004\342A\001\001\022\022\n\004mode\030\003 \001(\tB\004\342A\001\001" + + "\022\033\n\rdefault_value\030\010 \001(\tB\004\342A\001\001\022\036\n\020ordinal" + + "_position\030\t \001(\005B\004\342A\001\001\022[\n\025highest_indexin" + + "g_type\030\n \001(\01626.google.cloud.datacatalog." + + "v1.ColumnSchema.IndexingTypeB\004\342A\001\001\022C\n\nsu" + + "bcolumns\030\007 \003(\0132).google.cloud.datacatalo" + + "g.v1.ColumnSchemaB\004\342A\001\001\022X\n\022looker_column" + + "_spec\030\022 \001(\0132:.google.cloud.datacatalog.v" + + "1.ColumnSchema.LookerColumnSpecH\000\022\025\n\007gc_" + + "rule\030\013 \001(\tB\004\342A\001\001\032\362\001\n\020LookerColumnSpec\022Y\n" + + "\004type\030\001 \001(\0162K.google.cloud.datacatalog.v" + + "1.ColumnSchema.LookerColumnSpec.LookerCo" + + "lumnType\"\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\007MEA" + + "SURE\020\004\022\r\n\tPARAMETER\020\005\"\234\001\n\014IndexingType\022\035" + + "\n\031INDEXING_TYPE_UNSPECIFIED\020\000\022\026\n\022INDEXIN" + + "G_TYPE_NONE\020\001\022\034\n\030INDEXING_TYPE_NON_UNIQU" + + "E\020\002\022\030\n\024INDEXING_TYPE_UNIQUE\020\003\022\035\n\031INDEXIN" + + "G_TYPE_PRIMARY_KEY\020\004B\r\n\013system_specB\306\001\n\037" + + "com.google.cloud.datacatalog.v1P\001ZAcloud" + + ".google.com/go/datacatalog/apiv1/datacat" + + "alogpb;datacatalogpb\370\001\001\252\002\033Google.Cloud.D" + + "ataCatalog.V1\312\002\033Google\\Cloud\\DataCatalog" + + "\\V1\352\002\036Google::Cloud::DataCatalog::V1b\006pr" + + "oto3" + }; + 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().getMessageTypes().get(0); + internal_static_google_cloud_datacatalog_v1_Schema_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datacatalog_v1_Schema_descriptor, + new java.lang.String[] { + "Columns", + }); + internal_static_google_cloud_datacatalog_v1_ColumnSchema_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_datacatalog_v1_ColumnSchema_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datacatalog_v1_ColumnSchema_descriptor, + new java.lang.String[] { + "Column", + "Type", + "Description", + "Mode", + "DefaultValue", + "OrdinalPosition", + "HighestIndexingType", + "Subcolumns", + "LookerColumnSpec", + "GcRule", + "SystemSpec", + }); + internal_static_google_cloud_datacatalog_v1_ColumnSchema_LookerColumnSpec_descriptor = + internal_static_google_cloud_datacatalog_v1_ColumnSchema_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_datacatalog_v1_ColumnSchema_LookerColumnSpec_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datacatalog_v1_ColumnSchema_LookerColumnSpec_descriptor, + new java.lang.String[] { + "Type", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + } + + // @@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 new file mode 100644 index 000000000000..a97086a9dbda --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/Search.java @@ -0,0 +1,105 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/search.proto + +package com.google.cloud.datacatalog.v1; + +public final class Search { + private 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.GeneratedMessageV3.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\"\257\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\022P\n\021integrated_system\030\010 \001" + + "(\0162-.google.cloud.datacatalog.v1.Integra" + + "tedSystemB\004\342A\001\003H\000\022\037\n\025user_specified_syst" + + "em\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\036SEA" + + "RCH_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\306\001\n\037" + + "com.google.cloud.datacatalog.v1P\001ZAcloud" + + ".google.com/go/datacatalog/apiv1/datacat" + + "alogpb;datacatalogpb\370\001\001\252\002\033Google.Cloud.D" + + "ataCatalog.V1\312\002\033Google\\Cloud\\DataCatalog" + + "\\V1\352\002\036Google::Cloud::DataCatalog::V1b\006pr" + + "oto3" + }; + 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().getMessageTypes().get(0); + internal_static_google_cloud_datacatalog_v1_SearchCatalogResult_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datacatalog_v1_SearchCatalogResult_descriptor, + new java.lang.String[] { + "SearchResultType", + "SearchResultSubtype", + "RelativeResourceName", + "LinkedResource", + "ModifyTime", + "IntegratedSystem", + "UserSpecifiedSystem", + "FullyQualifiedName", + "DisplayName", + "Description", + "System", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.cloud.datacatalog.v1.Common.getDescriptor(); + 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/SearchCatalogRequest.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SearchCatalogRequest.java new file mode 100644 index 000000000000..d301f9e6c4d6 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SearchCatalogRequest.java @@ -0,0 +1,3875 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/datacatalog.proto + +package com.google.cloud.datacatalog.v1; + +/** + * + * + *
+ * Request message for
+ * [SearchCatalog][google.cloud.datacatalog.v1.DataCatalog.SearchCatalog].
+ * 
+ * + * Protobuf type {@code google.cloud.datacatalog.v1.SearchCatalogRequest} + */ +public final class SearchCatalogRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.SearchCatalogRequest) + SearchCatalogRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use SearchCatalogRequest.newBuilder() to construct. + private SearchCatalogRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SearchCatalogRequest() { + query_ = ""; + pageToken_ = ""; + orderBy_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SearchCatalogRequest(); + } + + 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.GeneratedMessageV3.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=677 + * @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.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.SearchCatalogRequest.Scope) + ScopeOrBuilder { + private static final long serialVersionUID = 0L; + // Use Scope.newBuilder() to construct. + private Scope(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Scope() { + includeOrgIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + includeProjectIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + restrictedLocations_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Scope(); + } + + 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.GeneratedMessageV3.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=677 + * @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.GeneratedMessageV3.writeString(output, 2, includeOrgIds_.getRaw(i)); + } + for (int i = 0; i < includeProjectIds_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, includeProjectIds_.getRaw(i)); + } + if (includeGcpPublicDatasets_ != false) { + output.writeBool(7, includeGcpPublicDatasets_); + } + for (int i = 0; i < restrictedLocations_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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=677 + * @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=677 + * @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=677 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearIncludePublicTagTemplates() { + bitField0_ = (bitField0_ & ~0x00000020); + includePublicTagTemplates_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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; + } + } + + 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 scope_ != null; + } + /** + * + * + *
+   * 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.GeneratedMessageV3.isStringEmpty(query_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, query_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, orderBy_); + } + if (scope_ != null) { + 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.GeneratedMessageV3.isStringEmpty(query_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, query_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, orderBy_); + } + if (scope_ != null) { + 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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @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_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.scope_ = scopeBuilder_ == null ? scope_ : scopeBuilder_.build(); + } + 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_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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(getScopeFieldBuilder().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.SingleFieldBuilderV3< + 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); + } + 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 getScopeFieldBuilder().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.SingleFieldBuilderV3< + com.google.cloud.datacatalog.v1.SearchCatalogRequest.Scope, + com.google.cloud.datacatalog.v1.SearchCatalogRequest.Scope.Builder, + com.google.cloud.datacatalog.v1.SearchCatalogRequest.ScopeOrBuilder> + getScopeFieldBuilder() { + if (scopeBuilder_ == null) { + scopeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + 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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..63b26aad6db8 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SearchCatalogRequestOrBuilder.java @@ -0,0 +1,253 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/datacatalog.proto + +package com.google.cloud.datacatalog.v1; + +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 new file mode 100644 index 000000000000..84b1c16f1904 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SearchCatalogResponse.java @@ -0,0 +1,1572 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/datacatalog.proto + +package com.google.cloud.datacatalog.v1; + +/** + * + * + *
+ * Response message for
+ * [SearchCatalog][google.cloud.datacatalog.v1.DataCatalog.SearchCatalog].
+ * 
+ * + * Protobuf type {@code google.cloud.datacatalog.v1.SearchCatalogResponse} + */ +public final class SearchCatalogResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.SearchCatalogResponse) + SearchCatalogResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use SearchCatalogResponse.newBuilder() to construct. + private SearchCatalogResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SearchCatalogResponse() { + results_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SearchCatalogResponse(); + } + + 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, nextPageToken_); + } + for (int i = 0; i < unreachable_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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.GeneratedMessageV3.alwaysUseFieldBuilders + ? getResultsFieldBuilder() + : 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.RepeatedFieldBuilderV3< + 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 getResultsFieldBuilder().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 getResultsFieldBuilder() + .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 getResultsFieldBuilder() + .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 getResultsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datacatalog.v1.SearchCatalogResult, + com.google.cloud.datacatalog.v1.SearchCatalogResult.Builder, + com.google.cloud.datacatalog.v1.SearchCatalogResultOrBuilder> + getResultsFieldBuilder() { + if (resultsBuilder_ == null) { + resultsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + 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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..7f3bf62b4e6f --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SearchCatalogResponseOrBuilder.java @@ -0,0 +1,188 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/datacatalog.proto + +package com.google.cloud.datacatalog.v1; + +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 new file mode 100644 index 000000000000..7697117c1e00 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SearchCatalogResult.java @@ -0,0 +1,2735 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/search.proto + +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} + */ +public final class SearchCatalogResult extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.SearchCatalogResult) + SearchCatalogResultOrBuilder { + private static final long serialVersionUID = 0L; + // Use SearchCatalogResult.newBuilder() to construct. + private SearchCatalogResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SearchCatalogResult() { + searchResultType_ = 0; + searchResultSubtype_ = ""; + relativeResourceName_ = ""; + linkedResource_ = ""; + fullyQualifiedName_ = ""; + displayName_ = ""; + description_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SearchCatalogResult(); + } + + 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.GeneratedMessageV3.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 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 modifyTime_ != null; + } + /** + * + * + *
+   * 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.GeneratedMessageV3.isStringEmpty(searchResultSubtype_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, searchResultSubtype_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(relativeResourceName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, relativeResourceName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(linkedResource_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, linkedResource_); + } + if (modifyTime_ != null) { + output.writeMessage(7, getModifyTime()); + } + if (systemCase_ == 8) { + output.writeEnum(8, ((java.lang.Integer) system_)); + } + if (systemCase_ == 9) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, system_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fullyQualifiedName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, fullyQualifiedName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 12, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(searchResultSubtype_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, searchResultSubtype_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(relativeResourceName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, relativeResourceName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(linkedResource_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, linkedResource_); + } + if (modifyTime_ != null) { + 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.GeneratedMessageV3.computeStringSize(9, system_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fullyQualifiedName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, fullyQualifiedName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @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_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.modifyTime_ = modifyTimeBuilder_ == null ? modifyTime_ : modifyTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.fullyQualifiedName_ = fullyQualifiedName_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.description_ = description_; + } + } + + private void buildPartialOneofs(com.google.cloud.datacatalog.v1.SearchCatalogResult result) { + result.systemCase_ = systemCase_; + result.system_ = this.system_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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(getModifyTimeFieldBuilder().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.SingleFieldBuilderV3< + 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); + } + 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 getModifyTimeFieldBuilder().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.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getModifyTimeFieldBuilder() { + if (modifyTimeBuilder_ == null) { + modifyTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + 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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..b9891b87cb22 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SearchCatalogResultOrBuilder.java @@ -0,0 +1,390 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/search.proto + +package com.google.cloud.datacatalog.v1; + +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 new file mode 100644 index 000000000000..9ca873108b4f --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SearchResultType.java @@ -0,0 +1,198 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/search.proto + +package com.google.cloud.datacatalog.v1; + +/** + * + * + *
+ * The resource types that can be returned in search results.
+ * 
+ * + * Protobuf enum {@code google.cloud.datacatalog.v1.SearchResultType} + */ +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), + ; + + /** + * + * + *
+   * 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 final 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 new file mode 100644 index 000000000000..203c1b29a54f --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SerializedPolicyTag.java @@ -0,0 +1,1534 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/policytagmanagerserialization.proto + +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} + */ +public final class SerializedPolicyTag extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.SerializedPolicyTag) + SerializedPolicyTagOrBuilder { + private static final long serialVersionUID = 0L; + // Use SerializedPolicyTag.newBuilder() to construct. + private SerializedPolicyTag(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SerializedPolicyTag() { + policyTag_ = ""; + displayName_ = ""; + description_ = ""; + childPolicyTags_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SerializedPolicyTag(); + } + + 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(policyTag_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, policyTag_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_); + } + 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.GeneratedMessageV3.isStringEmpty(policyTag_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, policyTag_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); + } + 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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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.GeneratedMessageV3.alwaysUseFieldBuilders + ? getChildPolicyTagsFieldBuilder() + : 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.RepeatedFieldBuilderV3< + 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 getChildPolicyTagsFieldBuilder().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 getChildPolicyTagsFieldBuilder() + .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 getChildPolicyTagsFieldBuilder() + .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 getChildPolicyTagsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datacatalog.v1.SerializedPolicyTag, + com.google.cloud.datacatalog.v1.SerializedPolicyTag.Builder, + com.google.cloud.datacatalog.v1.SerializedPolicyTagOrBuilder> + getChildPolicyTagsFieldBuilder() { + if (childPolicyTagsBuilder_ == null) { + childPolicyTagsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + 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_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..360b21bef1aa --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SerializedPolicyTagOrBuilder.java @@ -0,0 +1,163 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/policytagmanagerserialization.proto + +package com.google.cloud.datacatalog.v1; + +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 new file mode 100644 index 000000000000..2a0157d2a54c --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SerializedTaxonomy.java @@ -0,0 +1,1736 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/policytagmanagerserialization.proto + +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} + */ +public final class SerializedTaxonomy extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.SerializedTaxonomy) + SerializedTaxonomyOrBuilder { + private static final long serialVersionUID = 0L; + // Use SerializedTaxonomy.newBuilder() to construct. + private SerializedTaxonomy(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SerializedTaxonomy() { + displayName_ = ""; + description_ = ""; + policyTags_ = java.util.Collections.emptyList(); + activatedPolicyTypes_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SerializedTaxonomy(); + } + + 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.GeneratedMessageV3.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 java.util.List activatedPolicyTypes_; + + private static final com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.cloud.datacatalog.v1.Taxonomy.PolicyType> + activatedPolicyTypes_converter_ = + new com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.cloud.datacatalog.v1.Taxonomy.PolicyType>() { + public com.google.cloud.datacatalog.v1.Taxonomy.PolicyType convert( + java.lang.Integer 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.ListAdapter< + java.lang.Integer, 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_.get(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_.get(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.GeneratedMessageV3.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessageV3.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_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessageV3.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_.get(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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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_ = java.util.Collections.emptyList(); + 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_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(); + } + if (((bitField0_ & 0x00000008) != 0)) { + activatedPolicyTypes_ = java.util.Collections.unmodifiableList(activatedPolicyTypes_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.activatedPolicyTypes_ = activatedPolicyTypes_; + } + + 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_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPolicyTagsFieldBuilder() + : null; + } else { + policyTagsBuilder_.addAllMessages(other.policyTags_); + } + } + } + if (!other.activatedPolicyTypes_.isEmpty()) { + if (activatedPolicyTypes_.isEmpty()) { + activatedPolicyTypes_ = other.activatedPolicyTypes_; + bitField0_ = (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_.add(tmpRaw); + break; + } // case 32 + case 34: + { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while (input.getBytesUntilLimit() > 0) { + int tmpRaw = input.readEnum(); + ensureActivatedPolicyTypesIsMutable(); + activatedPolicyTypes_.add(tmpRaw); + } + input.popLimit(oldLimit); + 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.RepeatedFieldBuilderV3< + 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 getPolicyTagsFieldBuilder().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 getPolicyTagsFieldBuilder() + .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 getPolicyTagsFieldBuilder() + .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 getPolicyTagsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datacatalog.v1.SerializedPolicyTag, + com.google.cloud.datacatalog.v1.SerializedPolicyTag.Builder, + com.google.cloud.datacatalog.v1.SerializedPolicyTagOrBuilder> + getPolicyTagsFieldBuilder() { + if (policyTagsBuilder_ == null) { + policyTagsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + 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 java.util.List activatedPolicyTypes_ = + java.util.Collections.emptyList(); + + private void ensureActivatedPolicyTypesIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + activatedPolicyTypes_ = new java.util.ArrayList(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.ListAdapter< + java.lang.Integer, 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_.get(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_.set(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_.add(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_.add(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_ = java.util.Collections.emptyList(); + 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() { + return java.util.Collections.unmodifiableList(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_.get(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_.set(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_.add(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_.add(value); + } + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..426f6a27bced --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SerializedTaxonomyOrBuilder.java @@ -0,0 +1,199 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/policytagmanagerserialization.proto + +package com.google.cloud.datacatalog.v1; + +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 new file mode 100644 index 000000000000..f72352337697 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ServiceSpec.java @@ -0,0 +1,861 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/datacatalog.proto + +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} + */ +public final class ServiceSpec extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.ServiceSpec) + ServiceSpecOrBuilder { + private static final long serialVersionUID = 0L; + // Use ServiceSpec.newBuilder() to construct. + private ServiceSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ServiceSpec() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new 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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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( + getCloudBigtableInstanceSpecFieldBuilder().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.SingleFieldBuilderV3< + 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 getCloudBigtableInstanceSpecFieldBuilder().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.SingleFieldBuilderV3< + com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec, + com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec.Builder, + com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpecOrBuilder> + getCloudBigtableInstanceSpecFieldBuilder() { + if (cloudBigtableInstanceSpecBuilder_ == null) { + if (!(systemSpecCase_ == 1)) { + systemSpec_ = + com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec.getDefaultInstance(); + } + cloudBigtableInstanceSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + 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_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..6107e1c7e10d --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ServiceSpecOrBuilder.java @@ -0,0 +1,69 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/datacatalog.proto + +package com.google.cloud.datacatalog.v1; + +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/SqlDatabaseSystemSpec.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SqlDatabaseSystemSpec.java new file mode 100644 index 000000000000..9027b72f6e8b --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SqlDatabaseSystemSpec.java @@ -0,0 +1,1098 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/datacatalog.proto + +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} + */ +public final class SqlDatabaseSystemSpec extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.SqlDatabaseSystemSpec) + SqlDatabaseSystemSpecOrBuilder { + private static final long serialVersionUID = 0L; + // Use SqlDatabaseSystemSpec.newBuilder() to construct. + private SqlDatabaseSystemSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SqlDatabaseSystemSpec() { + sqlEngine_ = ""; + databaseVersion_ = ""; + instanceHost_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SqlDatabaseSystemSpec(); + } + + 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(sqlEngine_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sqlEngine_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(databaseVersion_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, databaseVersion_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceHost_)) { + com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(sqlEngine_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, sqlEngine_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(databaseVersion_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, databaseVersion_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceHost_)) { + size += com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..ded1434dcffe --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SqlDatabaseSystemSpecOrBuilder.java @@ -0,0 +1,130 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/datacatalog.proto + +package com.google.cloud.datacatalog.v1; + +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 new file mode 100644 index 000000000000..16d65c21f9e4 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/StarEntryRequest.java @@ -0,0 +1,640 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/datacatalog.proto + +package com.google.cloud.datacatalog.v1; + +/** + * + * + *
+ * Request message for
+ * [StarEntry][google.cloud.datacatalog.v1.DataCatalog.StarEntry].
+ * 
+ * + * Protobuf type {@code google.cloud.datacatalog.v1.StarEntryRequest} + */ +public final class StarEntryRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.StarEntryRequest) + StarEntryRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use StarEntryRequest.newBuilder() to construct. + private StarEntryRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private StarEntryRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new StarEntryRequest(); + } + + 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.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 clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..193a12f3727d --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/StarEntryRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/datacatalog.proto + +package com.google.cloud.datacatalog.v1; + +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 new file mode 100644 index 000000000000..1b3e2f597ab7 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/StarEntryResponse.java @@ -0,0 +1,435 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/datacatalog.proto + +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} + */ +public final class StarEntryResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.StarEntryResponse) + StarEntryResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use StarEntryResponse.newBuilder() to construct. + private StarEntryResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private StarEntryResponse() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new 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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.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 clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..1f655b2b4fe5 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/StarEntryResponseOrBuilder.java @@ -0,0 +1,24 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/datacatalog.proto + +package com.google.cloud.datacatalog.v1; + +public interface StarEntryResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.StarEntryResponse) + com.google.protobuf.MessageOrBuilder {} diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 79% rename from owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/StorageProperties.java rename to java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/StorageProperties.java index 17faee8122af..e816e275d1a0 100644 --- a/owl-bot-staging/java-datacatalog/v1/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 @@ -1,55 +1,76 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datacatalog/v1/data_source.proto package com.google.cloud.datacatalog.v1; /** + * + * *
  * Details the properties of the underlying storage.
  * 
* * Protobuf type {@code google.cloud.datacatalog.v1.StorageProperties} */ -public final class StorageProperties extends - com.google.protobuf.GeneratedMessageV3 implements +public final class StorageProperties extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.StorageProperties) StoragePropertiesOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use StorageProperties.newBuilder() to construct. private StorageProperties(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private StorageProperties() { - filePattern_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + filePattern_ = com.google.protobuf.LazyStringArrayList.emptyList(); fileType_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new StorageProperties(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datacatalog.v1.DataSourceProto.internal_static_google_cloud_datacatalog_v1_StorageProperties_descriptor; + 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.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.DataSourceProto.internal_static_google_cloud_datacatalog_v1_StorageProperties_fieldAccessorTable + 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); + 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.
    *
@@ -74,13 +95,15 @@ protected java.lang.Object newInstance(
    * 
* * repeated string file_pattern = 1; + * * @return A list containing the filePattern. */ - public com.google.protobuf.ProtocolStringList - getFilePatternList() { + public com.google.protobuf.ProtocolStringList getFilePatternList() { return filePattern_; } /** + * + * *
    * Patterns to identify a set of files for this fileset.
    *
@@ -105,12 +128,15 @@ protected java.lang.Object newInstance(
    * 
* * 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.
    *
@@ -135,6 +161,7 @@ public int getFilePatternCount() {
    * 
* * repeated string file_pattern = 1; + * * @param index The index of the element to return. * @return The filePattern at the given index. */ @@ -142,6 +169,8 @@ public java.lang.String getFilePattern(int index) { return filePattern_.get(index); } /** + * + * *
    * Patterns to identify a set of files for this fileset.
    *
@@ -166,23 +195,27 @@ public java.lang.String getFilePattern(int index) {
    * 
* * 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) { + 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 @@ -191,29 +224,29 @@ public java.lang.String getFileType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + 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() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); fileType_ = b; return b; } else { @@ -222,6 +255,7 @@ public java.lang.String getFileType() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -233,8 +267,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < filePattern_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, filePattern_.getRaw(i)); } @@ -269,17 +302,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datacatalog.v1.StorageProperties)) { return super.equals(obj); } - com.google.cloud.datacatalog.v1.StorageProperties other = (com.google.cloud.datacatalog.v1.StorageProperties) 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 (!getFilePatternList().equals(other.getFilePatternList())) return false; + if (!getFileType().equals(other.getFileType())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -303,145 +335,148 @@ public int hashCode() { } public static com.google.cloud.datacatalog.v1.StorageProperties parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + 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) + 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) + 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.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datacatalog.v1.StorageProperties parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datacatalog.v1.StorageProperties parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datacatalog.v1.StorageProperties parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.datacatalog.v1.StorageProperties parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + 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); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.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; + 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.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.DataSourceProto.internal_static_google_cloud_datacatalog_v1_StorageProperties_fieldAccessorTable + 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); + 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() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; - filePattern_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + 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; + 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 @@ -460,8 +495,11 @@ public com.google.cloud.datacatalog.v1.StorageProperties build() { @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); } + com.google.cloud.datacatalog.v1.StorageProperties result = + new com.google.cloud.datacatalog.v1.StorageProperties(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -481,38 +519,39 @@ private void buildPartial0(com.google.cloud.datacatalog.v1.StorageProperties res public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datacatalog.v1.StorageProperties) { - return mergeFrom((com.google.cloud.datacatalog.v1.StorageProperties)other); + return mergeFrom((com.google.cloud.datacatalog.v1.StorageProperties) other); } else { super.mergeFrom(other); return this; @@ -520,7 +559,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datacatalog.v1.StorageProperties other) { - if (other == com.google.cloud.datacatalog.v1.StorageProperties.getDefaultInstance()) return this; + if (other == com.google.cloud.datacatalog.v1.StorageProperties.getDefaultInstance()) + return this; if (!other.filePattern_.isEmpty()) { if (filePattern_.isEmpty()) { filePattern_ = other.filePattern_; @@ -562,23 +602,26 @@ public Builder mergeFrom( 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: + 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) { @@ -588,10 +631,12 @@ public Builder mergeFrom( } // 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_); @@ -599,6 +644,8 @@ private void ensureFilePatternIsMutable() { bitField0_ |= 0x00000001; } /** + * + * *
      * Patterns to identify a set of files for this fileset.
      *
@@ -623,14 +670,16 @@ private void ensureFilePatternIsMutable() {
      * 
* * repeated string file_pattern = 1; + * * @return A list containing the filePattern. */ - public com.google.protobuf.ProtocolStringList - getFilePatternList() { + public com.google.protobuf.ProtocolStringList getFilePatternList() { filePattern_.makeImmutable(); return filePattern_; } /** + * + * *
      * Patterns to identify a set of files for this fileset.
      *
@@ -655,12 +704,15 @@ private void ensureFilePatternIsMutable() {
      * 
* * 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.
      *
@@ -685,6 +737,7 @@ public int getFilePatternCount() {
      * 
* * repeated string file_pattern = 1; + * * @param index The index of the element to return. * @return The filePattern at the given index. */ @@ -692,6 +745,8 @@ public java.lang.String getFilePattern(int index) { return filePattern_.get(index); } /** + * + * *
      * Patterns to identify a set of files for this fileset.
      *
@@ -716,14 +771,16 @@ public java.lang.String getFilePattern(int index) {
      * 
* * 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) { + public com.google.protobuf.ByteString getFilePatternBytes(int index) { return filePattern_.getByteString(index); } /** + * + * *
      * Patterns to identify a set of files for this fileset.
      *
@@ -748,13 +805,15 @@ public java.lang.String getFilePattern(int index) {
      * 
* * 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(); } + public Builder setFilePattern(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureFilePatternIsMutable(); filePattern_.set(index, value); bitField0_ |= 0x00000001; @@ -762,6 +821,8 @@ public Builder setFilePattern( return this; } /** + * + * *
      * Patterns to identify a set of files for this fileset.
      *
@@ -786,12 +847,14 @@ public Builder setFilePattern(
      * 
* * 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(); } + public Builder addFilePattern(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureFilePatternIsMutable(); filePattern_.add(value); bitField0_ |= 0x00000001; @@ -799,6 +862,8 @@ public Builder addFilePattern( return this; } /** + * + * *
      * Patterns to identify a set of files for this fileset.
      *
@@ -823,19 +888,20 @@ public Builder addFilePattern(
      * 
* * repeated string file_pattern = 1; + * * @param values The filePattern to add. * @return This builder for chaining. */ - public Builder addAllFilePattern( - java.lang.Iterable values) { + public Builder addAllFilePattern(java.lang.Iterable values) { ensureFilePatternIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, filePattern_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, filePattern_); bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Patterns to identify a set of files for this fileset.
      *
@@ -860,16 +926,19 @@ public Builder addAllFilePattern(
      * 
* * repeated string file_pattern = 1; + * * @return This builder for chaining. */ public Builder clearFilePattern() { - filePattern_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001);; + filePattern_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; onChanged(); return this; } /** + * + * *
      * Patterns to identify a set of files for this fileset.
      *
@@ -894,12 +963,14 @@ public Builder clearFilePattern() {
      * 
* * 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(); } + public Builder addFilePatternBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureFilePatternIsMutable(); filePattern_.add(value); @@ -910,18 +981,20 @@ public Builder addFilePatternBytes( 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); fileType_ = s; return s; @@ -930,20 +1003,21 @@ public java.lang.String getFileType() { } } /** + * + * *
      * File type in MIME format, for example, `text/plain`.
      * 
* * string file_type = 2; + * * @return The bytes for fileType. */ - public com.google.protobuf.ByteString - getFileTypeBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); fileType_ = b; return b; } else { @@ -951,28 +1025,35 @@ public java.lang.String getFileType() { } } /** + * + * *
      * 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(); } + 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() { @@ -982,26 +1063,30 @@ public Builder clearFileType() { 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(); } + public Builder setFileTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); fileType_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1011,12 +1096,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@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(); } @@ -1025,27 +1110,27 @@ public static com.google.cloud.datacatalog.v1.StorageProperties getDefaultInstan 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(); - } - }; + 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; @@ -1060,6 +1145,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datacatalog.v1.StorageProperties getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 87% rename from owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/StoragePropertiesOrBuilder.java rename to java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/StoragePropertiesOrBuilder.java index 880c75d04200..8d7df9a38f34 100644 --- a/owl-bot-staging/java-datacatalog/v1/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 @@ -1,13 +1,31 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datacatalog/v1/data_source.proto package com.google.cloud.datacatalog.v1; -public interface StoragePropertiesOrBuilder extends +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.
    *
@@ -32,11 +50,13 @@ public interface StoragePropertiesOrBuilder extends
    * 
* * repeated string file_pattern = 1; + * * @return A list containing the filePattern. */ - java.util.List - getFilePatternList(); + java.util.List getFilePatternList(); /** + * + * *
    * Patterns to identify a set of files for this fileset.
    *
@@ -61,10 +81,13 @@ public interface StoragePropertiesOrBuilder extends
    * 
* * repeated string file_pattern = 1; + * * @return The count of filePattern. */ int getFilePatternCount(); /** + * + * *
    * Patterns to identify a set of files for this fileset.
    *
@@ -89,11 +112,14 @@ public interface StoragePropertiesOrBuilder extends
    * 
* * 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.
    *
@@ -118,29 +144,34 @@ public interface StoragePropertiesOrBuilder extends
    * 
* * 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); + 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(); + 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 new file mode 100644 index 000000000000..0bf4e99477a8 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SystemTimestamps.java @@ -0,0 +1,1338 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/timestamps.proto + +package com.google.cloud.datacatalog.v1; + +/** + * + * + *
+ * Timestamps associated with this resource in a particular system.
+ * 
+ * + * Protobuf type {@code google.cloud.datacatalog.v1.SystemTimestamps} + */ +public final class SystemTimestamps extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.SystemTimestamps) + SystemTimestampsOrBuilder { + private static final long serialVersionUID = 0L; + // Use SystemTimestamps.newBuilder() to construct. + private SystemTimestamps(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SystemTimestamps() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new 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.GeneratedMessageV3.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); + } + + 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 createTime_ != null; + } + /** + * + * + *
+   * 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 updateTime_ != null; + } + /** + * + * + *
+   * 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 expireTime_ != null; + } + /** + * + * + *
+   * 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 (createTime_ != null) { + output.writeMessage(1, getCreateTime()); + } + if (updateTime_ != null) { + output.writeMessage(2, getUpdateTime()); + } + if (expireTime_ != null) { + output.writeMessage(3, getExpireTime()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (createTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCreateTime()); + } + if (updateTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateTime()); + } + if (expireTime_ != null) { + 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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + 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_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.expireTime_ = expireTimeBuilder_ == null ? expireTime_ : expireTimeBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getExpireTimeFieldBuilder().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.SingleFieldBuilderV3< + 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); + } + 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 getCreateTimeFieldBuilder().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.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + /** + * + * + *
+     * 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); + } + 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 getUpdateTimeFieldBuilder().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.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private com.google.protobuf.Timestamp expireTime_; + private com.google.protobuf.SingleFieldBuilderV3< + 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); + } + 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 getExpireTimeFieldBuilder().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.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getExpireTimeFieldBuilder() { + if (expireTimeBuilder_ == null) { + expireTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getExpireTime(), getParentForChildren(), isClean()); + expireTime_ = null; + } + return expireTimeBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..b6b83410bee7 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SystemTimestampsOrBuilder.java @@ -0,0 +1,157 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/timestamps.proto + +package com.google.cloud.datacatalog.v1; + +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 new file mode 100644 index 000000000000..8d5cd97ad36f --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TableSourceType.java @@ -0,0 +1,200 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/table_spec.proto + +package com.google.cloud.datacatalog.v1; + +/** + * + * + *
+ * Table source type.
+ * 
+ * + * Protobuf enum {@code google.cloud.datacatalog.v1.TableSourceType} + */ +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), + ; + + /** + * + * + *
+   * 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 final 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 new file mode 100644 index 000000000000..0aa92b72cb8d --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TableSpec.java @@ -0,0 +1,679 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/table_spec.proto + +package com.google.cloud.datacatalog.v1; + +/** + * + * + *
+ * Normal BigQuery table specification.
+ * 
+ * + * Protobuf type {@code google.cloud.datacatalog.v1.TableSpec} + */ +public final class TableSpec extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.TableSpec) + TableSpecOrBuilder { + private static final long serialVersionUID = 0L; + // Use TableSpec.newBuilder() to construct. + private TableSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TableSpec() { + groupedEntry_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TableSpec(); + } + + 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(groupedEntry_)) { + com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(groupedEntry_)) { + size += com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..f5620d0fff9b --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TableSpecOrBuilder.java @@ -0,0 +1,66 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/table_spec.proto + +package com.google.cloud.datacatalog.v1; + +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 new file mode 100644 index 000000000000..c23b7acd882f --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TableSpecOuterClass.java @@ -0,0 +1,132 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/table_spec.proto + +package com.google.cloud.datacatalog.v1; + +public final class TableSpecOuterClass { + private 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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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\"\351\001\n\021BigQueryTableSpec\022M\n" + + "\021table_source_type\030\001 \001(\0162,.google.cloud." + + "datacatalog.v1.TableSourceTypeB\004\342A\001\003\022:\n\t" + + "view_spec\030\002 \001(\0132%.google.cloud.datacatal" + + "og.v1.ViewSpecH\000\022<\n\ntable_spec\030\003 \001(\0132&.g" + + "oogle.cloud.datacatalog.v1.TableSpecH\000B\013" + + "\n\ttype_spec\"$\n\010ViewSpec\022\030\n\nview_query\030\001 " + + "\001(\tB\004\342A\001\003\"M\n\tTableSpec\022@\n\rgrouped_entry\030" + + "\001 \001(\tB)\342A\001\003\372A\"\n datacatalog.googleapis.c" + + "om/Entry\"\261\001\n\027BigQueryDateShardedSpec\022:\n\007" + + "dataset\030\001 \001(\tB)\342A\001\003\372A\"\n datacatalog.goog" + + "leapis.com/Entry\022\032\n\014table_prefix\030\002 \001(\tB\004" + + "\342A\001\003\022\031\n\013shard_count\030\003 \001(\003B\004\342A\001\003\022#\n\025lates" + + "t_shard_resource\030\004 \001(\tB\004\342A\001\003*{\n\017TableSou" + + "rceType\022!\n\035TABLE_SOURCE_TYPE_UNSPECIFIED" + + "\020\000\022\021\n\rBIGQUERY_VIEW\020\002\022\022\n\016BIGQUERY_TABLE\020" + + "\005\022\036\n\032BIGQUERY_MATERIALIZED_VIEW\020\007B\306\001\n\037co" + + "m.google.cloud.datacatalog.v1P\001ZAcloud.g" + + "oogle.com/go/datacatalog/apiv1/datacatal" + + "ogpb;datacatalogpb\370\001\001\252\002\033Google.Cloud.Dat" + + "aCatalog.V1\312\002\033Google\\Cloud\\DataCatalog\\V" + + "1\352\002\036Google::Cloud::DataCatalog::V1b\006prot" + + "o3" + }; + 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().getMessageTypes().get(0); + internal_static_google_cloud_datacatalog_v1_BigQueryTableSpec_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.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().getMessageTypes().get(1); + internal_static_google_cloud_datacatalog_v1_ViewSpec_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datacatalog_v1_ViewSpec_descriptor, + new java.lang.String[] { + "ViewQuery", + }); + internal_static_google_cloud_datacatalog_v1_TableSpec_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_datacatalog_v1_TableSpec_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datacatalog_v1_TableSpec_descriptor, + new java.lang.String[] { + "GroupedEntry", + }); + internal_static_google_cloud_datacatalog_v1_BigQueryDateShardedSpec_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_datacatalog_v1_BigQueryDateShardedSpec_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datacatalog_v1_BigQueryDateShardedSpec_descriptor, + new java.lang.String[] { + "Dataset", "TablePrefix", "ShardCount", "LatestShardResource", + }); + 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); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.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/Tag.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/Tag.java new file mode 100644 index 000000000000..1c2a67ecd99c --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/Tag.java @@ -0,0 +1,1815 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/tags.proto + +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} + */ +public final class Tag extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.Tag) + TagOrBuilder { + private static final long serialVersionUID = 0L; + // Use Tag.newBuilder() to construct. + private Tag(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Tag() { + name_ = ""; + template_ = ""; + templateDisplayName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Tag(); + } + + 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.MapField internalGetMapField(int number) { + switch (number) { + case 3: + return internalGetFields(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.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_ = ""; + /** + * + * + *
+   * 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; + * + * @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 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; + * + * @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); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(template_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, template_); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetFields(), FieldsDefaultEntryHolder.defaultEntry, 3); + if (scopeCase_ == 4) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, scope_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(templateDisplayName_)) { + com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(template_)) { + size += com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.computeStringSize(4, scope_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(templateDisplayName_)) { + size += com.google.protobuf.GeneratedMessageV3.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.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 (!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.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.MapField internalGetMapField(int number) { + switch (number) { + case 3: + return internalGetFields(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + switch (number) { + case 3: + return internalGetMutableFields(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.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(); + result.fields_.makeImmutable(); + } + } + + private void buildPartialOneofs(com.google.cloud.datacatalog.v1.Tag result) { + result.scopeCase_ = scopeCase_; + result.scope_ = this.scope_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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; + 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() + .getMutableMap() + .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_ = ""; + /** + * + * + *
+     * 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; + * + * @return The name. + */ + public java.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 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; + * + * @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 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; + * + * @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 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; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * 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; + * + * @param value The 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 com.google.protobuf.MapField + fields_; + + private com.google.protobuf.MapField + internalGetFields() { + if (fields_ == null) { + return com.google.protobuf.MapField.emptyMapField(FieldsDefaultEntryHolder.defaultEntry); + } + return fields_; + } + + private com.google.protobuf.MapField + internalGetMutableFields() { + if (fields_ == null) { + fields_ = com.google.protobuf.MapField.newMapField(FieldsDefaultEntryHolder.defaultEntry); + } + if (!fields_.isMutable()) { + fields_ = fields_.copy(); + } + bitField0_ |= 0x00000010; + onChanged(); + 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 Builder clearFields() { + bitField0_ = (bitField0_ & ~0x00000010); + internalGetMutableFields().getMutableMap().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().getMutableMap().remove(key); + return this; + } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map + getMutableFields() { + bitField0_ |= 0x00000010; + return internalGetMutableFields().getMutableMap(); + } + /** + * + * + *
+     * 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().getMutableMap().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) { + internalGetMutableFields().getMutableMap().putAll(values); + bitField0_ |= 0x00000010; + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..e8b0ccdc2e52 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TagField.java @@ -0,0 +1,2865 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/tags.proto + +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} + */ +public final class TagField extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.TagField) + TagFieldOrBuilder { + private static final long serialVersionUID = 0L; + // Use TagField.newBuilder() to construct. + private TagField(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TagField() { + displayName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TagField(); + } + + 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.GeneratedMessageV3.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.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.TagField.EnumValue) + EnumValueOrBuilder { + private static final long serialVersionUID = 0L; + // Use EnumValue.newBuilder() to construct. + private EnumValue(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private EnumValue() { + displayName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new EnumValue(); + } + + 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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.GeneratedMessageV3.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, displayName_); + } + if (kindCase_ == 2) { + output.writeDouble(2, (double) ((java.lang.Double) kind_)); + } + if (kindCase_ == 3) { + com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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(getTimestampValueFieldBuilder().getBuilder(), extensionRegistry); + kindCase_ = 5; + break; + } // case 42 + case 50: + { + input.readMessage(getEnumValueFieldBuilder().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.SingleFieldBuilderV3< + 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 getTimestampValueFieldBuilder().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.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getTimestampValueFieldBuilder() { + if (timestampValueBuilder_ == null) { + if (!(kindCase_ == 5)) { + kind_ = com.google.protobuf.Timestamp.getDefaultInstance(); + } + timestampValueBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + 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.SingleFieldBuilderV3< + 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 getEnumValueFieldBuilder().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.SingleFieldBuilderV3< + com.google.cloud.datacatalog.v1.TagField.EnumValue, + com.google.cloud.datacatalog.v1.TagField.EnumValue.Builder, + com.google.cloud.datacatalog.v1.TagField.EnumValueOrBuilder> + getEnumValueFieldBuilder() { + if (enumValueBuilder_ == null) { + if (!(kindCase_ == 6)) { + kind_ = com.google.cloud.datacatalog.v1.TagField.EnumValue.getDefaultInstance(); + } + enumValueBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + 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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..15ad6570d7de --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TagFieldOrBuilder.java @@ -0,0 +1,289 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/tags.proto + +package com.google.cloud.datacatalog.v1; + +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/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TagName.java rename to java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TagName.java 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 new file mode 100644 index 000000000000..a1de0e94bc7c --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TagOrBuilder.java @@ -0,0 +1,255 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/tags.proto + +package com.google.cloud.datacatalog.v1; + +public interface TagOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.Tag) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * 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; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * 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; + * + * @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); + + 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 new file mode 100644 index 000000000000..2ba61615d7d6 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TagTemplate.java @@ -0,0 +1,1475 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/tags.proto + +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} + */ +public final class TagTemplate extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.TagTemplate) + TagTemplateOrBuilder { + private static final long serialVersionUID = 0L; + // Use TagTemplate.newBuilder() to construct. + private TagTemplate(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TagTemplate() { + name_ = ""; + displayName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TagTemplate(); + } + + 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.MapField internalGetMapField(int number) { + switch (number) { + case 3: + return internalGetFields(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.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); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * 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; + * + * @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 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; + * + * @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.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); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetFields(), FieldsDefaultEntryHolder.defaultEntry, 3); + if (isPubliclyReadable_ != false) { + output.writeBool(5, isPubliclyReadable_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); + } + 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_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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 (!getUnknownFields().equals(other.getUnknownFields())) return false; + 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 = (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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.MapField internalGetMapField(int number) { + switch (number) { + case 3: + return internalGetFields(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + switch (number) { + case 3: + return internalGetMutableFields(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + displayName_ = ""; + isPubliclyReadable_ = false; + internalGetMutableFields().clear(); + 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(); + result.fields_.makeImmutable(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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() + .getMutableMap() + .put(fields__.getKey(), fields__.getValue()); + bitField0_ |= 0x00000008; + break; + } // case 26 + case 40: + { + isPubliclyReadable_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 40 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * 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; + * + * @return The name. + */ + public java.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 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; + * + * @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 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; + * + * @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 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; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * 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; + * + * @param value The 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.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.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.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 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_; + } + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.datacatalog.v1.TagTemplateField> + internalGetMutableFields() { + if (fields_ == null) { + fields_ = com.google.protobuf.MapField.newMapField(FieldsDefaultEntryHolder.defaultEntry); + } + if (!fields_.isMutable()) { + fields_ = fields_.copy(); + } + bitField0_ |= 0x00000008; + onChanged(); + 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 Builder clearFields() { + bitField0_ = (bitField0_ & ~0x00000008); + internalGetMutableFields().getMutableMap().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().getMutableMap().remove(key); + return this; + } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map + getMutableFields() { + bitField0_ |= 0x00000008; + return internalGetMutableFields().getMutableMap(); + } + /** + * + * + *
+     * 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().getMutableMap().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) { + internalGetMutableFields().getMutableMap().putAll(values); + bitField0_ |= 0x00000008; + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..aae1064e8fac --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TagTemplateField.java @@ -0,0 +1,1576 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/tags.proto + +package com.google.cloud.datacatalog.v1; + +/** + * + * + *
+ * The template for an individual field within a tag template.
+ * 
+ * + * Protobuf type {@code google.cloud.datacatalog.v1.TagTemplateField} + */ +public final class TagTemplateField extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.TagTemplateField) + TagTemplateFieldOrBuilder { + private static final long serialVersionUID = 0L; + // Use TagTemplateField.newBuilder() to construct. + private TagTemplateField(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TagTemplateField() { + name_ = ""; + displayName_ = ""; + description_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TagTemplateField(); + } + + 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.GeneratedMessageV3.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); + } + + public static final int NAME_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Output only. 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) = OUTPUT_ONLY]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The resource name of the 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) = 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.
+   *
+   * 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 type_ != null; + } + /** + * + * + *
+   * 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.GeneratedMessageV3.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, displayName_); + } + if (type_ != null) { + output.writeMessage(2, getType()); + } + if (isRequired_ != false) { + output.writeBool(3, isRequired_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, description_); + } + if (order_ != 0) { + output.writeInt32(5, order_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, displayName_); + } + if (type_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getType()); + } + if (isRequired_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, isRequired_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, description_); + } + if (order_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, order_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @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_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.type_ = typeBuilder_ == null ? type_ : typeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.isRequired_ = isRequired_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.description_ = description_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.order_ = order_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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(getTypeFieldBuilder().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. 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) = OUTPUT_ONLY]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The resource name of the 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) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The resource name of the 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) = OUTPUT_ONLY]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The resource name of the 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) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The resource name of the 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) = 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.
+     *
+     * 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.SingleFieldBuilderV3< + 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); + } + 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 getTypeFieldBuilder().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.SingleFieldBuilderV3< + com.google.cloud.datacatalog.v1.FieldType, + com.google.cloud.datacatalog.v1.FieldType.Builder, + com.google.cloud.datacatalog.v1.FieldTypeOrBuilder> + getTypeFieldBuilder() { + if (typeBuilder_ == null) { + typeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + 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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TagTemplateFieldEnumValueName.java rename to java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TagTemplateFieldEnumValueName.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TagTemplateFieldName.java rename to java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TagTemplateFieldName.java 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 new file mode 100644 index 000000000000..7f11e9290393 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TagTemplateFieldOrBuilder.java @@ -0,0 +1,200 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/tags.proto + +package com.google.cloud.datacatalog.v1; + +public interface TagTemplateFieldOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.TagTemplateField) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. 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) = OUTPUT_ONLY]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Output only. 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) = OUTPUT_ONLY]; + * + * @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/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TagTemplateName.java rename to java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TagTemplateName.java 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 new file mode 100644 index 000000000000..034b66dae2a7 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TagTemplateOrBuilder.java @@ -0,0 +1,225 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/tags.proto + +package com.google.cloud.datacatalog.v1; + +public interface TagTemplateOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.TagTemplate) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * 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; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * 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; + * + * @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.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); +} 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 new file mode 100644 index 000000000000..31bc9383925e --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TaggedEntry.java @@ -0,0 +1,1931 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/dump_content.proto + +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} + */ +public final class TaggedEntry extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.TaggedEntry) + TaggedEntryOrBuilder { + private static final long serialVersionUID = 0L; + // Use TaggedEntry.newBuilder() to construct. + private TaggedEntry(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TaggedEntry() { + presentTags_ = java.util.Collections.emptyList(); + absentTags_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TaggedEntry(); + } + + 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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPresentTagsFieldBuilder() + : 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.GeneratedMessageV3.alwaysUseFieldBuilders + ? getAbsentTagsFieldBuilder() + : 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(getV1EntryFieldBuilder().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.SingleFieldBuilderV3< + 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 getV1EntryFieldBuilder().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.SingleFieldBuilderV3< + com.google.cloud.datacatalog.v1.Entry, + com.google.cloud.datacatalog.v1.Entry.Builder, + com.google.cloud.datacatalog.v1.EntryOrBuilder> + getV1EntryFieldBuilder() { + if (v1EntryBuilder_ == null) { + if (!(entryCase_ == 1)) { + entry_ = com.google.cloud.datacatalog.v1.Entry.getDefaultInstance(); + } + v1EntryBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + 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.RepeatedFieldBuilderV3< + 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 getPresentTagsFieldBuilder().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 getPresentTagsFieldBuilder() + .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 getPresentTagsFieldBuilder() + .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 getPresentTagsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datacatalog.v1.Tag, + com.google.cloud.datacatalog.v1.Tag.Builder, + com.google.cloud.datacatalog.v1.TagOrBuilder> + getPresentTagsFieldBuilder() { + if (presentTagsBuilder_ == null) { + presentTagsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + 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.RepeatedFieldBuilderV3< + 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 getAbsentTagsFieldBuilder().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 getAbsentTagsFieldBuilder() + .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 getAbsentTagsFieldBuilder() + .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 getAbsentTagsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datacatalog.v1.Tag, + com.google.cloud.datacatalog.v1.Tag.Builder, + com.google.cloud.datacatalog.v1.TagOrBuilder> + getAbsentTagsFieldBuilder() { + if (absentTagsBuilder_ == null) { + absentTagsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + 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_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..d3986a52a678 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TaggedEntryOrBuilder.java @@ -0,0 +1,196 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/dump_content.proto + +package com.google.cloud.datacatalog.v1; + +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 new file mode 100644 index 000000000000..54ff514c81d2 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/Tags.java @@ -0,0 +1,246 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/tags.proto + +package com.google.cloud.datacatalog.v1; + +public final class Tags { + private 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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.pro" + + "to\"\211\003\n\003Tag\022\014\n\004name\030\001 \001(\t\022\026\n\010template\030\002 \001" + + "(\tB\004\342A\001\002\022#\n\025template_display_name\030\005 \001(\tB" + + "\004\342A\001\003\022\020\n\006column\030\004 \001(\tH\000\022B\n\006fields\030\003 \003(\0132" + + ",.google.cloud.datacatalog.v1.Tag.Fields" + + "EntryB\004\342A\001\002\032T\n\013FieldsEntry\022\013\n\003key\030\001 \001(\t\022" + + "4\n\005value\030\002 \001(\0132%.google.cloud.datacatalo" + + "g.v1.TagField:\0028\001:\201\001\352A~\n\036datacatalog.goo" + + "gleapis.com/Tag\022\\projects/{project}/loca" + + "tions/{location}/entryGroups/{entry_grou" + + "p}/entries/{entry}/tags/{tag}B\007\n\005scope\"\304" + + "\002\n\010TagField\022\032\n\014display_name\030\001 \001(\tB\004\342A\001\003\022" + + "\026\n\014double_value\030\002 \001(\001H\000\022\026\n\014string_value\030" + + "\003 \001(\tH\000\022\024\n\nbool_value\030\004 \001(\010H\000\0225\n\017timesta" + + "mp_value\030\005 \001(\0132\032.google.protobuf.Timesta" + + "mpH\000\022E\n\nenum_value\030\006 \001(\0132/.google.cloud." + + "datacatalog.v1.TagField.EnumValueH\000\022\030\n\016r" + + "ichtext_value\030\010 \001(\tH\000\022\023\n\005order\030\007 \001(\005B\004\342A" + + "\001\003\032!\n\tEnumValue\022\024\n\014display_name\030\001 \001(\tB\006\n" + + "\004kind\"\353\002\n\013TagTemplate\022\014\n\004name\030\001 \001(\t\022\024\n\014d" + + "isplay_name\030\002 \001(\t\022\034\n\024is_publicly_readabl" + + "e\030\005 \001(\010\022J\n\006fields\030\003 \003(\01324.google.cloud.d" + + "atacatalog.v1.TagTemplate.FieldsEntryB\004\342" + + "A\001\002\032\\\n\013FieldsEntry\022\013\n\003key\030\001 \001(\t\022<\n\005value" + + "\030\002 \001(\0132-.google.cloud.datacatalog.v1.Tag" + + "TemplateField:\0028\001:p\352Am\n&datacatalog.goog" + + "leapis.com/TagTemplate\022Cprojects/{projec" + + "t}/locations/{location}/tagTemplates/{ta" + + "g_template}\"\271\002\n\020TagTemplateField\022\022\n\004name" + + "\030\006 \001(\tB\004\342A\001\003\022\024\n\014display_name\030\001 \001(\t\022:\n\004ty" + + "pe\030\002 \001(\0132&.google.cloud.datacatalog.v1.F" + + "ieldTypeB\004\342A\001\002\022\023\n\013is_required\030\003 \001(\010\022\023\n\013d" + + "escription\030\004 \001(\t\022\r\n\005order\030\005 \001(\005:\205\001\352A\201\001\n+" + + "datacatalog.googleapis.com/TagTemplateFi" + + "eld\022Rprojects/{project}/locations/{locat" + + "ion}/tagTemplates/{tag_template}/fields/" + + "{field}\"\247\003\n\tFieldType\022N\n\016primitive_type\030" + + "\001 \001(\01624.google.cloud.datacatalog.v1.Fiel" + + "dType.PrimitiveTypeH\000\022D\n\tenum_type\030\002 \001(\013" + + "2/.google.cloud.datacatalog.v1.FieldType" + + ".EnumTypeH\000\032\206\001\n\010EnumType\022Q\n\016allowed_valu" + + "es\030\001 \003(\01329.google.cloud.datacatalog.v1.F" + + "ieldType.EnumType.EnumValue\032\'\n\tEnumValue" + + "\022\032\n\014display_name\030\001 \001(\tB\004\342A\001\002\"n\n\rPrimitiv" + + "eType\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\tTIMES" + + "TAMP\020\004\022\014\n\010RICHTEXT\020\005B\013\n\ttype_declB\306\001\n\037co" + + "m.google.cloud.datacatalog.v1P\001ZAcloud.g" + + "oogle.com/go/datacatalog/apiv1/datacatal" + + "ogpb;datacatalogpb\370\001\001\252\002\033Google.Cloud.Dat" + + "aCatalog.V1\312\002\033Google\\Cloud\\DataCatalog\\V" + + "1\352\002\036Google::Cloud::DataCatalog::V1b\006prot" + + "o3" + }; + 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().getMessageTypes().get(0); + internal_static_google_cloud_datacatalog_v1_Tag_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datacatalog_v1_Tag_descriptor, + new java.lang.String[] { + "Name", "Template", "TemplateDisplayName", "Column", "Fields", "Scope", + }); + internal_static_google_cloud_datacatalog_v1_Tag_FieldsEntry_descriptor = + internal_static_google_cloud_datacatalog_v1_Tag_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_datacatalog_v1_Tag_FieldsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.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().getMessageTypes().get(1); + internal_static_google_cloud_datacatalog_v1_TagField_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.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.getNestedTypes().get(0); + internal_static_google_cloud_datacatalog_v1_TagField_EnumValue_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datacatalog_v1_TagField_EnumValue_descriptor, + new java.lang.String[] { + "DisplayName", + }); + internal_static_google_cloud_datacatalog_v1_TagTemplate_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_datacatalog_v1_TagTemplate_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datacatalog_v1_TagTemplate_descriptor, + new java.lang.String[] { + "Name", "DisplayName", "IsPubliclyReadable", "Fields", + }); + internal_static_google_cloud_datacatalog_v1_TagTemplate_FieldsEntry_descriptor = + internal_static_google_cloud_datacatalog_v1_TagTemplate_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_datacatalog_v1_TagTemplate_FieldsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.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().getMessageTypes().get(3); + internal_static_google_cloud_datacatalog_v1_TagTemplateField_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.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().getMessageTypes().get(4); + internal_static_google_cloud_datacatalog_v1_FieldType_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.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.getNestedTypes().get(0); + internal_static_google_cloud_datacatalog_v1_FieldType_EnumType_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.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 + .getNestedTypes() + .get(0); + internal_static_google_cloud_datacatalog_v1_FieldType_EnumType_EnumValue_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datacatalog_v1_FieldType_EnumType_EnumValue_descriptor, + new java.lang.String[] { + "DisplayName", + }); + 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); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-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 new file mode 100644 index 000000000000..d08e320ca0f9 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/Taxonomy.java @@ -0,0 +1,3221 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/policytagmanager.proto + +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} + */ +public final class Taxonomy extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.Taxonomy) + TaxonomyOrBuilder { + private static final long serialVersionUID = 0L; + // Use Taxonomy.newBuilder() to construct. + private Taxonomy(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Taxonomy() { + name_ = ""; + displayName_ = ""; + description_ = ""; + activatedPolicyTypes_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Taxonomy(); + } + + 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.GeneratedMessageV3.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), + ; + + /** + * + * + *
+     * 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 final 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.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.Taxonomy.Service) + ServiceOrBuilder { + private static final long serialVersionUID = 0L; + // Use Service.newBuilder() to construct. + private Service(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Service() { + name_ = 0; + identity_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Service(); + } + + 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(identity_)) { + com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(identity_)) { + size += com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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; + } + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Output only. Resource name of this taxonomy in URL format.
+   *
+   * Note: Policy tag manager generates unique taxonomy IDs.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. Resource name of this taxonomy in URL format.
+   *
+   * Note: Policy tag manager generates unique taxonomy IDs.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int 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 taxonomyTimestamps_ != null; + } + /** + * + * + *
+   * 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 java.util.List activatedPolicyTypes_; + + private static final com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.cloud.datacatalog.v1.Taxonomy.PolicyType> + activatedPolicyTypes_converter_ = + new com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.cloud.datacatalog.v1.Taxonomy.PolicyType>() { + public com.google.cloud.datacatalog.v1.Taxonomy.PolicyType convert( + java.lang.Integer 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.ListAdapter< + java.lang.Integer, 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_.get(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_.get(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 service_ != null; + } + /** + * + * + *
+   * 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.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_); + } + if (policyTagCount_ != 0) { + output.writeInt32(4, policyTagCount_); + } + if (taxonomyTimestamps_ != null) { + 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_.get(i)); + } + if (service_ != null) { + 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.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); + } + if (policyTagCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, policyTagCount_); + } + if (taxonomyTimestamps_ != null) { + 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_.get(i)); + } + size += dataSize; + if (!getActivatedPolicyTypesList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); + } + activatedPolicyTypesMemoizedSerializedSize = dataSize; + } + if (service_ != null) { + 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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @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_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + 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); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.datacatalog.v1.Taxonomy result) { + if (((bitField0_ & 0x00000020) != 0)) { + activatedPolicyTypes_ = java.util.Collections.unmodifiableList(activatedPolicyTypes_); + bitField0_ = (bitField0_ & ~0x00000020); + } + result.activatedPolicyTypes_ = activatedPolicyTypes_; + } + + 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_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.taxonomyTimestamps_ = + taxonomyTimestampsBuilder_ == null + ? taxonomyTimestamps_ + : taxonomyTimestampsBuilder_.build(); + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.service_ = serviceBuilder_ == null ? service_ : serviceBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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_; + bitField0_ = (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( + getTaxonomyTimestampsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: + { + int tmpRaw = input.readEnum(); + ensureActivatedPolicyTypesIsMutable(); + activatedPolicyTypes_.add(tmpRaw); + break; + } // case 48 + case 50: + { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while (input.getBytesUntilLimit() > 0) { + int tmpRaw = input.readEnum(); + ensureActivatedPolicyTypesIsMutable(); + activatedPolicyTypes_.add(tmpRaw); + } + input.popLimit(oldLimit); + break; + } // case 50 + case 58: + { + input.readMessage(getServiceFieldBuilder().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_ = ""; + /** + * + * + *
+     * Output only. Resource name of this taxonomy in URL format.
+     *
+     * Note: Policy tag manager generates unique taxonomy IDs.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. Resource name of this taxonomy in URL format.
+     *
+     * Note: Policy tag manager generates unique taxonomy IDs.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. Resource name of this taxonomy in URL format.
+     *
+     * Note: Policy tag manager generates unique taxonomy IDs.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Resource name of this taxonomy in URL format.
+     *
+     * Note: Policy tag manager generates unique taxonomy IDs.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Resource name of this taxonomy in URL format.
+     *
+     * Note: Policy tag manager generates unique taxonomy IDs.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object 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.SingleFieldBuilderV3< + 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); + } + 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 getTaxonomyTimestampsFieldBuilder().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.SingleFieldBuilderV3< + com.google.cloud.datacatalog.v1.SystemTimestamps, + com.google.cloud.datacatalog.v1.SystemTimestamps.Builder, + com.google.cloud.datacatalog.v1.SystemTimestampsOrBuilder> + getTaxonomyTimestampsFieldBuilder() { + if (taxonomyTimestampsBuilder_ == null) { + taxonomyTimestampsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + 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 java.util.List activatedPolicyTypes_ = + java.util.Collections.emptyList(); + + private void ensureActivatedPolicyTypesIsMutable() { + if (!((bitField0_ & 0x00000020) != 0)) { + activatedPolicyTypes_ = new java.util.ArrayList(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.ListAdapter< + java.lang.Integer, 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_.get(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_.set(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_.add(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_.add(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_ = java.util.Collections.emptyList(); + 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() { + return java.util.Collections.unmodifiableList(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_.get(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_.set(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_.add(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_.add(value); + } + onChanged(); + return this; + } + + private com.google.cloud.datacatalog.v1.Taxonomy.Service service_; + private com.google.protobuf.SingleFieldBuilderV3< + 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); + } + 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 getServiceFieldBuilder().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.SingleFieldBuilderV3< + com.google.cloud.datacatalog.v1.Taxonomy.Service, + com.google.cloud.datacatalog.v1.Taxonomy.Service.Builder, + com.google.cloud.datacatalog.v1.Taxonomy.ServiceOrBuilder> + getServiceFieldBuilder() { + if (serviceBuilder_ == null) { + serviceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + 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_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TaxonomyName.java rename to java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TaxonomyName.java 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 new file mode 100644 index 000000000000..af1b1c20a823 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TaxonomyOrBuilder.java @@ -0,0 +1,303 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/policytagmanager.proto + +package com.google.cloud.datacatalog.v1; + +public interface TaxonomyOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.Taxonomy) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. Resource name of this taxonomy in URL format.
+   *
+   * Note: Policy tag manager generates unique taxonomy IDs.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Output only. Resource name of this taxonomy in URL format.
+   *
+   * Note: Policy tag manager generates unique taxonomy IDs.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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 new file mode 100644 index 000000000000..c53dbd8ecd29 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/Timestamps.java @@ -0,0 +1,83 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/timestamps.proto + +package com.google.cloud.datacatalog.v1; + +public final class Timestamps { + private 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.GeneratedMessageV3.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\"\253\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\0225\n\013expire_time\030\003 \001(" + + "\0132\032.google.protobuf.TimestampB\004\342A\001\003B\306\001\n\037" + + "com.google.cloud.datacatalog.v1P\001ZAcloud" + + ".google.com/go/datacatalog/apiv1/datacat" + + "alogpb;datacatalogpb\370\001\001\252\002\033Google.Cloud.D" + + "ataCatalog.V1\312\002\033Google\\Cloud\\DataCatalog" + + "\\V1\352\002\036Google::Cloud::DataCatalog::V1b\006pr" + + "oto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_datacatalog_v1_SystemTimestamps_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_datacatalog_v1_SystemTimestamps_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datacatalog_v1_SystemTimestamps_descriptor, + new java.lang.String[] { + "CreateTime", "UpdateTime", "ExpireTime", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-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 new file mode 100644 index 000000000000..45464c76ce52 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UnstarEntryRequest.java @@ -0,0 +1,640 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/datacatalog.proto + +package com.google.cloud.datacatalog.v1; + +/** + * + * + *
+ * Request message for
+ * [UnstarEntry][google.cloud.datacatalog.v1.DataCatalog.UnstarEntry].
+ * 
+ * + * Protobuf type {@code google.cloud.datacatalog.v1.UnstarEntryRequest} + */ +public final class UnstarEntryRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.UnstarEntryRequest) + UnstarEntryRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UnstarEntryRequest.newBuilder() to construct. + private UnstarEntryRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UnstarEntryRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UnstarEntryRequest(); + } + + 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.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 clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..dee7d031bc76 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UnstarEntryRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/datacatalog.proto + +package com.google.cloud.datacatalog.v1; + +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 new file mode 100644 index 000000000000..e8908a016450 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UnstarEntryResponse.java @@ -0,0 +1,435 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/datacatalog.proto + +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} + */ +public final class UnstarEntryResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.UnstarEntryResponse) + UnstarEntryResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use UnstarEntryResponse.newBuilder() to construct. + private UnstarEntryResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UnstarEntryResponse() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new 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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.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 clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..ca9c88ec7590 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UnstarEntryResponseOrBuilder.java @@ -0,0 +1,24 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/datacatalog.proto + +package com.google.cloud.datacatalog.v1; + +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 new file mode 100644 index 000000000000..0f829f1dec03 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UpdateEntryGroupRequest.java @@ -0,0 +1,1041 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/datacatalog.proto + +package com.google.cloud.datacatalog.v1; + +/** + * + * + *
+ * Request message for
+ * [UpdateEntryGroup][google.cloud.datacatalog.v1.DataCatalog.UpdateEntryGroup].
+ * 
+ * + * Protobuf type {@code google.cloud.datacatalog.v1.UpdateEntryGroupRequest} + */ +public final class UpdateEntryGroupRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.UpdateEntryGroupRequest) + UpdateEntryGroupRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateEntryGroupRequest.newBuilder() to construct. + private UpdateEntryGroupRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateEntryGroupRequest() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new 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.GeneratedMessageV3.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); + } + + 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 entryGroup_ != null; + } + /** + * + * + *
+   * 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 updateMask_ != null; + } + /** + * + * + *
+   * 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 (entryGroup_ != null) { + output.writeMessage(1, getEntryGroup()); + } + if (updateMask_ != null) { + output.writeMessage(2, getUpdateMask()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (entryGroup_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getEntryGroup()); + } + if (updateMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @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_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.entryGroup_ = entryGroupBuilder_ == null ? entryGroup_ : entryGroupBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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(getEntryGroupFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.cloud.datacatalog.v1.EntryGroup entryGroup_; + private com.google.protobuf.SingleFieldBuilderV3< + 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); + } + 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 getEntryGroupFieldBuilder().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.SingleFieldBuilderV3< + com.google.cloud.datacatalog.v1.EntryGroup, + com.google.cloud.datacatalog.v1.EntryGroup.Builder, + com.google.cloud.datacatalog.v1.EntryGroupOrBuilder> + getEntryGroupFieldBuilder() { + if (entryGroupBuilder_ == null) { + entryGroupBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + 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.SingleFieldBuilderV3< + 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); + } + 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 getUpdateMaskFieldBuilder().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.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..5ac738d615c6 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UpdateEntryGroupRequestOrBuilder.java @@ -0,0 +1,113 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/datacatalog.proto + +package com.google.cloud.datacatalog.v1; + +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 new file mode 100644 index 000000000000..45708fa4a6b7 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UpdateEntryRequest.java @@ -0,0 +1,1307 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/datacatalog.proto + +package com.google.cloud.datacatalog.v1; + +/** + * + * + *
+ * Request message for
+ * [UpdateEntry][google.cloud.datacatalog.v1.DataCatalog.UpdateEntry].
+ * 
+ * + * Protobuf type {@code google.cloud.datacatalog.v1.UpdateEntryRequest} + */ +public final class UpdateEntryRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.UpdateEntryRequest) + UpdateEntryRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateEntryRequest.newBuilder() to construct. + private UpdateEntryRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateEntryRequest() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new 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.GeneratedMessageV3.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); + } + + 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 entry_ != null; + } + /** + * + * + *
+   * 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 updateMask_ != null; + } + /** + * + * + *
+   * 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 (entry_ != null) { + output.writeMessage(1, getEntry()); + } + if (updateMask_ != null) { + output.writeMessage(2, getUpdateMask()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (entry_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getEntry()); + } + if (updateMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @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_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.entry_ = entryBuilder_ == null ? entry_ : entryBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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(getEntryFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.cloud.datacatalog.v1.Entry entry_; + private com.google.protobuf.SingleFieldBuilderV3< + 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); + } + 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 getEntryFieldBuilder().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.SingleFieldBuilderV3< + com.google.cloud.datacatalog.v1.Entry, + com.google.cloud.datacatalog.v1.Entry.Builder, + com.google.cloud.datacatalog.v1.EntryOrBuilder> + getEntryFieldBuilder() { + if (entryBuilder_ == null) { + entryBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + 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.SingleFieldBuilderV3< + 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); + } + 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 getUpdateMaskFieldBuilder().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.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..3089c276b616 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UpdateEntryRequestOrBuilder.java @@ -0,0 +1,182 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/datacatalog.proto + +package com.google.cloud.datacatalog.v1; + +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 new file mode 100644 index 000000000000..27c02216431e --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UpdatePolicyTagRequest.java @@ -0,0 +1,1040 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/policytagmanager.proto + +package com.google.cloud.datacatalog.v1; + +/** + * + * + *
+ * Request message for
+ * [UpdatePolicyTag][google.cloud.datacatalog.v1.PolicyTagManager.UpdatePolicyTag].
+ * 
+ * + * Protobuf type {@code google.cloud.datacatalog.v1.UpdatePolicyTagRequest} + */ +public final class UpdatePolicyTagRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.UpdatePolicyTagRequest) + UpdatePolicyTagRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdatePolicyTagRequest.newBuilder() to construct. + private UpdatePolicyTagRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdatePolicyTagRequest() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new 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.GeneratedMessageV3.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); + } + + 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 policyTag_ != null; + } + /** + * + * + *
+   * 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 updateMask_ != null; + } + /** + * + * + *
+   * 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 (policyTag_ != null) { + output.writeMessage(1, getPolicyTag()); + } + if (updateMask_ != null) { + output.writeMessage(2, getUpdateMask()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (policyTag_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getPolicyTag()); + } + if (updateMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @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_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.policyTag_ = policyTagBuilder_ == null ? policyTag_ : policyTagBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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(getPolicyTagFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.cloud.datacatalog.v1.PolicyTag policyTag_; + private com.google.protobuf.SingleFieldBuilderV3< + 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); + } + 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 getPolicyTagFieldBuilder().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.SingleFieldBuilderV3< + com.google.cloud.datacatalog.v1.PolicyTag, + com.google.cloud.datacatalog.v1.PolicyTag.Builder, + com.google.cloud.datacatalog.v1.PolicyTagOrBuilder> + getPolicyTagFieldBuilder() { + if (policyTagBuilder_ == null) { + policyTagBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + 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.SingleFieldBuilderV3< + 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); + } + 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 getUpdateMaskFieldBuilder().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.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..ee77eae9d954 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UpdatePolicyTagRequestOrBuilder.java @@ -0,0 +1,113 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/policytagmanager.proto + +package com.google.cloud.datacatalog.v1; + +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 new file mode 100644 index 000000000000..8dfa2e3ecbf5 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UpdateTagRequest.java @@ -0,0 +1,1031 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/datacatalog.proto + +package com.google.cloud.datacatalog.v1; + +/** + * + * + *
+ * Request message for
+ * [UpdateTag][google.cloud.datacatalog.v1.DataCatalog.UpdateTag].
+ * 
+ * + * Protobuf type {@code google.cloud.datacatalog.v1.UpdateTagRequest} + */ +public final class UpdateTagRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.UpdateTagRequest) + UpdateTagRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateTagRequest.newBuilder() to construct. + private UpdateTagRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateTagRequest() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new 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.GeneratedMessageV3.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); + } + + 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 tag_ != null; + } + /** + * + * + *
+   * 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 updateMask_ != null; + } + /** + * + * + *
+   * 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 (tag_ != null) { + output.writeMessage(1, getTag()); + } + if (updateMask_ != null) { + output.writeMessage(2, getUpdateMask()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (tag_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getTag()); + } + if (updateMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @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_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.tag_ = tagBuilder_ == null ? tag_ : tagBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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(getTagFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.cloud.datacatalog.v1.Tag tag_; + private com.google.protobuf.SingleFieldBuilderV3< + 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); + } + 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 getTagFieldBuilder().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.SingleFieldBuilderV3< + com.google.cloud.datacatalog.v1.Tag, + com.google.cloud.datacatalog.v1.Tag.Builder, + com.google.cloud.datacatalog.v1.TagOrBuilder> + getTagFieldBuilder() { + if (tagBuilder_ == null) { + tagBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + 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.SingleFieldBuilderV3< + 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); + } + 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 getUpdateMaskFieldBuilder().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.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..2cb41a4fc7b1 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UpdateTagRequestOrBuilder.java @@ -0,0 +1,113 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/datacatalog.proto + +package com.google.cloud.datacatalog.v1; + +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 new file mode 100644 index 000000000000..0b6ee9818050 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UpdateTagTemplateFieldRequest.java @@ -0,0 +1,1390 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/datacatalog.proto + +package com.google.cloud.datacatalog.v1; + +/** + * + * + *
+ * Request message for
+ * [UpdateTagTemplateField][google.cloud.datacatalog.v1.DataCatalog.UpdateTagTemplateField].
+ * 
+ * + * Protobuf type {@code google.cloud.datacatalog.v1.UpdateTagTemplateFieldRequest} + */ +public final class UpdateTagTemplateFieldRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.UpdateTagTemplateFieldRequest) + UpdateTagTemplateFieldRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateTagTemplateFieldRequest.newBuilder() to construct. + private UpdateTagTemplateFieldRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateTagTemplateFieldRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateTagTemplateFieldRequest(); + } + + 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.GeneratedMessageV3.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); + } + + 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 tagTemplateField_ != null; + } + /** + * + * + *
+   * 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 updateMask_ != null; + } + /** + * + * + *
+   * 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.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (tagTemplateField_ != null) { + output.writeMessage(2, getTagTemplateField()); + } + if (updateMask_ != null) { + 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.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (tagTemplateField_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getTagTemplateField()); + } + if (updateMask_ != null) { + 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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @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_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.tagTemplateField_ = + tagTemplateFieldBuilder_ == null ? tagTemplateField_ : tagTemplateFieldBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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( + getTagTemplateFieldFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getUpdateMaskFieldBuilder().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.SingleFieldBuilderV3< + 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); + } + 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 getTagTemplateFieldFieldBuilder().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.SingleFieldBuilderV3< + com.google.cloud.datacatalog.v1.TagTemplateField, + com.google.cloud.datacatalog.v1.TagTemplateField.Builder, + com.google.cloud.datacatalog.v1.TagTemplateFieldOrBuilder> + getTagTemplateFieldFieldBuilder() { + if (tagTemplateFieldBuilder_ == null) { + tagTemplateFieldBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + 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.SingleFieldBuilderV3< + 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); + } + 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 getUpdateMaskFieldBuilder().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.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..d4959d8fc56a --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UpdateTagTemplateFieldRequestOrBuilder.java @@ -0,0 +1,178 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/datacatalog.proto + +package com.google.cloud.datacatalog.v1; + +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 new file mode 100644 index 000000000000..3ae38a3890e3 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UpdateTagTemplateRequest.java @@ -0,0 +1,1090 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/datacatalog.proto + +package com.google.cloud.datacatalog.v1; + +/** + * + * + *
+ * Request message for
+ * [UpdateTagTemplate][google.cloud.datacatalog.v1.DataCatalog.UpdateTagTemplate].
+ * 
+ * + * Protobuf type {@code google.cloud.datacatalog.v1.UpdateTagTemplateRequest} + */ +public final class UpdateTagTemplateRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.UpdateTagTemplateRequest) + UpdateTagTemplateRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateTagTemplateRequest.newBuilder() to construct. + private UpdateTagTemplateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateTagTemplateRequest() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new 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.GeneratedMessageV3.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); + } + + 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 tagTemplate_ != null; + } + /** + * + * + *
+   * 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 updateMask_ != null; + } + /** + * + * + *
+   * 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 (tagTemplate_ != null) { + output.writeMessage(1, getTagTemplate()); + } + if (updateMask_ != null) { + output.writeMessage(2, getUpdateMask()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (tagTemplate_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getTagTemplate()); + } + if (updateMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @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_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.tagTemplate_ = + tagTemplateBuilder_ == null ? tagTemplate_ : tagTemplateBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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(getTagTemplateFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.cloud.datacatalog.v1.TagTemplate tagTemplate_; + private com.google.protobuf.SingleFieldBuilderV3< + 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); + } + 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 getTagTemplateFieldBuilder().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.SingleFieldBuilderV3< + com.google.cloud.datacatalog.v1.TagTemplate, + com.google.cloud.datacatalog.v1.TagTemplate.Builder, + com.google.cloud.datacatalog.v1.TagTemplateOrBuilder> + getTagTemplateFieldBuilder() { + if (tagTemplateBuilder_ == null) { + tagTemplateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + 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.SingleFieldBuilderV3< + 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); + } + 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 getUpdateMaskFieldBuilder().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.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..dc88ef690735 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UpdateTagTemplateRequestOrBuilder.java @@ -0,0 +1,125 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/datacatalog.proto + +package com.google.cloud.datacatalog.v1; + +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 new file mode 100644 index 000000000000..2d1495c40b3a --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UpdateTaxonomyRequest.java @@ -0,0 +1,1028 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/policytagmanager.proto + +package com.google.cloud.datacatalog.v1; + +/** + * + * + *
+ * Request message for
+ * [UpdateTaxonomy][google.cloud.datacatalog.v1.PolicyTagManager.UpdateTaxonomy].
+ * 
+ * + * Protobuf type {@code google.cloud.datacatalog.v1.UpdateTaxonomyRequest} + */ +public final class UpdateTaxonomyRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.UpdateTaxonomyRequest) + UpdateTaxonomyRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateTaxonomyRequest.newBuilder() to construct. + private UpdateTaxonomyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateTaxonomyRequest() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new 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.GeneratedMessageV3.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); + } + + 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 taxonomy_ != null; + } + /** + * + * + *
+   * 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 updateMask_ != null; + } + /** + * + * + *
+   * 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 (taxonomy_ != null) { + output.writeMessage(1, getTaxonomy()); + } + if (updateMask_ != null) { + output.writeMessage(2, getUpdateMask()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (taxonomy_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getTaxonomy()); + } + if (updateMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @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_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.taxonomy_ = taxonomyBuilder_ == null ? taxonomy_ : taxonomyBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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(getTaxonomyFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.cloud.datacatalog.v1.Taxonomy taxonomy_; + private com.google.protobuf.SingleFieldBuilderV3< + 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); + } + 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 getTaxonomyFieldBuilder().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.SingleFieldBuilderV3< + com.google.cloud.datacatalog.v1.Taxonomy, + com.google.cloud.datacatalog.v1.Taxonomy.Builder, + com.google.cloud.datacatalog.v1.TaxonomyOrBuilder> + getTaxonomyFieldBuilder() { + if (taxonomyBuilder_ == null) { + taxonomyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + 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.SingleFieldBuilderV3< + 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); + } + 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 getUpdateMaskFieldBuilder().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.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..2157be1c3b2a --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UpdateTaxonomyRequestOrBuilder.java @@ -0,0 +1,110 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/policytagmanager.proto + +package com.google.cloud.datacatalog.v1; + +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 new file mode 100644 index 000000000000..a317227dec9c --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/Usage.java @@ -0,0 +1,152 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/usage.proto + +package com.google.cloud.datacatalog.v1; + +public final class Usage { + private 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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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\"\243\004\n\013UsageSignal" + + "\022/\n\013update_time\030\001 \001(\0132\032.google.protobuf." + + "Timestamp\022i\n\027usage_within_time_range\030\002 \003" + + "(\0132B.google.cloud.datacatalog.v1.UsageSi" + + "gnal.UsageWithinTimeRangeEntryB\004\342A\001\003\022p\n\036" + + "common_usage_within_time_range\030\003 \003(\0132H.g" + + "oogle.cloud.datacatalog.v1.UsageSignal.C" + + "ommonUsageWithinTimeRangeEntry\022\033\n\016favori" + + "te_count\030\004 \001(\003H\000\210\001\001\032d\n\031UsageWithinTimeRa" + + "ngeEntry\022\013\n\003key\030\001 \001(\t\0226\n\005value\030\002 \001(\0132\'.g" + + "oogle.cloud.datacatalog.v1.UsageStats:\0028" + + "\001\032p\n\037CommonUsageWithinTimeRangeEntry\022\013\n\003" + + "key\030\001 \001(\t\022<\n\005value\030\002 \001(\0132-.google.cloud." + + "datacatalog.v1.CommonUsageStats:\0028\001B\021\n\017_" + + "favorite_countB\306\001\n\037com.google.cloud.data" + + "catalog.v1P\001ZAcloud.google.com/go/dataca" + + "talog/apiv1/datacatalogpb;datacatalogpb\370" + + "\001\001\252\002\033Google.Cloud.DataCatalog.V1\312\002\033Googl" + + "e\\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_UsageStats_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_datacatalog_v1_UsageStats_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.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().getMessageTypes().get(1); + internal_static_google_cloud_datacatalog_v1_CommonUsageStats_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datacatalog_v1_CommonUsageStats_descriptor, + new java.lang.String[] { + "ViewCount", "ViewCount", + }); + internal_static_google_cloud_datacatalog_v1_UsageSignal_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_datacatalog_v1_UsageSignal_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datacatalog_v1_UsageSignal_descriptor, + new java.lang.String[] { + "UpdateTime", + "UsageWithinTimeRange", + "CommonUsageWithinTimeRange", + "FavoriteCount", + "FavoriteCount", + }); + internal_static_google_cloud_datacatalog_v1_UsageSignal_UsageWithinTimeRangeEntry_descriptor = + internal_static_google_cloud_datacatalog_v1_UsageSignal_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_datacatalog_v1_UsageSignal_UsageWithinTimeRangeEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.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.getNestedTypes().get(1); + internal_static_google_cloud_datacatalog_v1_UsageSignal_CommonUsageWithinTimeRangeEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datacatalog_v1_UsageSignal_CommonUsageWithinTimeRangeEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-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 new file mode 100644 index 000000000000..4500742374a3 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UsageSignal.java @@ -0,0 +1,1656 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/usage.proto + +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} + */ +public final class UsageSignal extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.UsageSignal) + UsageSignalOrBuilder { + private static final long serialVersionUID = 0L; + // Use UsageSignal.newBuilder() to construct. + private UsageSignal(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UsageSignal() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new 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.MapField internalGetMapField(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.GeneratedMessageV3.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 updateTime_ != null; + } + /** + * + * + *
+   * 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_ & 0x00000001) != 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 (updateTime_ != null) { + output.writeMessage(1, getUpdateTime()); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, + internalGetUsageWithinTimeRange(), + UsageWithinTimeRangeDefaultEntryHolder.defaultEntry, + 2); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, + internalGetCommonUsageWithinTimeRange(), + CommonUsageWithinTimeRangeDefaultEntryHolder.defaultEntry, + 3); + if (((bitField0_ & 0x00000001) != 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 (updateTime_ != null) { + 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_ & 0x00000001) != 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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.MapField internalGetMapField(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.MapField internalGetMutableMapField(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.GeneratedMessageV3.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() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @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_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.usageWithinTimeRange_ = internalGetUsageWithinTimeRange(); + result.usageWithinTimeRange_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.commonUsageWithinTimeRange_ = internalGetCommonUsageWithinTimeRange(); + result.commonUsageWithinTimeRange_.makeImmutable(); + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.favoriteCount_ = favoriteCount_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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(getUpdateTimeFieldBuilder().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() + .getMutableMap() + .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() + .getMutableMap() + .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.SingleFieldBuilderV3< + 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); + } + 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 getUpdateTimeFieldBuilder().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.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.datacatalog.v1.UsageStats> + usageWithinTimeRange_; + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.datacatalog.v1.UsageStats> + internalGetUsageWithinTimeRange() { + if (usageWithinTimeRange_ == null) { + return com.google.protobuf.MapField.emptyMapField( + UsageWithinTimeRangeDefaultEntryHolder.defaultEntry); + } + return usageWithinTimeRange_; + } + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.datacatalog.v1.UsageStats> + internalGetMutableUsageWithinTimeRange() { + if (usageWithinTimeRange_ == null) { + usageWithinTimeRange_ = + com.google.protobuf.MapField.newMapField( + UsageWithinTimeRangeDefaultEntryHolder.defaultEntry); + } + if (!usageWithinTimeRange_.isMutable()) { + usageWithinTimeRange_ = usageWithinTimeRange_.copy(); + } + bitField0_ |= 0x00000002; + onChanged(); + 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 Builder clearUsageWithinTimeRange() { + bitField0_ = (bitField0_ & ~0x00000002); + internalGetMutableUsageWithinTimeRange().getMutableMap().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().getMutableMap().remove(key); + return this; + } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map + getMutableUsageWithinTimeRange() { + bitField0_ |= 0x00000002; + return internalGetMutableUsageWithinTimeRange().getMutableMap(); + } + /** + * + * + *
+     * 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().getMutableMap().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) { + internalGetMutableUsageWithinTimeRange().getMutableMap().putAll(values); + bitField0_ |= 0x00000002; + return this; + } + + 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_; + } + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.datacatalog.v1.CommonUsageStats> + internalGetMutableCommonUsageWithinTimeRange() { + if (commonUsageWithinTimeRange_ == null) { + commonUsageWithinTimeRange_ = + com.google.protobuf.MapField.newMapField( + CommonUsageWithinTimeRangeDefaultEntryHolder.defaultEntry); + } + if (!commonUsageWithinTimeRange_.isMutable()) { + commonUsageWithinTimeRange_ = commonUsageWithinTimeRange_.copy(); + } + bitField0_ |= 0x00000004; + onChanged(); + 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 Builder clearCommonUsageWithinTimeRange() { + bitField0_ = (bitField0_ & ~0x00000004); + internalGetMutableCommonUsageWithinTimeRange().getMutableMap().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().getMutableMap().remove(key); + return this; + } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map + getMutableCommonUsageWithinTimeRange() { + bitField0_ |= 0x00000004; + return internalGetMutableCommonUsageWithinTimeRange().getMutableMap(); + } + /** + * + * + *
+     * 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().getMutableMap().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) { + internalGetMutableCommonUsageWithinTimeRange().getMutableMap().putAll(values); + bitField0_ |= 0x00000004; + return this; + } + + 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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..967bc6c8e0bf --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UsageSignalOrBuilder.java @@ -0,0 +1,251 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/usage.proto + +package com.google.cloud.datacatalog.v1; + +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 new file mode 100644 index 000000000000..fb07ca3f3dc7 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UsageStats.java @@ -0,0 +1,839 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/usage.proto + +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} + */ +public final class UsageStats extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.UsageStats) + UsageStatsOrBuilder { + private static final long serialVersionUID = 0L; + // Use UsageStats.newBuilder() to construct. + private UsageStats(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UsageStats() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new 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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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 (other.getTotalCompletions() != 0F) { + setTotalCompletions(other.getTotalCompletions()); + } + if (other.getTotalFailures() != 0F) { + setTotalFailures(other.getTotalFailures()); + } + if (other.getTotalCancellations() != 0F) { + setTotalCancellations(other.getTotalCancellations()); + } + if (other.getTotalExecutionTimeForCompletionsMillis() != 0F) { + 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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..9b127be12471 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UsageStatsOrBuilder.java @@ -0,0 +1,77 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/usage.proto + +package com.google.cloud.datacatalog.v1; + +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 new file mode 100644 index 000000000000..40cb3110741e --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/VertexDatasetSpec.java @@ -0,0 +1,1082 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/datacatalog.proto + +package com.google.cloud.datacatalog.v1; + +/** + * + * + *
+ * Specification for vertex dataset resources.
+ * 
+ * + * Protobuf type {@code google.cloud.datacatalog.v1.VertexDatasetSpec} + */ +public final class VertexDatasetSpec extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.VertexDatasetSpec) + VertexDatasetSpecOrBuilder { + private static final long serialVersionUID = 0L; + // Use VertexDatasetSpec.newBuilder() to construct. + private VertexDatasetSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private VertexDatasetSpec() { + dataType_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new VertexDatasetSpec(); + } + + 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.GeneratedMessageV3.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), + ; + + /** + * + * + *
+     * 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 final 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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..f64ee3bc0bb0 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/VertexDatasetSpecOrBuilder.java @@ -0,0 +1,64 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/datacatalog.proto + +package com.google.cloud.datacatalog.v1; + +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 new file mode 100644 index 000000000000..ff4171891ae6 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/VertexModelSourceInfo.java @@ -0,0 +1,917 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/datacatalog.proto + +package com.google.cloud.datacatalog.v1; + +/** + * + * + *
+ * Detail description of the source information of a Vertex model.
+ * 
+ * + * Protobuf type {@code google.cloud.datacatalog.v1.VertexModelSourceInfo} + */ +public final class VertexModelSourceInfo extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.VertexModelSourceInfo) + VertexModelSourceInfoOrBuilder { + private static final long serialVersionUID = 0L; + // Use VertexModelSourceInfo.newBuilder() to construct. + private VertexModelSourceInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private VertexModelSourceInfo() { + sourceType_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new VertexModelSourceInfo(); + } + + 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.GeneratedMessageV3.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), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * 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; + + 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; + 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 final 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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..fb7996cf7df3 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/VertexModelSourceInfoOrBuilder.java @@ -0,0 +1,67 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/datacatalog.proto + +package com.google.cloud.datacatalog.v1; + +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 new file mode 100644 index 000000000000..29331609da6d --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/VertexModelSpec.java @@ -0,0 +1,1561 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/datacatalog.proto + +package com.google.cloud.datacatalog.v1; + +/** + * + * + *
+ * Specification for vertex model resources.
+ * 
+ * + * Protobuf type {@code google.cloud.datacatalog.v1.VertexModelSpec} + */ +public final class VertexModelSpec extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.VertexModelSpec) + VertexModelSpecOrBuilder { + private static final long serialVersionUID = 0L; + // Use VertexModelSpec.newBuilder() to construct. + private VertexModelSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private VertexModelSpec() { + versionId_ = ""; + versionAliases_ = com.google.protobuf.LazyStringArrayList.emptyList(); + versionDescription_ = ""; + containerImageUri_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new VertexModelSpec(); + } + + 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.GeneratedMessageV3.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); + } + + 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 vertexModelSourceInfo_ != null; + } + /** + * + * + *
+   * 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.GeneratedMessageV3.isStringEmpty(versionId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, versionId_); + } + for (int i = 0; i < versionAliases_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, versionAliases_.getRaw(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(versionDescription_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, versionDescription_); + } + if (vertexModelSourceInfo_ != null) { + output.writeMessage(4, getVertexModelSourceInfo()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(containerImageUri_)) { + com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(versionId_)) { + size += com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(versionDescription_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, versionDescription_); + } + if (vertexModelSourceInfo_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(4, getVertexModelSourceInfo()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(containerImageUri_)) { + size += com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @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_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.vertexModelSourceInfo_ = + vertexModelSourceInfoBuilder_ == null + ? vertexModelSourceInfo_ + : vertexModelSourceInfoBuilder_.build(); + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.containerImageUri_ = containerImageUri_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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( + getVertexModelSourceInfoFieldBuilder().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.SingleFieldBuilderV3< + 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); + } + 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 getVertexModelSourceInfoFieldBuilder().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.SingleFieldBuilderV3< + com.google.cloud.datacatalog.v1.VertexModelSourceInfo, + com.google.cloud.datacatalog.v1.VertexModelSourceInfo.Builder, + com.google.cloud.datacatalog.v1.VertexModelSourceInfoOrBuilder> + getVertexModelSourceInfoFieldBuilder() { + if (vertexModelSourceInfoBuilder_ == null) { + vertexModelSourceInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + 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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..95fcd5b702eb --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/VertexModelSpecOrBuilder.java @@ -0,0 +1,193 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/datacatalog.proto + +package com.google.cloud.datacatalog.v1; + +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 new file mode 100644 index 000000000000..06e5f969de93 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ViewSpec.java @@ -0,0 +1,622 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/table_spec.proto + +package com.google.cloud.datacatalog.v1; + +/** + * + * + *
+ * Table view specification.
+ * 
+ * + * Protobuf type {@code google.cloud.datacatalog.v1.ViewSpec} + */ +public final class ViewSpec extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.ViewSpec) + ViewSpecOrBuilder { + private static final long serialVersionUID = 0L; + // Use ViewSpec.newBuilder() to construct. + private ViewSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ViewSpec() { + viewQuery_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ViewSpec(); + } + + 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(viewQuery_)) { + com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(viewQuery_)) { + size += com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..cd4a0194f03b --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ViewSpecOrBuilder.java @@ -0,0 +1,50 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1/table_spec.proto + +package com.google.cloud.datacatalog.v1; + +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/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/bigquery.proto rename to java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/bigquery.proto diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/common.proto rename to java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/common.proto diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/data_source.proto rename to java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/data_source.proto diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/datacatalog.proto rename to java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/datacatalog.proto diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/dataplex_spec.proto rename to java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/dataplex_spec.proto diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/dump_content.proto rename to java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/dump_content.proto diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/gcs_fileset_spec.proto rename to java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/gcs_fileset_spec.proto diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/physical_schema.proto rename to java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/physical_schema.proto diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/policytagmanager.proto rename to java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/policytagmanager.proto diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/policytagmanagerserialization.proto rename to java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/policytagmanagerserialization.proto diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/schema.proto rename to java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/schema.proto diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/search.proto rename to java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/search.proto diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/table_spec.proto rename to java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/table_spec.proto diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/tags.proto rename to java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/tags.proto diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/timestamps.proto rename to java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/timestamps.proto diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/usage.proto rename to java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/usage.proto 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 new file mode 100644 index 000000000000..0e640a9d8922 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/BigQueryDateShardedSpec.java @@ -0,0 +1,957 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/table_spec.proto + +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} + */ +public final class BigQueryDateShardedSpec extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec) + BigQueryDateShardedSpecOrBuilder { + private static final long serialVersionUID = 0L; + // Use BigQueryDateShardedSpec.newBuilder() to construct. + private BigQueryDateShardedSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BigQueryDateShardedSpec() { + dataset_ = ""; + tablePrefix_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BigQueryDateShardedSpec(); + } + + 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(dataset_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, dataset_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tablePrefix_)) { + com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(dataset_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, dataset_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tablePrefix_)) { + size += com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..9070fd1ea0bd --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/BigQueryDateShardedSpecOrBuilder.java @@ -0,0 +1,102 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/table_spec.proto + +package com.google.cloud.datacatalog.v1beta1; + +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 new file mode 100644 index 000000000000..1235b44b8d2a --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/BigQueryTableSpec.java @@ -0,0 +1,1307 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/table_spec.proto + +package com.google.cloud.datacatalog.v1beta1; + +/** + * + * + *
+ * Describes a BigQuery table.
+ * 
+ * + * Protobuf type {@code google.cloud.datacatalog.v1beta1.BigQueryTableSpec} + */ +public final class BigQueryTableSpec extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.BigQueryTableSpec) + BigQueryTableSpecOrBuilder { + private static final long serialVersionUID = 0L; + // Use BigQueryTableSpec.newBuilder() to construct. + private BigQueryTableSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BigQueryTableSpec() { + tableSourceType_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BigQueryTableSpec(); + } + + 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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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(getViewSpecFieldBuilder().getBuilder(), extensionRegistry); + typeSpecCase_ = 2; + break; + } // case 18 + case 26: + { + input.readMessage(getTableSpecFieldBuilder().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.SingleFieldBuilderV3< + 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 getViewSpecFieldBuilder().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.SingleFieldBuilderV3< + com.google.cloud.datacatalog.v1beta1.ViewSpec, + com.google.cloud.datacatalog.v1beta1.ViewSpec.Builder, + com.google.cloud.datacatalog.v1beta1.ViewSpecOrBuilder> + getViewSpecFieldBuilder() { + if (viewSpecBuilder_ == null) { + if (!(typeSpecCase_ == 2)) { + typeSpec_ = com.google.cloud.datacatalog.v1beta1.ViewSpec.getDefaultInstance(); + } + viewSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + 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.SingleFieldBuilderV3< + 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 getTableSpecFieldBuilder().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.SingleFieldBuilderV3< + com.google.cloud.datacatalog.v1beta1.TableSpec, + com.google.cloud.datacatalog.v1beta1.TableSpec.Builder, + com.google.cloud.datacatalog.v1beta1.TableSpecOrBuilder> + getTableSpecFieldBuilder() { + if (tableSpecBuilder_ == null) { + if (!(typeSpecCase_ == 3)) { + typeSpec_ = com.google.cloud.datacatalog.v1beta1.TableSpec.getDefaultInstance(); + } + tableSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + 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_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..6095deacfd7e --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/BigQueryTableSpecOrBuilder.java @@ -0,0 +1,132 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/table_spec.proto + +package com.google.cloud.datacatalog.v1beta1; + +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 new file mode 100644 index 000000000000..e9cce0ab07db --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ColumnSchema.java @@ -0,0 +1,1758 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/schema.proto + +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} + */ +public final class ColumnSchema extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.ColumnSchema) + ColumnSchemaOrBuilder { + private static final long serialVersionUID = 0L; + // Use ColumnSchema.newBuilder() to construct. + private ColumnSchema(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ColumnSchema() { + column_ = ""; + type_ = ""; + description_ = ""; + mode_ = ""; + subcolumns_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ColumnSchema(); + } + + 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(type_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, type_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mode_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, mode_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(column_)) { + com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(type_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, type_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mode_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, mode_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(column_)) { + size += com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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.GeneratedMessageV3.alwaysUseFieldBuilders + ? getSubcolumnsFieldBuilder() + : 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.RepeatedFieldBuilderV3< + 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 getSubcolumnsFieldBuilder().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 getSubcolumnsFieldBuilder() + .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 getSubcolumnsFieldBuilder() + .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 getSubcolumnsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datacatalog.v1beta1.ColumnSchema, + com.google.cloud.datacatalog.v1beta1.ColumnSchema.Builder, + com.google.cloud.datacatalog.v1beta1.ColumnSchemaOrBuilder> + getSubcolumnsFieldBuilder() { + if (subcolumnsBuilder_ == null) { + subcolumnsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + 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_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..d17eeebb7c4a --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ColumnSchemaOrBuilder.java @@ -0,0 +1,196 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/schema.proto + +package com.google.cloud.datacatalog.v1beta1; + +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 new file mode 100644 index 000000000000..654bd7c26b27 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/Common.java @@ -0,0 +1,58 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/common.proto + +package com.google.cloud.datacatalog.v1beta1; + +public final class Common { + private 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\337\001\n" + + "$com.google.cloud.datacatalog.v1beta1P\001Z" + + "Fcloud.google.com/go/datacatalog/apiv1be" + + "ta1/datacatalogpb;datacatalogpb\370\001\001\252\002 Goo" + + "gle.Cloud.DataCatalog.V1Beta1\312\002 Google\\C" + + "loud\\DataCatalog\\V1beta1\352\002#Google::Cloud" + + "::DataCatalog::V1beta1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); + } + + // @@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 new file mode 100644 index 000000000000..502273b2f037 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/CreateEntryGroupRequest.java @@ -0,0 +1,1142 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/datacatalog.proto + +package com.google.cloud.datacatalog.v1beta1; + +/** + * + * + *
+ * Request message for
+ * [CreateEntryGroup][google.cloud.datacatalog.v1beta1.DataCatalog.CreateEntryGroup].
+ * 
+ * + * Protobuf type {@code google.cloud.datacatalog.v1beta1.CreateEntryGroupRequest} + */ +public final class CreateEntryGroupRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.CreateEntryGroupRequest) + CreateEntryGroupRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateEntryGroupRequest.newBuilder() to construct. + private CreateEntryGroupRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateEntryGroupRequest() { + parent_ = ""; + entryGroupId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateEntryGroupRequest(); + } + + 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.GeneratedMessageV3.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); + } + + 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 entryGroup_ != null; + } + /** + * + * + *
+   * 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.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (entryGroup_ != null) { + output.writeMessage(2, getEntryGroup()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entryGroupId_)) { + com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (entryGroup_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEntryGroup()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entryGroupId_)) { + size += com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @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_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.entryGroup_ = entryGroupBuilder_ == null ? entryGroup_ : entryGroupBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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(getEntryGroupFieldBuilder().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.SingleFieldBuilderV3< + 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); + } + 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 getEntryGroupFieldBuilder().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.SingleFieldBuilderV3< + com.google.cloud.datacatalog.v1beta1.EntryGroup, + com.google.cloud.datacatalog.v1beta1.EntryGroup.Builder, + com.google.cloud.datacatalog.v1beta1.EntryGroupOrBuilder> + getEntryGroupFieldBuilder() { + if (entryGroupBuilder_ == null) { + entryGroupBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + 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_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..da619e83d4a9 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/CreateEntryGroupRequestOrBuilder.java @@ -0,0 +1,128 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/datacatalog.proto + +package com.google.cloud.datacatalog.v1beta1; + +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 new file mode 100644 index 000000000000..3ac34f05d392 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/CreateEntryRequest.java @@ -0,0 +1,1146 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/datacatalog.proto + +package com.google.cloud.datacatalog.v1beta1; + +/** + * + * + *
+ * Request message for
+ * [CreateEntry][google.cloud.datacatalog.v1beta1.DataCatalog.CreateEntry].
+ * 
+ * + * Protobuf type {@code google.cloud.datacatalog.v1beta1.CreateEntryRequest} + */ +public final class CreateEntryRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.CreateEntryRequest) + CreateEntryRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateEntryRequest.newBuilder() to construct. + private CreateEntryRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateEntryRequest() { + parent_ = ""; + entryId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateEntryRequest(); + } + + 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.GeneratedMessageV3.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); + } + + 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 entry_ != null; + } + /** + * + * + *
+   * 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.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (entry_ != null) { + output.writeMessage(2, getEntry()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entryId_)) { + com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (entry_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEntry()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entryId_)) { + size += com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @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_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.entry_ = entryBuilder_ == null ? entry_ : entryBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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(getEntryFieldBuilder().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.SingleFieldBuilderV3< + 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); + } + 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 getEntryFieldBuilder().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.SingleFieldBuilderV3< + com.google.cloud.datacatalog.v1beta1.Entry, + com.google.cloud.datacatalog.v1beta1.Entry.Builder, + com.google.cloud.datacatalog.v1beta1.EntryOrBuilder> + getEntryFieldBuilder() { + if (entryBuilder_ == null) { + entryBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + 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_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..520de5aa4be1 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/CreateEntryRequestOrBuilder.java @@ -0,0 +1,130 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/datacatalog.proto + +package com.google.cloud.datacatalog.v1beta1; + +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 new file mode 100644 index 000000000000..889ce4955384 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/CreatePolicyTagRequest.java @@ -0,0 +1,906 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/policytagmanager.proto + +package com.google.cloud.datacatalog.v1beta1; + +/** + * + * + *
+ * Request message for
+ * [CreatePolicyTag][google.cloud.datacatalog.v1beta1.PolicyTagManager.CreatePolicyTag].
+ * 
+ * + * Protobuf type {@code google.cloud.datacatalog.v1beta1.CreatePolicyTagRequest} + */ +public final class CreatePolicyTagRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.CreatePolicyTagRequest) + CreatePolicyTagRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreatePolicyTagRequest.newBuilder() to construct. + private CreatePolicyTagRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreatePolicyTagRequest() { + parent_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreatePolicyTagRequest(); + } + + 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.GeneratedMessageV3.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); + } + + 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 policyTag_ != null; + } + /** + * + * + *
+   * 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.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (policyTag_ != null) { + 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.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (policyTag_ != null) { + 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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @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_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.policyTag_ = policyTagBuilder_ == null ? policyTag_ : policyTagBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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(getPolicyTagFieldBuilder().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.SingleFieldBuilderV3< + 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); + } + 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 getPolicyTagFieldBuilder().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.SingleFieldBuilderV3< + com.google.cloud.datacatalog.v1beta1.PolicyTag, + com.google.cloud.datacatalog.v1beta1.PolicyTag.Builder, + com.google.cloud.datacatalog.v1beta1.PolicyTagOrBuilder> + getPolicyTagFieldBuilder() { + if (policyTagBuilder_ == null) { + policyTagBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + 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_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..c8eb9c4d0216 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/CreatePolicyTagRequestOrBuilder.java @@ -0,0 +1,89 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/policytagmanager.proto + +package com.google.cloud.datacatalog.v1beta1; + +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 new file mode 100644 index 000000000000..0cc54bd06eaf --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/CreateTagRequest.java @@ -0,0 +1,960 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/datacatalog.proto + +package com.google.cloud.datacatalog.v1beta1; + +/** + * + * + *
+ * Request message for
+ * [CreateTag][google.cloud.datacatalog.v1beta1.DataCatalog.CreateTag].
+ * 
+ * + * Protobuf type {@code google.cloud.datacatalog.v1beta1.CreateTagRequest} + */ +public final class CreateTagRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.CreateTagRequest) + CreateTagRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateTagRequest.newBuilder() to construct. + private CreateTagRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateTagRequest() { + parent_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateTagRequest(); + } + + 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.GeneratedMessageV3.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); + } + + 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 tag_ != null; + } + /** + * + * + *
+   * 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.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (tag_ != null) { + 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.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (tag_ != null) { + 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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @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_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.tag_ = tagBuilder_ == null ? tag_ : tagBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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(getTagFieldBuilder().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.SingleFieldBuilderV3< + 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); + } + 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 getTagFieldBuilder().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.SingleFieldBuilderV3< + com.google.cloud.datacatalog.v1beta1.Tag, + com.google.cloud.datacatalog.v1beta1.Tag.Builder, + com.google.cloud.datacatalog.v1beta1.TagOrBuilder> + getTagFieldBuilder() { + if (tagBuilder_ == null) { + tagBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + 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_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..dedc2610aa27 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/CreateTagRequestOrBuilder.java @@ -0,0 +1,104 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/datacatalog.proto + +package com.google.cloud.datacatalog.v1beta1; + +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 new file mode 100644 index 000000000000..b5145660e3d5 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/CreateTagTemplateFieldRequest.java @@ -0,0 +1,1194 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/datacatalog.proto + +package com.google.cloud.datacatalog.v1beta1; + +/** + * + * + *
+ * Request message for
+ * [CreateTagTemplateField][google.cloud.datacatalog.v1beta1.DataCatalog.CreateTagTemplateField].
+ * 
+ * + * Protobuf type {@code google.cloud.datacatalog.v1beta1.CreateTagTemplateFieldRequest} + */ +public final class CreateTagTemplateFieldRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.CreateTagTemplateFieldRequest) + CreateTagTemplateFieldRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateTagTemplateFieldRequest.newBuilder() to construct. + private CreateTagTemplateFieldRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateTagTemplateFieldRequest() { + parent_ = ""; + tagTemplateFieldId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateTagTemplateFieldRequest(); + } + + 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.GeneratedMessageV3.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); + } + + 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 tagTemplateField_ != null; + } + /** + * + * + *
+   * 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.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tagTemplateFieldId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, tagTemplateFieldId_); + } + if (tagTemplateField_ != null) { + 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.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tagTemplateFieldId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, tagTemplateFieldId_); + } + if (tagTemplateField_ != null) { + 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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @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_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.tagTemplateField_ = + tagTemplateFieldBuilder_ == null ? tagTemplateField_ : tagTemplateFieldBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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( + getTagTemplateFieldFieldBuilder().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.SingleFieldBuilderV3< + 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); + } + 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 getTagTemplateFieldFieldBuilder().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.SingleFieldBuilderV3< + com.google.cloud.datacatalog.v1beta1.TagTemplateField, + com.google.cloud.datacatalog.v1beta1.TagTemplateField.Builder, + com.google.cloud.datacatalog.v1beta1.TagTemplateFieldOrBuilder> + getTagTemplateFieldFieldBuilder() { + if (tagTemplateFieldBuilder_ == null) { + tagTemplateFieldBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + 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_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..c2f414050823 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/CreateTagTemplateFieldRequestOrBuilder.java @@ -0,0 +1,138 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/datacatalog.proto + +package com.google.cloud.datacatalog.v1beta1; + +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 new file mode 100644 index 000000000000..d181906c676b --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/CreateTagTemplateRequest.java @@ -0,0 +1,1153 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/datacatalog.proto + +package com.google.cloud.datacatalog.v1beta1; + +/** + * + * + *
+ * Request message for
+ * [CreateTagTemplate][google.cloud.datacatalog.v1beta1.DataCatalog.CreateTagTemplate].
+ * 
+ * + * Protobuf type {@code google.cloud.datacatalog.v1beta1.CreateTagTemplateRequest} + */ +public final class CreateTagTemplateRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.CreateTagTemplateRequest) + CreateTagTemplateRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateTagTemplateRequest.newBuilder() to construct. + private CreateTagTemplateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateTagTemplateRequest() { + parent_ = ""; + tagTemplateId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateTagTemplateRequest(); + } + + 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.GeneratedMessageV3.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); + } + + 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 tagTemplate_ != null; + } + /** + * + * + *
+   * 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.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (tagTemplate_ != null) { + output.writeMessage(2, getTagTemplate()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tagTemplateId_)) { + com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (tagTemplate_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getTagTemplate()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tagTemplateId_)) { + size += com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @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_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.tagTemplate_ = + tagTemplateBuilder_ == null ? tagTemplate_ : tagTemplateBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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(getTagTemplateFieldBuilder().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.SingleFieldBuilderV3< + 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); + } + 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 getTagTemplateFieldBuilder().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.SingleFieldBuilderV3< + com.google.cloud.datacatalog.v1beta1.TagTemplate, + com.google.cloud.datacatalog.v1beta1.TagTemplate.Builder, + com.google.cloud.datacatalog.v1beta1.TagTemplateOrBuilder> + getTagTemplateFieldBuilder() { + if (tagTemplateBuilder_ == null) { + tagTemplateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + 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_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..b7ef124c92d5 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/CreateTagTemplateRequestOrBuilder.java @@ -0,0 +1,130 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/datacatalog.proto + +package com.google.cloud.datacatalog.v1beta1; + +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 new file mode 100644 index 000000000000..5052cd1c6618 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/CreateTaxonomyRequest.java @@ -0,0 +1,906 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/policytagmanager.proto + +package com.google.cloud.datacatalog.v1beta1; + +/** + * + * + *
+ * Request message for
+ * [CreateTaxonomy][google.cloud.datacatalog.v1beta1.PolicyTagManager.CreateTaxonomy].
+ * 
+ * + * Protobuf type {@code google.cloud.datacatalog.v1beta1.CreateTaxonomyRequest} + */ +public final class CreateTaxonomyRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.CreateTaxonomyRequest) + CreateTaxonomyRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateTaxonomyRequest.newBuilder() to construct. + private CreateTaxonomyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateTaxonomyRequest() { + parent_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateTaxonomyRequest(); + } + + 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.GeneratedMessageV3.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); + } + + 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 taxonomy_ != null; + } + /** + * + * + *
+   * 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.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (taxonomy_ != null) { + 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.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (taxonomy_ != null) { + 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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @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_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.taxonomy_ = taxonomyBuilder_ == null ? taxonomy_ : taxonomyBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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(getTaxonomyFieldBuilder().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.SingleFieldBuilderV3< + 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); + } + 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 getTaxonomyFieldBuilder().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.SingleFieldBuilderV3< + com.google.cloud.datacatalog.v1beta1.Taxonomy, + com.google.cloud.datacatalog.v1beta1.Taxonomy.Builder, + com.google.cloud.datacatalog.v1beta1.TaxonomyOrBuilder> + getTaxonomyFieldBuilder() { + if (taxonomyBuilder_ == null) { + taxonomyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + 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_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..11cc70688fcc --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/CreateTaxonomyRequestOrBuilder.java @@ -0,0 +1,89 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/policytagmanager.proto + +package com.google.cloud.datacatalog.v1beta1; + +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 new file mode 100644 index 000000000000..b500bcdcc972 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/Datacatalog.java @@ -0,0 +1,833 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/datacatalog.proto + +package com.google.cloud.datacatalog.v1beta1; + +public final class Datacatalog { + private 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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 = { + "\n2google/cloud/datacatalog/v1beta1/datac" + + "atalog.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/comm" + + "on.proto\0327google/cloud/datacatalog/v1bet" + + "a1/gcs_fileset_spec.proto\032-google/cloud/" + + "datacatalog/v1beta1/schema.proto\032-google" + + "/cloud/datacatalog/v1beta1/search.proto\032" + + "1google/cloud/datacatalog/v1beta1/table_" + + "spec.proto\032+google/cloud/datacatalog/v1b" + + "eta1/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.prot" + + "o\032 google/protobuf/field_mask.proto\"\306\002\n\024" + + "SearchCatalogRequest\022Q\n\005scope\030\006 \001(\0132<.go" + + "ogle.cloud.datacatalog.v1beta1.SearchCat" + + "alogRequest.ScopeB\004\342A\001\002\022\023\n\005query\030\001 \001(\tB\004" + + "\342A\001\001\022\021\n\tpage_size\030\002 \001(\005\022\030\n\npage_token\030\003 " + + "\001(\tB\004\342A\001\001\022\020\n\010order_by\030\005 \001(\t\032\206\001\n\005Scope\022\027\n" + + "\017include_org_ids\030\002 \003(\t\022\033\n\023include_projec" + + "t_ids\030\003 \003(\t\022#\n\033include_gcp_public_datase" + + "ts\030\007 \001(\010\022\"\n\024restricted_locations\030\020 \003(\tB\004" + + "\342A\001\001\"\241\001\n\025SearchCatalogResponse\022F\n\007result" + + "s\030\001 \003(\01325.google.cloud.datacatalog.v1bet" + + "a1.SearchCatalogResult\022\022\n\ntotal_size\030\002 \001" + + "(\005\022\027\n\017next_page_token\030\003 \001(\t\022\023\n\013unreachab" + + "le\030\006 \003(\t\"\272\001\n\027CreateEntryGroupRequest\022>\n\006" + + "parent\030\001 \001(\tB.\342A\001\002\372A\'\022%datacatalog.googl" + + "eapis.com/EntryGroup\022\034\n\016entry_group_id\030\003" + + " \001(\tB\004\342A\001\002\022A\n\013entry_group\030\002 \001(\0132,.google" + + ".cloud.datacatalog.v1beta1.EntryGroup\"\223\001" + + "\n\027UpdateEntryGroupRequest\022G\n\013entry_group" + + "\030\001 \001(\0132,.google.cloud.datacatalog.v1beta" + + "1.EntryGroupB\004\342A\001\002\022/\n\013update_mask\030\002 \001(\0132" + + "\032.google.protobuf.FieldMask\"\203\001\n\024GetEntry" + + "GroupRequest\022<\n\004name\030\001 \001(\tB.\342A\001\002\372A\'\n%dat" + + "acatalog.googleapis.com/EntryGroup\022-\n\tre" + + "ad_mask\030\002 \001(\0132\032.google.protobuf.FieldMas" + + "k\"l\n\027DeleteEntryGroupRequest\022<\n\004name\030\001 \001" + + "(\tB.\342A\001\002\372A\'\n%datacatalog.googleapis.com/" + + "EntryGroup\022\023\n\005force\030\002 \001(\010B\004\342A\001\001\"\213\001\n\026List" + + "EntryGroupsRequest\022>\n\006parent\030\001 \001(\tB.\342A\001\002" + + "\372A\'\022%datacatalog.googleapis.com/EntryGro" + + "up\022\027\n\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\npage_toke" + + "n\030\003 \001(\tB\004\342A\001\001\"v\n\027ListEntryGroupsResponse" + + "\022B\n\014entry_groups\030\001 \003(\0132,.google.cloud.da" + + "tacatalog.v1beta1.EntryGroup\022\027\n\017next_pag" + + "e_token\030\002 \001(\t\"\252\001\n\022CreateEntryRequest\022>\n\006" + + "parent\030\001 \001(\tB.\342A\001\002\372A\'\n%datacatalog.googl" + + "eapis.com/EntryGroup\022\026\n\010entry_id\030\003 \001(\tB\004" + + "\342A\001\002\022<\n\005entry\030\002 \001(\0132\'.google.cloud.datac" + + "atalog.v1beta1.EntryB\004\342A\001\002\"\203\001\n\022UpdateEnt" + + "ryRequest\022<\n\005entry\030\001 \001(\0132\'.google.cloud." + + "datacatalog.v1beta1.EntryB\004\342A\001\002\022/\n\013updat" + + "e_mask\030\002 \001(\0132\032.google.protobuf.FieldMask" + + "\"M\n\022DeleteEntryRequest\0227\n\004name\030\001 \001(\tB)\342A" + + "\001\002\372A\"\n datacatalog.googleapis.com/Entry\"" + + "J\n\017GetEntryRequest\0227\n\004name\030\001 \001(\tB)\342A\001\002\372A" + + "\"\n datacatalog.googleapis.com/Entry\"V\n\022L" + + "ookupEntryRequest\022\031\n\017linked_resource\030\001 \001" + + "(\tH\000\022\026\n\014sql_resource\030\003 \001(\tH\000B\r\n\013target_n" + + "ame\"\340\007\n\005Entry\022<\n\004name\030\001 \001(\tB.\342A\001\003\372A\'\n%da" + + "tacatalog.googleapis.com/EntryGroup\022\027\n\017l" + + "inked_resource\030\t \001(\t\022;\n\004type\030\002 \001(\0162+.goo" + + "gle.cloud.datacatalog.v1beta1.EntryTypeH" + + "\000\022\035\n\023user_specified_type\030\020 \001(\tH\000\022U\n\021inte" + + "grated_system\030\021 \001(\01622.google.cloud.datac" + + "atalog.v1beta1.IntegratedSystemB\004\342A\001\003H\001\022" + + "\037\n\025user_specified_system\030\022 \001(\tH\001\022L\n\020gcs_" + + "fileset_spec\030\006 \001(\01320.google.cloud.dataca" + + "talog.v1beta1.GcsFilesetSpecH\002\022R\n\023bigque" + + "ry_table_spec\030\014 \001(\01323.google.cloud.datac" + + "atalog.v1beta1.BigQueryTableSpecH\002\022_\n\032bi" + + "gquery_date_sharded_spec\030\017 \001(\01329.google." + + "cloud.datacatalog.v1beta1.BigQueryDateSh" + + "ardedSpecH\002\022\024\n\014display_name\030\003 \001(\t\022\023\n\013des" + + "cription\030\004 \001(\t\0228\n\006schema\030\005 \001(\0132(.google." + + "cloud.datacatalog.v1beta1.Schema\022Z\n\030sour" + + "ce_system_timestamps\030\007 \001(\01322.google.clou" + + "d.datacatalog.v1beta1.SystemTimestampsB\004" + + "\342A\001\003\022I\n\014usage_signal\030\r \001(\0132-.google.clou" + + "d.datacatalog.v1beta1.UsageSignalB\004\342A\001\003:" + + "x\352Au\n datacatalog.googleapis.com/Entry\022Q" + + "projects/{project}/locations/{location}/" + + "entryGroups/{entry_group}/entries/{entry" + + "}B\014\n\nentry_typeB\010\n\006systemB\013\n\ttype_spec\"\217" + + "\002\n\nEntryGroup\022\014\n\004name\030\001 \001(\t\022\024\n\014display_n" + + "ame\030\002 \001(\t\022\023\n\013description\030\003 \001(\t\022Y\n\027data_c" + + "atalog_timestamps\030\004 \001(\01322.google.cloud.d" + + "atacatalog.v1beta1.SystemTimestampsB\004\342A\001" + + "\003:m\352Aj\n%datacatalog.googleapis.com/Entry" + + "Group\022Aprojects/{project}/locations/{loc" + + "ation}/entryGroups/{entry_group}\"\305\001\n\030Cre" + + "ateTagTemplateRequest\022?\n\006parent\030\001 \001(\tB/\342" + + "A\001\002\372A(\022&datacatalog.googleapis.com/TagTe" + + "mplate\022\035\n\017tag_template_id\030\003 \001(\tB\004\342A\001\002\022I\n" + + "\014tag_template\030\002 \001(\0132-.google.cloud.datac" + + "atalog.v1beta1.TagTemplateB\004\342A\001\002\"V\n\025GetT" + + "agTemplateRequest\022=\n\004name\030\001 \001(\tB/\342A\001\002\372A(" + + "\n&datacatalog.googleapis.com/TagTemplate" + + "\"\226\001\n\030UpdateTagTemplateRequest\022I\n\014tag_tem" + + "plate\030\001 \001(\0132-.google.cloud.datacatalog.v" + + "1beta1.TagTemplateB\004\342A\001\002\022/\n\013update_mask\030" + + "\002 \001(\0132\032.google.protobuf.FieldMask\"n\n\030Del" + + "eteTagTemplateRequest\022=\n\004name\030\001 \001(\tB/\342A\001" + + "\002\372A(\n&datacatalog.googleapis.com/TagTemp" + + "late\022\023\n\005force\030\002 \001(\010B\004\342A\001\002\"\205\001\n\020CreateTagR" + + "equest\0227\n\006parent\030\001 \001(\tB\'\342A\001\002\372A \022\036datacat" + + "alog.googleapis.com/Tag\0228\n\003tag\030\002 \001(\0132%.g" + + "oogle.cloud.datacatalog.v1beta1.TagB\004\342A\001" + + "\002\"}\n\020UpdateTagRequest\0228\n\003tag\030\001 \001(\0132%.goo" + + "gle.cloud.datacatalog.v1beta1.TagB\004\342A\001\002\022" + + "/\n\013update_mask\030\002 \001(\0132\032.google.protobuf.F" + + "ieldMask\"I\n\020DeleteTagRequest\0225\n\004name\030\001 \001" + + "(\tB\'\342A\001\002\372A \022\036datacatalog.googleapis.com/" + + "Tag\"\333\001\n\035CreateTagTemplateFieldRequest\022?\n" + + "\006parent\030\001 \001(\tB/\342A\001\002\372A(\n&datacatalog.goog" + + "leapis.com/TagTemplate\022#\n\025tag_template_f" + + "ield_id\030\002 \001(\tB\004\342A\001\002\022T\n\022tag_template_fiel" + + "d\030\003 \001(\01322.google.cloud.datacatalog.v1bet" + + "a1.TagTemplateFieldB\004\342A\001\002\"\360\001\n\035UpdateTagT" + + "emplateFieldRequest\022B\n\004name\030\001 \001(\tB4\342A\001\002\372" + + "A-\n+datacatalog.googleapis.com/TagTempla" + + "teField\022T\n\022tag_template_field\030\002 \001(\01322.go" + + "ogle.cloud.datacatalog.v1beta1.TagTempla" + + "teFieldB\004\342A\001\002\0225\n\013update_mask\030\003 \001(\0132\032.goo" + + "gle.protobuf.FieldMaskB\004\342A\001\001\"\214\001\n\035RenameT" + + "agTemplateFieldRequest\022B\n\004name\030\001 \001(\tB4\342A" + + "\001\002\372A-\n+datacatalog.googleapis.com/TagTem" + + "plateField\022\'\n\031new_tag_template_field_id\030" + + "\002 \001(\tB\004\342A\001\002\"\240\001\n&RenameTagTemplateFieldEn" + + "umValueRequest\022K\n\004name\030\001 \001(\tB=\342A\001\002\372A6\n4d" + + "atacatalog.googleapis.com/TagTemplateFie" + + "ldEnumValue\022)\n\033new_enum_value_display_na" + + "me\030\002 \001(\tB\004\342A\001\002\"x\n\035DeleteTagTemplateField" + + "Request\022B\n\004name\030\001 \001(\tB4\342A\001\002\372A-\n+datacata" + + "log.googleapis.com/TagTemplateField\022\023\n\005f" + + "orce\030\002 \001(\010B\004\342A\001\002\"q\n\017ListTagsRequest\0227\n\006p" + + "arent\030\001 \001(\tB\'\342A\001\002\372A \022\036datacatalog.google" + + "apis.com/Tag\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_" + + "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\"\252\001\n\022ListEn" + + "triesRequest\022>\n\006parent\030\001 \001(\tB.\342A\001\002\372A\'\n%d" + + "atacatalog.googleapis.com/EntryGroup\022\021\n\t" + + "page_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022-\n\tr" + + "ead_mask\030\004 \001(\0132\032.google.protobuf.FieldMa" + + "sk\"h\n\023ListEntriesResponse\0228\n\007entries\030\001 \003" + + "(\0132\'.google.cloud.datacatalog.v1beta1.En" + + "try\022\027\n\017next_page_token\030\002 \001(\t*[\n\tEntryTyp" + + "e\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\3414\n\013DataCatalog\022\262\001\n\rSearchCatalog\0226.go" + + "ogle.cloud.datacatalog.v1beta1.SearchCat" + + "alogRequest\0327.google.cloud.datacatalog.v" + + "1beta1.SearchCatalogResponse\"0\332A\013scope,q" + + "uery\202\323\344\223\002\034\"\027/v1beta1/catalog:search:\001*\022\352" + + "\001\n\020CreateEntryGroup\0229.google.cloud.datac" + + "atalog.v1beta1.CreateEntryGroupRequest\032," + + ".google.cloud.datacatalog.v1beta1.EntryG" + + "roup\"m\332A!parent,entry_group_id,entry_gro" + + "up\202\323\344\223\002C\"4/v1beta1/{parent=projects/*/lo" + + "cations/*}/entryGroups:\013entry_group\022\372\001\n\020" + + "UpdateEntryGroup\0229.google.cloud.datacata" + + "log.v1beta1.UpdateEntryGroupRequest\032,.go" + + "ogle.cloud.datacatalog.v1beta1.EntryGrou" + + "p\"}\332A\013entry_group\332A\027entry_group,update_m" + + "ask\202\323\344\223\002O2@/v1beta1/{entry_group.name=pr" + + "ojects/*/locations/*/entryGroups/*}:\013ent" + + "ry_group\022\313\001\n\rGetEntryGroup\0226.google.clou" + + "d.datacatalog.v1beta1.GetEntryGroupReque" + + "st\032,.google.cloud.datacatalog.v1beta1.En" + + "tryGroup\"T\332A\004name\332A\016name,read_mask\202\323\344\223\0026" + + "\0224/v1beta1/{name=projects/*/locations/*/" + + "entryGroups/*}\022\252\001\n\020DeleteEntryGroup\0229.go" + + "ogle.cloud.datacatalog.v1beta1.DeleteEnt" + + "ryGroupRequest\032\026.google.protobuf.Empty\"C" + + "\332A\004name\202\323\344\223\0026*4/v1beta1/{name=projects/*" + + "/locations/*/entryGroups/*}\022\315\001\n\017ListEntr" + + "yGroups\0228.google.cloud.datacatalog.v1bet" + + "a1.ListEntryGroupsRequest\0329.google.cloud" + + ".datacatalog.v1beta1.ListEntryGroupsResp" + + "onse\"E\332A\006parent\202\323\344\223\0026\0224/v1beta1/{parent=" + + "projects/*/locations/*}/entryGroups\022\323\001\n\013" + + "CreateEntry\0224.google.cloud.datacatalog.v" + + "1beta1.CreateEntryRequest\032\'.google.cloud" + + ".datacatalog.v1beta1.Entry\"e\332A\025parent,en" + + "try_id,entry\202\323\344\223\002G\">/v1beta1/{parent=pro" + + "jects/*/locations/*/entryGroups/*}/entri" + + "es:\005entry\022\335\001\n\013UpdateEntry\0224.google.cloud" + + ".datacatalog.v1beta1.UpdateEntryRequest\032" + + "\'.google.cloud.datacatalog.v1beta1.Entry" + + "\"o\332A\005entry\332A\021entry,update_mask\202\323\344\223\002M2D/v" + + "1beta1/{entry.name=projects/*/locations/" + + "*/entryGroups/*/entries/*}:\005entry\022\252\001\n\013De" + + "leteEntry\0224.google.cloud.datacatalog.v1b" + + "eta1.DeleteEntryRequest\032\026.google.protobu" + + "f.Empty\"M\332A\004name\202\323\344\223\002@*>/v1beta1/{name=p" + + "rojects/*/locations/*/entryGroups/*/entr" + + "ies/*}\022\265\001\n\010GetEntry\0221.google.cloud.datac" + + "atalog.v1beta1.GetEntryRequest\032\'.google." + + "cloud.datacatalog.v1beta1.Entry\"M\332A\004name" + + "\202\323\344\223\002@\022>/v1beta1/{name=projects/*/locati" + + "ons/*/entryGroups/*/entries/*}\022\215\001\n\013Looku" + + "pEntry\0224.google.cloud.datacatalog.v1beta" + + "1.LookupEntryRequest\032\'.google.cloud.data" + + "catalog.v1beta1.Entry\"\037\202\323\344\223\002\031\022\027/v1beta1/" + + "entries:lookup\022\313\001\n\013ListEntries\0224.google." + + "cloud.datacatalog.v1beta1.ListEntriesReq" + + "uest\0325.google.cloud.datacatalog.v1beta1." + + "ListEntriesResponse\"O\332A\006parent\202\323\344\223\002@\022>/v" + + "1beta1/{parent=projects/*/locations/*/en" + + "tryGroups/*}/entries\022\361\001\n\021CreateTagTempla" + + "te\022:.google.cloud.datacatalog.v1beta1.Cr" + + "eateTagTemplateRequest\032-.google.cloud.da" + + "tacatalog.v1beta1.TagTemplate\"q\332A#parent" + + ",tag_template_id,tag_template\202\323\344\223\002E\"5/v1" + + "beta1/{parent=projects/*/locations/*}/ta" + + "gTemplates:\014tag_template\022\276\001\n\016GetTagTempl" + + "ate\0227.google.cloud.datacatalog.v1beta1.G" + + "etTagTemplateRequest\032-.google.cloud.data" + + "catalog.v1beta1.TagTemplate\"D\332A\004name\202\323\344\223" + + "\0027\0225/v1beta1/{name=projects/*/locations/" + + "*/tagTemplates/*}\022\203\002\n\021UpdateTagTemplate\022" + + ":.google.cloud.datacatalog.v1beta1.Updat" + + "eTagTemplateRequest\032-.google.cloud.datac" + + "atalog.v1beta1.TagTemplate\"\202\001\332A\014tag_temp" + + "late\332A\030tag_template,update_mask\202\323\344\223\002R2B/" + + "v1beta1/{tag_template.name=projects/*/lo" + + "cations/*/tagTemplates/*}:\014tag_template\022" + + "\263\001\n\021DeleteTagTemplate\022:.google.cloud.dat" + + "acatalog.v1beta1.DeleteTagTemplateReques" + + "t\032\026.google.protobuf.Empty\"J\332A\nname,force" + + "\202\323\344\223\0027*5/v1beta1/{name=projects/*/locati" + + "ons/*/tagTemplates/*}\022\234\002\n\026CreateTagTempl" + + "ateField\022?.google.cloud.datacatalog.v1be" + + "ta1.CreateTagTemplateFieldRequest\0322.goog" + + "le.cloud.datacatalog.v1beta1.TagTemplate" + + "Field\"\214\001\332A/parent,tag_template_field_id," + + "tag_template_field\202\323\344\223\002T\">/v1beta1/{pare" + + "nt=projects/*/locations/*/tagTemplates/*" + + "}/fields:\022tag_template_field\022\252\002\n\026UpdateT" + + "agTemplateField\022?.google.cloud.datacatal" + + "og.v1beta1.UpdateTagTemplateFieldRequest" + + "\0322.google.cloud.datacatalog.v1beta1.TagT" + + "emplateField\"\232\001\332A\027name,tag_template_fiel" + + "d\332A#name,tag_template_field,update_mask\202" + + "\323\344\223\002T2>/v1beta1/{name=projects/*/locatio" + + "ns/*/tagTemplates/*/fields/*}:\022tag_templ" + + "ate_field\022\200\002\n\026RenameTagTemplateField\022?.g" + + "oogle.cloud.datacatalog.v1beta1.RenameTa" + + "gTemplateFieldRequest\0322.google.cloud.dat" + + "acatalog.v1beta1.TagTemplateField\"q\332A\036na" + + "me,new_tag_template_field_id\202\323\344\223\002J\"E/v1b" + + "eta1/{name=projects/*/locations/*/tagTem" + + "plates/*/fields/*}:rename:\001*\022\242\002\n\037RenameT" + + "agTemplateFieldEnumValue\022H.google.cloud." + + "datacatalog.v1beta1.RenameTagTemplateFie" + + "ldEnumValueRequest\0322.google.cloud.dataca" + + "talog.v1beta1.TagTemplateField\"\200\001\332A name" + + ",new_enum_value_display_name\202\323\344\223\002W\"R/v1b" + + "eta1/{name=projects/*/locations/*/tagTem" + + "plates/*/fields/*/enumValues/*}:rename:\001" + + "*\022\306\001\n\026DeleteTagTemplateField\022?.google.cl" + + "oud.datacatalog.v1beta1.DeleteTagTemplat" + + "eFieldRequest\032\026.google.protobuf.Empty\"S\332" + + "A\nname,force\202\323\344\223\002@*>/v1beta1/{name=proje" + + "cts/*/locations/*/tagTemplates/*/fields/" + + "*}\022\215\002\n\tCreateTag\0222.google.cloud.datacata" + + "log.v1beta1.CreateTagRequest\032%.google.cl" + + "oud.datacatalog.v1beta1.Tag\"\244\001\332A\nparent," + + "tag\202\323\344\223\002\220\001\"E/v1beta1/{parent=projects/*/" + + "locations/*/entryGroups/*/entries/*}/tag" + + "s:\003tagZB\";/v1beta1/{parent=projects/*/lo" + + "cations/*/entryGroups/*}/tags:\003tag\022\240\002\n\tU" + + "pdateTag\0222.google.cloud.datacatalog.v1be" + + "ta1.UpdateTagRequest\032%.google.cloud.data" + + "catalog.v1beta1.Tag\"\267\001\332A\003tag\332A\017tag,updat" + + "e_mask\202\323\344\223\002\230\0012I/v1beta1/{tag.name=projec" + + "ts/*/locations/*/entryGroups/*/entries/*" + + "/tags/*}:\003tagZF2?/v1beta1/{tag.name=proj" + + "ects/*/locations/*/entryGroups/*/tags/*}" + + ":\003tag\022\356\001\n\tDeleteTag\0222.google.cloud.datac" + + "atalog.v1beta1.DeleteTagRequest\032\026.google" + + ".protobuf.Empty\"\224\001\332A\004name\202\323\344\223\002\206\001*E/v1bet" + + "a1/{name=projects/*/locations/*/entryGro" + + "ups/*/entries/*/tags/*}Z=*;/v1beta1/{nam" + + "e=projects/*/locations/*/entryGroups/*/t" + + "ags/*}\022\212\002\n\010ListTags\0221.google.cloud.datac" + + "atalog.v1beta1.ListTagsRequest\0322.google." + + "cloud.datacatalog.v1beta1.ListTagsRespon" + + "se\"\226\001\332A\006parent\202\323\344\223\002\206\001\022E/v1beta1/{parent=" + + "projects/*/locations/*/entryGroups/*/ent" + + "ries/*}/tagsZ=\022;/v1beta1/{parent=project" + + "s/*/locations/*/entryGroups/*}/tags\022\374\001\n\014" + + "SetIamPolicy\022\".google.iam.v1.SetIamPolic" + + "yRequest\032\025.google.iam.v1.Policy\"\260\001\332A\017res" + + "ource,policy\202\323\344\223\002\227\001\"F/v1beta1/{resource=" + + "projects/*/locations/*/tagTemplates/*}:s" + + "etIamPolicy:\001*ZJ\"E/v1beta1/{resource=pro" + + "jects/*/locations/*/entryGroups/*}:setIa" + + "mPolicy:\001*\022\313\002\n\014GetIamPolicy\022\".google.iam" + + ".v1.GetIamPolicyRequest\032\025.google.iam.v1." + + "Policy\"\377\001\332A\010resource\202\323\344\223\002\355\001\"F/v1beta1/{r" + + "esource=projects/*/locations/*/tagTempla" + + "tes/*}:getIamPolicy:\001*ZJ\"E/v1beta1/{reso" + + "urce=projects/*/locations/*/entryGroups/" + + "*}:getIamPolicy:\001*ZT\"O/v1beta1/{resource" + + "=projects/*/locations/*/entryGroups/*/en" + + "tries/*}:getIamPolicy:\001*\022\362\002\n\022TestIamPerm" + + "issions\022(.google.iam.v1.TestIamPermissio" + + "nsRequest\032).google.iam.v1.TestIamPermiss" + + "ionsResponse\"\206\002\202\323\344\223\002\377\001\"L/v1beta1/{resour" + + "ce=projects/*/locations/*/tagTemplates/*" + + "}:testIamPermissions:\001*ZP\"K/v1beta1/{res" + + "ource=projects/*/locations/*/entryGroups" + + "/*}:testIamPermissions:\001*ZZ\"U/v1beta1/{r" + + "esource=projects/*/locations/*/entryGrou" + + "ps/*/entries/*}:testIamPermissions:\001*\032N\312" + + "A\032datacatalog.googleapis.com\322A.https://w" + + "ww.googleapis.com/auth/cloud-platformB\243\003" + + "\n$com.google.cloud.datacatalog.v1beta1P\001" + + "ZFcloud.google.com/go/datacatalog/apiv1b" + + "eta1/datacatalogpb;datacatalogpb\370\001\001\252\002 Go" + + "ogle.Cloud.DataCatalog.V1Beta1\312\002 Google\\" + + "Cloud\\DataCatalog\\V1beta1\352\002#Google::Clou" + + "d::DataCatalog::V1beta1\352A\300\001\n4datacatalog" + + ".googleapis.com/TagTemplateFieldEnumValu" + + "e\022\207\001projects/{project}/locations/{locati" + + "on}/tagTemplates/{tag_template}/fields/{" + + "tag_template_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.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().getMessageTypes().get(0); + internal_static_google_cloud_datacatalog_v1beta1_SearchCatalogRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.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 + .getNestedTypes() + .get(0); + internal_static_google_cloud_datacatalog_v1beta1_SearchCatalogRequest_Scope_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.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().getMessageTypes().get(1); + internal_static_google_cloud_datacatalog_v1beta1_SearchCatalogResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.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().getMessageTypes().get(2); + internal_static_google_cloud_datacatalog_v1beta1_CreateEntryGroupRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.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().getMessageTypes().get(3); + internal_static_google_cloud_datacatalog_v1beta1_UpdateEntryGroupRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datacatalog_v1beta1_UpdateEntryGroupRequest_descriptor, + new java.lang.String[] { + "EntryGroup", "UpdateMask", + }); + internal_static_google_cloud_datacatalog_v1beta1_GetEntryGroupRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_datacatalog_v1beta1_GetEntryGroupRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datacatalog_v1beta1_GetEntryGroupRequest_descriptor, + new java.lang.String[] { + "Name", "ReadMask", + }); + internal_static_google_cloud_datacatalog_v1beta1_DeleteEntryGroupRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_datacatalog_v1beta1_DeleteEntryGroupRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datacatalog_v1beta1_DeleteEntryGroupRequest_descriptor, + new java.lang.String[] { + "Name", "Force", + }); + internal_static_google_cloud_datacatalog_v1beta1_ListEntryGroupsRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_datacatalog_v1beta1_ListEntryGroupsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.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().getMessageTypes().get(7); + internal_static_google_cloud_datacatalog_v1beta1_ListEntryGroupsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datacatalog_v1beta1_ListEntryGroupsResponse_descriptor, + new java.lang.String[] { + "EntryGroups", "NextPageToken", + }); + internal_static_google_cloud_datacatalog_v1beta1_CreateEntryRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_datacatalog_v1beta1_CreateEntryRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.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().getMessageTypes().get(9); + internal_static_google_cloud_datacatalog_v1beta1_UpdateEntryRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datacatalog_v1beta1_UpdateEntryRequest_descriptor, + new java.lang.String[] { + "Entry", "UpdateMask", + }); + internal_static_google_cloud_datacatalog_v1beta1_DeleteEntryRequest_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_datacatalog_v1beta1_DeleteEntryRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datacatalog_v1beta1_DeleteEntryRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_datacatalog_v1beta1_GetEntryRequest_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_datacatalog_v1beta1_GetEntryRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datacatalog_v1beta1_GetEntryRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_datacatalog_v1beta1_LookupEntryRequest_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_datacatalog_v1beta1_LookupEntryRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.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().getMessageTypes().get(13); + internal_static_google_cloud_datacatalog_v1beta1_Entry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.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().getMessageTypes().get(14); + internal_static_google_cloud_datacatalog_v1beta1_EntryGroup_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.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().getMessageTypes().get(15); + internal_static_google_cloud_datacatalog_v1beta1_CreateTagTemplateRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.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().getMessageTypes().get(16); + internal_static_google_cloud_datacatalog_v1beta1_GetTagTemplateRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datacatalog_v1beta1_GetTagTemplateRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_datacatalog_v1beta1_UpdateTagTemplateRequest_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_datacatalog_v1beta1_UpdateTagTemplateRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datacatalog_v1beta1_UpdateTagTemplateRequest_descriptor, + new java.lang.String[] { + "TagTemplate", "UpdateMask", + }); + internal_static_google_cloud_datacatalog_v1beta1_DeleteTagTemplateRequest_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_cloud_datacatalog_v1beta1_DeleteTagTemplateRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datacatalog_v1beta1_DeleteTagTemplateRequest_descriptor, + new java.lang.String[] { + "Name", "Force", + }); + internal_static_google_cloud_datacatalog_v1beta1_CreateTagRequest_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_cloud_datacatalog_v1beta1_CreateTagRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datacatalog_v1beta1_CreateTagRequest_descriptor, + new java.lang.String[] { + "Parent", "Tag", + }); + internal_static_google_cloud_datacatalog_v1beta1_UpdateTagRequest_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_google_cloud_datacatalog_v1beta1_UpdateTagRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datacatalog_v1beta1_UpdateTagRequest_descriptor, + new java.lang.String[] { + "Tag", "UpdateMask", + }); + internal_static_google_cloud_datacatalog_v1beta1_DeleteTagRequest_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_google_cloud_datacatalog_v1beta1_DeleteTagRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datacatalog_v1beta1_DeleteTagRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_datacatalog_v1beta1_CreateTagTemplateFieldRequest_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_google_cloud_datacatalog_v1beta1_CreateTagTemplateFieldRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.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().getMessageTypes().get(23); + internal_static_google_cloud_datacatalog_v1beta1_UpdateTagTemplateFieldRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.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().getMessageTypes().get(24); + internal_static_google_cloud_datacatalog_v1beta1_RenameTagTemplateFieldRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datacatalog_v1beta1_RenameTagTemplateFieldRequest_descriptor, + new java.lang.String[] { + "Name", "NewTagTemplateFieldId", + }); + internal_static_google_cloud_datacatalog_v1beta1_RenameTagTemplateFieldEnumValueRequest_descriptor = + getDescriptor().getMessageTypes().get(25); + internal_static_google_cloud_datacatalog_v1beta1_RenameTagTemplateFieldEnumValueRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datacatalog_v1beta1_RenameTagTemplateFieldEnumValueRequest_descriptor, + new java.lang.String[] { + "Name", "NewEnumValueDisplayName", + }); + internal_static_google_cloud_datacatalog_v1beta1_DeleteTagTemplateFieldRequest_descriptor = + getDescriptor().getMessageTypes().get(26); + internal_static_google_cloud_datacatalog_v1beta1_DeleteTagTemplateFieldRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datacatalog_v1beta1_DeleteTagTemplateFieldRequest_descriptor, + new java.lang.String[] { + "Name", "Force", + }); + internal_static_google_cloud_datacatalog_v1beta1_ListTagsRequest_descriptor = + getDescriptor().getMessageTypes().get(27); + internal_static_google_cloud_datacatalog_v1beta1_ListTagsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.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().getMessageTypes().get(28); + internal_static_google_cloud_datacatalog_v1beta1_ListTagsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datacatalog_v1beta1_ListTagsResponse_descriptor, + new java.lang.String[] { + "Tags", "NextPageToken", + }); + internal_static_google_cloud_datacatalog_v1beta1_ListEntriesRequest_descriptor = + getDescriptor().getMessageTypes().get(29); + internal_static_google_cloud_datacatalog_v1beta1_ListEntriesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.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().getMessageTypes().get(30); + internal_static_google_cloud_datacatalog_v1beta1_ListEntriesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datacatalog_v1beta1_ListEntriesResponse_descriptor, + new java.lang.String[] { + "Entries", "NextPageToken", + }); + 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); + 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(); + } + + // @@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 new file mode 100644 index 000000000000..1a4ecb61b441 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DeleteEntryGroupRequest.java @@ -0,0 +1,745 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/datacatalog.proto + +package com.google.cloud.datacatalog.v1beta1; + +/** + * + * + *
+ * Request message for
+ * [DeleteEntryGroup][google.cloud.datacatalog.v1beta1.DataCatalog.DeleteEntryGroup].
+ * 
+ * + * Protobuf type {@code google.cloud.datacatalog.v1beta1.DeleteEntryGroupRequest} + */ +public final class DeleteEntryGroupRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.DeleteEntryGroupRequest) + DeleteEntryGroupRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteEntryGroupRequest.newBuilder() to construct. + private DeleteEntryGroupRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteEntryGroupRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteEntryGroupRequest(); + } + + 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..69f3d759b503 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DeleteEntryGroupRequestOrBuilder.java @@ -0,0 +1,69 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/datacatalog.proto + +package com.google.cloud.datacatalog.v1beta1; + +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 new file mode 100644 index 000000000000..0780d20143bb --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DeleteEntryRequest.java @@ -0,0 +1,655 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/datacatalog.proto + +package com.google.cloud.datacatalog.v1beta1; + +/** + * + * + *
+ * Request message for
+ * [DeleteEntry][google.cloud.datacatalog.v1beta1.DataCatalog.DeleteEntry].
+ * 
+ * + * Protobuf type {@code google.cloud.datacatalog.v1beta1.DeleteEntryRequest} + */ +public final class DeleteEntryRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.DeleteEntryRequest) + DeleteEntryRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteEntryRequest.newBuilder() to construct. + private DeleteEntryRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteEntryRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteEntryRequest(); + } + + 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.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 clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..283a4042336e --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DeleteEntryRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/datacatalog.proto + +package com.google.cloud.datacatalog.v1beta1; + +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 new file mode 100644 index 000000000000..1d77e5a6353c --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DeletePolicyTagRequest.java @@ -0,0 +1,648 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/policytagmanager.proto + +package com.google.cloud.datacatalog.v1beta1; + +/** + * + * + *
+ * Request message for
+ * [DeletePolicyTag][google.cloud.datacatalog.v1beta1.PolicyTagManager.DeletePolicyTag].
+ * 
+ * + * Protobuf type {@code google.cloud.datacatalog.v1beta1.DeletePolicyTagRequest} + */ +public final class DeletePolicyTagRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.DeletePolicyTagRequest) + DeletePolicyTagRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeletePolicyTagRequest.newBuilder() to construct. + private DeletePolicyTagRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeletePolicyTagRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeletePolicyTagRequest(); + } + + 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.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 clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..4d159415e702 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DeletePolicyTagRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/policytagmanager.proto + +package com.google.cloud.datacatalog.v1beta1; + +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 new file mode 100644 index 000000000000..e51d2da20d2d --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DeleteTagRequest.java @@ -0,0 +1,655 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/datacatalog.proto + +package com.google.cloud.datacatalog.v1beta1; + +/** + * + * + *
+ * Request message for
+ * [DeleteTag][google.cloud.datacatalog.v1beta1.DataCatalog.DeleteTag].
+ * 
+ * + * Protobuf type {@code google.cloud.datacatalog.v1beta1.DeleteTagRequest} + */ +public final class DeleteTagRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.DeleteTagRequest) + DeleteTagRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteTagRequest.newBuilder() to construct. + private DeleteTagRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteTagRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteTagRequest(); + } + + 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.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 clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..e4731e657346 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DeleteTagRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/datacatalog.proto + +package com.google.cloud.datacatalog.v1beta1; + +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 new file mode 100644 index 000000000000..dbddf18c8459 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DeleteTagTemplateFieldRequest.java @@ -0,0 +1,767 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/datacatalog.proto + +package com.google.cloud.datacatalog.v1beta1; + +/** + * + * + *
+ * Request message for
+ * [DeleteTagTemplateField][google.cloud.datacatalog.v1beta1.DataCatalog.DeleteTagTemplateField].
+ * 
+ * + * Protobuf type {@code google.cloud.datacatalog.v1beta1.DeleteTagTemplateFieldRequest} + */ +public final class DeleteTagTemplateFieldRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.DeleteTagTemplateFieldRequest) + DeleteTagTemplateFieldRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteTagTemplateFieldRequest.newBuilder() to construct. + private DeleteTagTemplateFieldRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteTagTemplateFieldRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteTagTemplateFieldRequest(); + } + + 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..e0b7518596d8 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DeleteTagTemplateFieldRequestOrBuilder.java @@ -0,0 +1,73 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/datacatalog.proto + +package com.google.cloud.datacatalog.v1beta1; + +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 new file mode 100644 index 000000000000..35acc364df54 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DeleteTagTemplateRequest.java @@ -0,0 +1,760 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/datacatalog.proto + +package com.google.cloud.datacatalog.v1beta1; + +/** + * + * + *
+ * Request message for
+ * [DeleteTagTemplate][google.cloud.datacatalog.v1beta1.DataCatalog.DeleteTagTemplate].
+ * 
+ * + * Protobuf type {@code google.cloud.datacatalog.v1beta1.DeleteTagTemplateRequest} + */ +public final class DeleteTagTemplateRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.DeleteTagTemplateRequest) + DeleteTagTemplateRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteTagTemplateRequest.newBuilder() to construct. + private DeleteTagTemplateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteTagTemplateRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteTagTemplateRequest(); + } + + 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..a423d41ca8ee --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DeleteTagTemplateRequestOrBuilder.java @@ -0,0 +1,73 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/datacatalog.proto + +package com.google.cloud.datacatalog.v1beta1; + +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 new file mode 100644 index 000000000000..d78014a70aa3 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DeleteTaxonomyRequest.java @@ -0,0 +1,648 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/policytagmanager.proto + +package com.google.cloud.datacatalog.v1beta1; + +/** + * + * + *
+ * Request message for
+ * [DeleteTaxonomy][google.cloud.datacatalog.v1beta1.PolicyTagManager.DeleteTaxonomy].
+ * 
+ * + * Protobuf type {@code google.cloud.datacatalog.v1beta1.DeleteTaxonomyRequest} + */ +public final class DeleteTaxonomyRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.DeleteTaxonomyRequest) + DeleteTaxonomyRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteTaxonomyRequest.newBuilder() to construct. + private DeleteTaxonomyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteTaxonomyRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteTaxonomyRequest(); + } + + 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.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 clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..0b0fc4767c8a --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DeleteTaxonomyRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/policytagmanager.proto + +package com.google.cloud.datacatalog.v1beta1; + +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 new file mode 100644 index 000000000000..1132272bcc11 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/Entry.java @@ -0,0 +1,4459 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/datacatalog.proto + +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} + */ +public final class Entry extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.Entry) + EntryOrBuilder { + private static final long serialVersionUID = 0L; + // Use Entry.newBuilder() to construct. + private Entry(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Entry() { + name_ = ""; + linkedResource_ = ""; + displayName_ = ""; + description_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Entry(); + } + + 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.GeneratedMessageV3.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 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. 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.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. 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.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 schema_ != null; + } + /** + * + * + *
+   * 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 sourceSystemTimestamps_ != null; + } + /** + * + * + *
+   * 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 usageSignal_ != null; + } + /** + * + * + *
+   * 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.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (entryTypeCase_ == 2) { + output.writeEnum(2, ((java.lang.Integer) entryType_)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, description_); + } + if (schema_ != null) { + output.writeMessage(5, getSchema()); + } + if (typeSpecCase_ == 6) { + output.writeMessage(6, (com.google.cloud.datacatalog.v1beta1.GcsFilesetSpec) typeSpec_); + } + if (sourceSystemTimestamps_ != null) { + output.writeMessage(7, getSourceSystemTimestamps()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(linkedResource_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, linkedResource_); + } + if (typeSpecCase_ == 12) { + output.writeMessage(12, (com.google.cloud.datacatalog.v1beta1.BigQueryTableSpec) typeSpec_); + } + if (usageSignal_ != null) { + output.writeMessage(13, getUsageSignal()); + } + if (typeSpecCase_ == 15) { + output.writeMessage( + 15, (com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec) typeSpec_); + } + if (entryTypeCase_ == 16) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 16, entryType_); + } + if (systemCase_ == 17) { + output.writeEnum(17, ((java.lang.Integer) system_)); + } + if (systemCase_ == 18) { + com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (entryTypeCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeEnumSize( + 2, ((java.lang.Integer) entryType_)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, description_); + } + if (schema_ != null) { + 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 (sourceSystemTimestamps_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(7, getSourceSystemTimestamps()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(linkedResource_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, linkedResource_); + } + if (typeSpecCase_ == 12) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 12, (com.google.cloud.datacatalog.v1beta1.BigQueryTableSpec) typeSpec_); + } + if (usageSignal_ != null) { + 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.GeneratedMessageV3.computeStringSize(16, entryType_); + } + if (systemCase_ == 17) { + size += + com.google.protobuf.CodedOutputStream.computeEnumSize(17, ((java.lang.Integer) system_)); + } + if (systemCase_ == 18) { + size += com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @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_; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.schema_ = schemaBuilder_ == null ? schema_ : schemaBuilder_.build(); + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.sourceSystemTimestamps_ = + sourceSystemTimestampsBuilder_ == null + ? sourceSystemTimestamps_ + : sourceSystemTimestampsBuilder_.build(); + } + if (((from_bitField0_ & 0x00002000) != 0)) { + result.usageSignal_ = + usageSignalBuilder_ == null ? usageSignal_ : usageSignalBuilder_.build(); + } + } + + 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 clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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(getSchemaFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000800; + break; + } // case 42 + case 50: + { + input.readMessage(getGcsFilesetSpecFieldBuilder().getBuilder(), extensionRegistry); + typeSpecCase_ = 6; + break; + } // case 50 + case 58: + { + input.readMessage( + getSourceSystemTimestampsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00001000; + break; + } // case 58 + case 74: + { + linkedResource_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 74 + case 98: + { + input.readMessage( + getBigqueryTableSpecFieldBuilder().getBuilder(), extensionRegistry); + typeSpecCase_ = 12; + break; + } // case 98 + case 106: + { + input.readMessage(getUsageSignalFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00002000; + break; + } // case 106 + case 122: + { + input.readMessage( + getBigqueryDateShardedSpecFieldBuilder().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. 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.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. 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.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. 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.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. 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.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. 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.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.SingleFieldBuilderV3< + 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 getGcsFilesetSpecFieldBuilder().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.SingleFieldBuilderV3< + com.google.cloud.datacatalog.v1beta1.GcsFilesetSpec, + com.google.cloud.datacatalog.v1beta1.GcsFilesetSpec.Builder, + com.google.cloud.datacatalog.v1beta1.GcsFilesetSpecOrBuilder> + getGcsFilesetSpecFieldBuilder() { + if (gcsFilesetSpecBuilder_ == null) { + if (!(typeSpecCase_ == 6)) { + typeSpec_ = com.google.cloud.datacatalog.v1beta1.GcsFilesetSpec.getDefaultInstance(); + } + gcsFilesetSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + 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.SingleFieldBuilderV3< + 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 getBigqueryTableSpecFieldBuilder().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.SingleFieldBuilderV3< + com.google.cloud.datacatalog.v1beta1.BigQueryTableSpec, + com.google.cloud.datacatalog.v1beta1.BigQueryTableSpec.Builder, + com.google.cloud.datacatalog.v1beta1.BigQueryTableSpecOrBuilder> + getBigqueryTableSpecFieldBuilder() { + if (bigqueryTableSpecBuilder_ == null) { + if (!(typeSpecCase_ == 12)) { + typeSpec_ = com.google.cloud.datacatalog.v1beta1.BigQueryTableSpec.getDefaultInstance(); + } + bigqueryTableSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + 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.SingleFieldBuilderV3< + 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 getBigqueryDateShardedSpecFieldBuilder().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.SingleFieldBuilderV3< + com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec, + com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec.Builder, + com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpecOrBuilder> + getBigqueryDateShardedSpecFieldBuilder() { + if (bigqueryDateShardedSpecBuilder_ == null) { + if (!(typeSpecCase_ == 15)) { + typeSpec_ = + com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec.getDefaultInstance(); + } + bigqueryDateShardedSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + 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.SingleFieldBuilderV3< + 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); + } + 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 getSchemaFieldBuilder().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.SingleFieldBuilderV3< + com.google.cloud.datacatalog.v1beta1.Schema, + com.google.cloud.datacatalog.v1beta1.Schema.Builder, + com.google.cloud.datacatalog.v1beta1.SchemaOrBuilder> + getSchemaFieldBuilder() { + if (schemaBuilder_ == null) { + schemaBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + 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.SingleFieldBuilderV3< + 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); + } + 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 getSourceSystemTimestampsFieldBuilder().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.SingleFieldBuilderV3< + com.google.cloud.datacatalog.v1beta1.SystemTimestamps, + com.google.cloud.datacatalog.v1beta1.SystemTimestamps.Builder, + com.google.cloud.datacatalog.v1beta1.SystemTimestampsOrBuilder> + getSourceSystemTimestampsFieldBuilder() { + if (sourceSystemTimestampsBuilder_ == null) { + sourceSystemTimestampsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + 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.SingleFieldBuilderV3< + 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); + } + 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 getUsageSignalFieldBuilder().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.SingleFieldBuilderV3< + com.google.cloud.datacatalog.v1beta1.UsageSignal, + com.google.cloud.datacatalog.v1beta1.UsageSignal.Builder, + com.google.cloud.datacatalog.v1beta1.UsageSignalOrBuilder> + getUsageSignalFieldBuilder() { + if (usageSignalBuilder_ == null) { + usageSignalBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + 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_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..e39039f79047 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/EntryGroup.java @@ -0,0 +1,1360 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/datacatalog.proto + +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} + */ +public final class EntryGroup extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.EntryGroup) + EntryGroupOrBuilder { + private static final long serialVersionUID = 0L; + // Use EntryGroup.newBuilder() to construct. + private EntryGroup(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private EntryGroup() { + name_ = ""; + displayName_ = ""; + description_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new EntryGroup(); + } + + 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.GeneratedMessageV3.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); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * 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; + * + * @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 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; + * + * @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 dataCatalogTimestamps_ != null; + } + /** + * + * + *
+   * 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.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_); + } + if (dataCatalogTimestamps_ != null) { + 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.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); + } + if (dataCatalogTimestamps_ != null) { + 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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @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_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.dataCatalogTimestamps_ = + dataCatalogTimestampsBuilder_ == null + ? dataCatalogTimestamps_ + : dataCatalogTimestampsBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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( + getDataCatalogTimestampsFieldBuilder().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_ = ""; + /** + * + * + *
+     * 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; + * + * @return The name. + */ + public java.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 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; + * + * @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 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; + * + * @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 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; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * 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; + * + * @param value The 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.SingleFieldBuilderV3< + 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); + } + 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 getDataCatalogTimestampsFieldBuilder().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.SingleFieldBuilderV3< + com.google.cloud.datacatalog.v1beta1.SystemTimestamps, + com.google.cloud.datacatalog.v1beta1.SystemTimestamps.Builder, + com.google.cloud.datacatalog.v1beta1.SystemTimestampsOrBuilder> + getDataCatalogTimestampsFieldBuilder() { + if (dataCatalogTimestampsBuilder_ == null) { + dataCatalogTimestampsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + 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_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/EntryGroupName.java rename to java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/EntryGroupName.java 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 new file mode 100644 index 000000000000..11dc7c7fec16 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/EntryGroupOrBuilder.java @@ -0,0 +1,161 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/datacatalog.proto + +package com.google.cloud.datacatalog.v1beta1; + +public interface EntryGroupOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1beta1.EntryGroup) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * 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; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * 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; + * + * @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/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/EntryName.java rename to java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/EntryName.java 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 new file mode 100644 index 000000000000..d9c477a7d06f --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/EntryOrBuilder.java @@ -0,0 +1,625 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/datacatalog.proto + +package com.google.cloud.datacatalog.v1beta1; + +public interface EntryOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1beta1.Entry) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. 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.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Output only. 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.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 new file mode 100644 index 000000000000..b2db61bdeaef --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/EntryType.java @@ -0,0 +1,230 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/datacatalog.proto + +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} + */ +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), + ; + + /** + * + * + *
+   * 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 final 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 new file mode 100644 index 000000000000..46306377d823 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ExportTaxonomiesRequest.java @@ -0,0 +1,1170 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/policytagmanagerserialization.proto + +package com.google.cloud.datacatalog.v1beta1; + +/** + * + * + *
+ * Request message for
+ * [ExportTaxonomies][google.cloud.datacatalog.v1beta1.PolicyTagManagerSerialization.ExportTaxonomies].
+ * 
+ * + * Protobuf type {@code google.cloud.datacatalog.v1beta1.ExportTaxonomiesRequest} + */ +public final class ExportTaxonomiesRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.ExportTaxonomiesRequest) + ExportTaxonomiesRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ExportTaxonomiesRequest.newBuilder() to construct. + private ExportTaxonomiesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ExportTaxonomiesRequest() { + parent_ = ""; + taxonomies_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ExportTaxonomiesRequest(); + } + + 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + for (int i = 0; i < taxonomies_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..516f06ae8a57 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ExportTaxonomiesRequestOrBuilder.java @@ -0,0 +1,142 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/policytagmanagerserialization.proto + +package com.google.cloud.datacatalog.v1beta1; + +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 new file mode 100644 index 000000000000..96a8f799c9f8 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ExportTaxonomiesResponse.java @@ -0,0 +1,959 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/policytagmanagerserialization.proto + +package com.google.cloud.datacatalog.v1beta1; + +/** + * + * + *
+ * Response message for
+ * [ExportTaxonomies][google.cloud.datacatalog.v1beta1.PolicyTagManagerSerialization.ExportTaxonomies].
+ * 
+ * + * Protobuf type {@code google.cloud.datacatalog.v1beta1.ExportTaxonomiesResponse} + */ +public final class ExportTaxonomiesResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.ExportTaxonomiesResponse) + ExportTaxonomiesResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ExportTaxonomiesResponse.newBuilder() to construct. + private ExportTaxonomiesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ExportTaxonomiesResponse() { + taxonomies_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ExportTaxonomiesResponse(); + } + + 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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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.GeneratedMessageV3.alwaysUseFieldBuilders + ? getTaxonomiesFieldBuilder() + : 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.RepeatedFieldBuilderV3< + 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 getTaxonomiesFieldBuilder().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 getTaxonomiesFieldBuilder() + .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 getTaxonomiesFieldBuilder() + .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 getTaxonomiesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datacatalog.v1beta1.SerializedTaxonomy, + com.google.cloud.datacatalog.v1beta1.SerializedTaxonomy.Builder, + com.google.cloud.datacatalog.v1beta1.SerializedTaxonomyOrBuilder> + getTaxonomiesFieldBuilder() { + if (taxonomiesBuilder_ == null) { + taxonomiesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + 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_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..eb3fa6f2f340 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ExportTaxonomiesResponseOrBuilder.java @@ -0,0 +1,78 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/policytagmanagerserialization.proto + +package com.google.cloud.datacatalog.v1beta1; + +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/FieldType.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/FieldType.java new file mode 100644 index 000000000000..e3ad20b5f3e0 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/FieldType.java @@ -0,0 +1,2733 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/tags.proto + +package com.google.cloud.datacatalog.v1beta1; + +/** Protobuf type {@code google.cloud.datacatalog.v1beta1.FieldType} */ +public final class FieldType extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.FieldType) + FieldTypeOrBuilder { + private static final long serialVersionUID = 0L; + // Use FieldType.newBuilder() to construct. + private FieldType(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private FieldType() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new 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.GeneratedMessageV3.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), + ; + + /** + * + * + *
+     * 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 final 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.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.FieldType.EnumType) + EnumTypeOrBuilder { + private static final long serialVersionUID = 0L; + // Use EnumType.newBuilder() to construct. + private EnumType(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private EnumType() { + allowedValues_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new EnumType(); + } + + 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.GeneratedMessageV3.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.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.FieldType.EnumType.EnumValue) + EnumValueOrBuilder { + private static final long serialVersionUID = 0L; + // Use EnumValue.newBuilder() to construct. + private EnumValue(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private EnumValue() { + displayName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new EnumValue(); + } + + 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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.GeneratedMessageV3.alwaysUseFieldBuilders + ? getAllowedValuesFieldBuilder() + : 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.RepeatedFieldBuilderV3< + 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 getAllowedValuesFieldBuilder().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 getAllowedValuesFieldBuilder() + .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 getAllowedValuesFieldBuilder() + .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 getAllowedValuesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + 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> + getAllowedValuesFieldBuilder() { + if (allowedValuesBuilder_ == null) { + allowedValuesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + 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_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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(getEnumTypeFieldBuilder().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.SingleFieldBuilderV3< + 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 getEnumTypeFieldBuilder().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.SingleFieldBuilderV3< + com.google.cloud.datacatalog.v1beta1.FieldType.EnumType, + com.google.cloud.datacatalog.v1beta1.FieldType.EnumType.Builder, + com.google.cloud.datacatalog.v1beta1.FieldType.EnumTypeOrBuilder> + getEnumTypeFieldBuilder() { + if (enumTypeBuilder_ == null) { + if (!(typeDeclCase_ == 2)) { + typeDecl_ = com.google.cloud.datacatalog.v1beta1.FieldType.EnumType.getDefaultInstance(); + } + enumTypeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + 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_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..6f09d9034235 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/FieldTypeOrBuilder.java @@ -0,0 +1,99 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/tags.proto + +package com.google.cloud.datacatalog.v1beta1; + +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 new file mode 100644 index 000000000000..c258761cffec --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/GcsFileSpec.java @@ -0,0 +1,1010 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/gcs_fileset_spec.proto + +package com.google.cloud.datacatalog.v1beta1; + +/** + * + * + *
+ * Specifications of a single file in Cloud Storage.
+ * 
+ * + * Protobuf type {@code google.cloud.datacatalog.v1beta1.GcsFileSpec} + */ +public final class GcsFileSpec extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.GcsFileSpec) + GcsFileSpecOrBuilder { + private static final long serialVersionUID = 0L; + // Use GcsFileSpec.newBuilder() to construct. + private GcsFileSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GcsFileSpec() { + filePath_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GcsFileSpec(); + } + + 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.GeneratedMessageV3.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); + } + + 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 gcsTimestamps_ != null; + } + /** + * + * + *
+   * 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.GeneratedMessageV3.isStringEmpty(filePath_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, filePath_); + } + if (gcsTimestamps_ != null) { + 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.GeneratedMessageV3.isStringEmpty(filePath_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, filePath_); + } + if (gcsTimestamps_ != null) { + 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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @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_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.gcsTimestamps_ = + gcsTimestampsBuilder_ == null ? gcsTimestamps_ : gcsTimestampsBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.sizeBytes_ = sizeBytes_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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(getGcsTimestampsFieldBuilder().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.SingleFieldBuilderV3< + 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); + } + 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 getGcsTimestampsFieldBuilder().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.SingleFieldBuilderV3< + com.google.cloud.datacatalog.v1beta1.SystemTimestamps, + com.google.cloud.datacatalog.v1beta1.SystemTimestamps.Builder, + com.google.cloud.datacatalog.v1beta1.SystemTimestampsOrBuilder> + getGcsTimestampsFieldBuilder() { + if (gcsTimestampsBuilder_ == null) { + gcsTimestampsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + 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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..91d5ebccccc9 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/GcsFileSpecOrBuilder.java @@ -0,0 +1,104 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/gcs_fileset_spec.proto + +package com.google.cloud.datacatalog.v1beta1; + +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 new file mode 100644 index 000000000000..8f3de3b15527 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/GcsFilesetSpec.java @@ -0,0 +1,1648 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/gcs_fileset_spec.proto + +package com.google.cloud.datacatalog.v1beta1; + +/** + * + * + *
+ * Describes a Cloud Storage fileset entry.
+ * 
+ * + * Protobuf type {@code google.cloud.datacatalog.v1beta1.GcsFilesetSpec} + */ +public final class GcsFilesetSpec extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.GcsFilesetSpec) + GcsFilesetSpecOrBuilder { + private static final long serialVersionUID = 0L; + // Use GcsFilesetSpec.newBuilder() to construct. + private GcsFilesetSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GcsFilesetSpec() { + filePatterns_ = com.google.protobuf.LazyStringArrayList.emptyList(); + sampleGcsFileSpecs_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GcsFilesetSpec(); + } + + 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.GeneratedMessageV3.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/gsutil/addlhelp/WildcardNames)
+   * 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/gsutil/addlhelp/WildcardNames)
+   * 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/gsutil/addlhelp/WildcardNames)
+   * 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/gsutil/addlhelp/WildcardNames)
+   * 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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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.GeneratedMessageV3.alwaysUseFieldBuilders + ? getSampleGcsFileSpecsFieldBuilder() + : 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/gsutil/addlhelp/WildcardNames)
+     * 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/gsutil/addlhelp/WildcardNames)
+     * 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/gsutil/addlhelp/WildcardNames)
+     * 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/gsutil/addlhelp/WildcardNames)
+     * 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/gsutil/addlhelp/WildcardNames)
+     * 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/gsutil/addlhelp/WildcardNames)
+     * 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/gsutil/addlhelp/WildcardNames)
+     * 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/gsutil/addlhelp/WildcardNames)
+     * 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/gsutil/addlhelp/WildcardNames)
+     * 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.RepeatedFieldBuilderV3< + 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 getSampleGcsFileSpecsFieldBuilder().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 getSampleGcsFileSpecsFieldBuilder() + .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 getSampleGcsFileSpecsFieldBuilder() + .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 getSampleGcsFileSpecsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datacatalog.v1beta1.GcsFileSpec, + com.google.cloud.datacatalog.v1beta1.GcsFileSpec.Builder, + com.google.cloud.datacatalog.v1beta1.GcsFileSpecOrBuilder> + getSampleGcsFileSpecsFieldBuilder() { + if (sampleGcsFileSpecsBuilder_ == null) { + sampleGcsFileSpecsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + 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_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..7aef4aad51b7 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/GcsFilesetSpecOrBuilder.java @@ -0,0 +1,252 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/gcs_fileset_spec.proto + +package com.google.cloud.datacatalog.v1beta1; + +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/gsutil/addlhelp/WildcardNames)
+   * 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/gsutil/addlhelp/WildcardNames)
+   * 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/gsutil/addlhelp/WildcardNames)
+   * 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/gsutil/addlhelp/WildcardNames)
+   * 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 new file mode 100644 index 000000000000..38b2d6705dab --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/GcsFilesetSpecOuterClass.java @@ -0,0 +1,99 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/gcs_fileset_spec.proto + +package com.google.cloud.datacatalog.v1beta1; + +public final class GcsFilesetSpecOuterClass { + private 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.GeneratedMessageV3.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.GeneratedMessageV3.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\"\201\001\n\016GcsFilesetSpec\022\033\n\rfi" + + "le_patterns\030\001 \003(\tB\004\342A\001\002\022R\n\025sample_gcs_fi" + + "le_specs\030\002 \003(\0132-.google.cloud.datacatalo" + + "g.v1beta1.GcsFileSpecB\004\342A\001\003\"\222\001\n\013GcsFileS" + + "pec\022\027\n\tfile_path\030\001 \001(\tB\004\342A\001\002\022P\n\016gcs_time" + + "stamps\030\002 \001(\01322.google.cloud.datacatalog." + + "v1beta1.SystemTimestampsB\004\342A\001\003\022\030\n\nsize_b" + + "ytes\030\004 \001(\003B\004\342A\001\003B\337\001\n$com.google.cloud.da" + + "tacatalog.v1beta1P\001ZFcloud.google.com/go" + + "/datacatalog/apiv1beta1/datacatalogpb;da" + + "tacatalogpb\370\001\001\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.api.FieldBehaviorProto.getDescriptor(), + com.google.cloud.datacatalog.v1beta1.Timestamps.getDescriptor(), + }); + internal_static_google_cloud_datacatalog_v1beta1_GcsFilesetSpec_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_datacatalog_v1beta1_GcsFilesetSpec_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datacatalog_v1beta1_GcsFilesetSpec_descriptor, + new java.lang.String[] { + "FilePatterns", "SampleGcsFileSpecs", + }); + internal_static_google_cloud_datacatalog_v1beta1_GcsFileSpec_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_datacatalog_v1beta1_GcsFileSpec_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datacatalog_v1beta1_GcsFileSpec_descriptor, + new java.lang.String[] { + "FilePath", "GcsTimestamps", "SizeBytes", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.cloud.datacatalog.v1beta1.Timestamps.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/GetEntryGroupRequest.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/GetEntryGroupRequest.java new file mode 100644 index 000000000000..caee37c3f41e --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/GetEntryGroupRequest.java @@ -0,0 +1,904 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/datacatalog.proto + +package com.google.cloud.datacatalog.v1beta1; + +/** + * + * + *
+ * Request message for
+ * [GetEntryGroup][google.cloud.datacatalog.v1beta1.DataCatalog.GetEntryGroup].
+ * 
+ * + * Protobuf type {@code google.cloud.datacatalog.v1beta1.GetEntryGroupRequest} + */ +public final class GetEntryGroupRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.GetEntryGroupRequest) + GetEntryGroupRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetEntryGroupRequest.newBuilder() to construct. + private GetEntryGroupRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetEntryGroupRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetEntryGroupRequest(); + } + + 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.GeneratedMessageV3.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); + } + + 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 readMask_ != null; + } + /** + * + * + *
+   * 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.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (readMask_ != null) { + 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.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (readMask_ != null) { + 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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @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_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.readMask_ = readMaskBuilder_ == null ? readMask_ : readMaskBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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(getReadMaskFieldBuilder().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.SingleFieldBuilderV3< + 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); + } + 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 getReadMaskFieldBuilder().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.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getReadMaskFieldBuilder() { + if (readMaskBuilder_ == null) { + readMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getReadMask(), getParentForChildren(), isClean()); + readMask_ = null; + } + return readMaskBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..69d8a26c54ef --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/GetEntryGroupRequestOrBuilder.java @@ -0,0 +1,91 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/datacatalog.proto + +package com.google.cloud.datacatalog.v1beta1; + +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 new file mode 100644 index 000000000000..3edb620e3a3e --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/GetEntryRequest.java @@ -0,0 +1,654 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/datacatalog.proto + +package com.google.cloud.datacatalog.v1beta1; + +/** + * + * + *
+ * Request message for
+ * [GetEntry][google.cloud.datacatalog.v1beta1.DataCatalog.GetEntry].
+ * 
+ * + * Protobuf type {@code google.cloud.datacatalog.v1beta1.GetEntryRequest} + */ +public final class GetEntryRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.GetEntryRequest) + GetEntryRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetEntryRequest.newBuilder() to construct. + private GetEntryRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetEntryRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetEntryRequest(); + } + + 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.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 clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..50e4f6f4eeaa --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/GetEntryRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/datacatalog.proto + +package com.google.cloud.datacatalog.v1beta1; + +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 new file mode 100644 index 000000000000..a465a3528d21 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/GetPolicyTagRequest.java @@ -0,0 +1,641 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/policytagmanager.proto + +package com.google.cloud.datacatalog.v1beta1; + +/** + * + * + *
+ * Request message for
+ * [GetPolicyTag][google.cloud.datacatalog.v1beta1.PolicyTagManager.GetPolicyTag].
+ * 
+ * + * Protobuf type {@code google.cloud.datacatalog.v1beta1.GetPolicyTagRequest} + */ +public final class GetPolicyTagRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.GetPolicyTagRequest) + GetPolicyTagRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetPolicyTagRequest.newBuilder() to construct. + private GetPolicyTagRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetPolicyTagRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetPolicyTagRequest(); + } + + 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.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 clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..fdd5a684dac7 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/GetPolicyTagRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/policytagmanager.proto + +package com.google.cloud.datacatalog.v1beta1; + +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 new file mode 100644 index 000000000000..23217e145cc9 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/GetTagTemplateRequest.java @@ -0,0 +1,655 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/datacatalog.proto + +package com.google.cloud.datacatalog.v1beta1; + +/** + * + * + *
+ * Request message for
+ * [GetTagTemplate][google.cloud.datacatalog.v1beta1.DataCatalog.GetTagTemplate].
+ * 
+ * + * Protobuf type {@code google.cloud.datacatalog.v1beta1.GetTagTemplateRequest} + */ +public final class GetTagTemplateRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.GetTagTemplateRequest) + GetTagTemplateRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetTagTemplateRequest.newBuilder() to construct. + private GetTagTemplateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetTagTemplateRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetTagTemplateRequest(); + } + + 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.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 clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..ddb7cbb448ff --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/GetTagTemplateRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/datacatalog.proto + +package com.google.cloud.datacatalog.v1beta1; + +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 new file mode 100644 index 000000000000..d01451b62b33 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/GetTaxonomyRequest.java @@ -0,0 +1,641 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/policytagmanager.proto + +package com.google.cloud.datacatalog.v1beta1; + +/** + * + * + *
+ * Request message for
+ * [GetTaxonomy][google.cloud.datacatalog.v1beta1.PolicyTagManager.GetTaxonomy].
+ * 
+ * + * Protobuf type {@code google.cloud.datacatalog.v1beta1.GetTaxonomyRequest} + */ +public final class GetTaxonomyRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.GetTaxonomyRequest) + GetTaxonomyRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetTaxonomyRequest.newBuilder() to construct. + private GetTaxonomyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetTaxonomyRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetTaxonomyRequest(); + } + + 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.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 clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..4c6b802e443f --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/GetTaxonomyRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/policytagmanager.proto + +package com.google.cloud.datacatalog.v1beta1; + +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 new file mode 100644 index 000000000000..f2925368deb4 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ImportTaxonomiesRequest.java @@ -0,0 +1,1028 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/policytagmanagerserialization.proto + +package com.google.cloud.datacatalog.v1beta1; + +/** + * + * + *
+ * Request message for
+ * [ImportTaxonomies][google.cloud.datacatalog.v1beta1.PolicyTagManagerSerialization.ImportTaxonomies].
+ * 
+ * + * Protobuf type {@code google.cloud.datacatalog.v1beta1.ImportTaxonomiesRequest} + */ +public final class ImportTaxonomiesRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.ImportTaxonomiesRequest) + ImportTaxonomiesRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ImportTaxonomiesRequest.newBuilder() to construct. + private ImportTaxonomiesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ImportTaxonomiesRequest() { + parent_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ImportTaxonomiesRequest(); + } + + 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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(getInlineSourceFieldBuilder().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.SingleFieldBuilderV3< + 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 getInlineSourceFieldBuilder().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.SingleFieldBuilderV3< + com.google.cloud.datacatalog.v1beta1.InlineSource, + com.google.cloud.datacatalog.v1beta1.InlineSource.Builder, + com.google.cloud.datacatalog.v1beta1.InlineSourceOrBuilder> + getInlineSourceFieldBuilder() { + if (inlineSourceBuilder_ == null) { + if (!(sourceCase_ == 2)) { + source_ = com.google.cloud.datacatalog.v1beta1.InlineSource.getDefaultInstance(); + } + inlineSourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + 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_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..0d2f9f037218 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ImportTaxonomiesRequestOrBuilder.java @@ -0,0 +1,93 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/policytagmanagerserialization.proto + +package com.google.cloud.datacatalog.v1beta1; + +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 new file mode 100644 index 000000000000..671fdc3113b8 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ImportTaxonomiesResponse.java @@ -0,0 +1,945 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/policytagmanagerserialization.proto + +package com.google.cloud.datacatalog.v1beta1; + +/** + * + * + *
+ * Response message for
+ * [ImportTaxonomies][google.cloud.datacatalog.v1beta1.PolicyTagManagerSerialization.ImportTaxonomies].
+ * 
+ * + * Protobuf type {@code google.cloud.datacatalog.v1beta1.ImportTaxonomiesResponse} + */ +public final class ImportTaxonomiesResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.ImportTaxonomiesResponse) + ImportTaxonomiesResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ImportTaxonomiesResponse.newBuilder() to construct. + private ImportTaxonomiesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ImportTaxonomiesResponse() { + taxonomies_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ImportTaxonomiesResponse(); + } + + 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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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.GeneratedMessageV3.alwaysUseFieldBuilders + ? getTaxonomiesFieldBuilder() + : 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.RepeatedFieldBuilderV3< + 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 getTaxonomiesFieldBuilder().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 getTaxonomiesFieldBuilder() + .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 getTaxonomiesFieldBuilder() + .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 getTaxonomiesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datacatalog.v1beta1.Taxonomy, + com.google.cloud.datacatalog.v1beta1.Taxonomy.Builder, + com.google.cloud.datacatalog.v1beta1.TaxonomyOrBuilder> + getTaxonomiesFieldBuilder() { + if (taxonomiesBuilder_ == null) { + taxonomiesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + 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_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..acff24178101 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ImportTaxonomiesResponseOrBuilder.java @@ -0,0 +1,77 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/policytagmanagerserialization.proto + +package com.google.cloud.datacatalog.v1beta1; + +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 new file mode 100644 index 000000000000..b6a2c2a496fa --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/InlineSource.java @@ -0,0 +1,998 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/policytagmanagerserialization.proto + +package com.google.cloud.datacatalog.v1beta1; + +/** + * + * + *
+ * Inline source used for taxonomies import.
+ * 
+ * + * Protobuf type {@code google.cloud.datacatalog.v1beta1.InlineSource} + */ +public final class InlineSource extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.InlineSource) + InlineSourceOrBuilder { + private static final long serialVersionUID = 0L; + // Use InlineSource.newBuilder() to construct. + private InlineSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private InlineSource() { + taxonomies_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new InlineSource(); + } + + 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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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.GeneratedMessageV3.alwaysUseFieldBuilders + ? getTaxonomiesFieldBuilder() + : 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.RepeatedFieldBuilderV3< + 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 getTaxonomiesFieldBuilder().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 getTaxonomiesFieldBuilder() + .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 getTaxonomiesFieldBuilder() + .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 getTaxonomiesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datacatalog.v1beta1.SerializedTaxonomy, + com.google.cloud.datacatalog.v1beta1.SerializedTaxonomy.Builder, + com.google.cloud.datacatalog.v1beta1.SerializedTaxonomyOrBuilder> + getTaxonomiesFieldBuilder() { + if (taxonomiesBuilder_ == null) { + taxonomiesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + 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_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..a891618a8a34 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/InlineSourceOrBuilder.java @@ -0,0 +1,88 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/policytagmanagerserialization.proto + +package com.google.cloud.datacatalog.v1beta1; + +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 new file mode 100644 index 000000000000..30ecb0647eab --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/IntegratedSystem.java @@ -0,0 +1,177 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/common.proto + +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} + */ +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), + ; + + /** + * + * + *
+   * 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 final 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 new file mode 100644 index 000000000000..ee554854d861 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListEntriesRequest.java @@ -0,0 +1,1240 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/datacatalog.proto + +package com.google.cloud.datacatalog.v1beta1; + +/** + * + * + *
+ * Request message for
+ * [ListEntries][google.cloud.datacatalog.v1beta1.DataCatalog.ListEntries].
+ * 
+ * + * Protobuf type {@code google.cloud.datacatalog.v1beta1.ListEntriesRequest} + */ +public final class ListEntriesRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.ListEntriesRequest) + ListEntriesRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListEntriesRequest.newBuilder() to construct. + private ListEntriesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListEntriesRequest() { + parent_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListEntriesRequest(); + } + + 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.GeneratedMessageV3.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); + } + + 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 readMask_ != null; + } + /** + * + * + *
+   * 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.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + if (readMask_ != null) { + 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.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + if (readMask_ != null) { + 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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @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_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.readMask_ = readMaskBuilder_ == null ? readMask_ : readMaskBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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(getReadMaskFieldBuilder().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.SingleFieldBuilderV3< + 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); + } + 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 getReadMaskFieldBuilder().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.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getReadMaskFieldBuilder() { + if (readMaskBuilder_ == null) { + readMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getReadMask(), getParentForChildren(), isClean()); + readMask_ = null; + } + return readMaskBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..354a3f8b4b10 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListEntriesRequestOrBuilder.java @@ -0,0 +1,145 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/datacatalog.proto + +package com.google.cloud.datacatalog.v1beta1; + +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 new file mode 100644 index 000000000000..1f40c4da08d5 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListEntriesResponse.java @@ -0,0 +1,1127 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/datacatalog.proto + +package com.google.cloud.datacatalog.v1beta1; + +/** + * + * + *
+ * Response message for
+ * [ListEntries][google.cloud.datacatalog.v1beta1.DataCatalog.ListEntries].
+ * 
+ * + * Protobuf type {@code google.cloud.datacatalog.v1beta1.ListEntriesResponse} + */ +public final class ListEntriesResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.ListEntriesResponse) + ListEntriesResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListEntriesResponse.newBuilder() to construct. + private ListEntriesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListEntriesResponse() { + entries_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListEntriesResponse(); + } + + 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < entries_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, entries_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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.GeneratedMessageV3.alwaysUseFieldBuilders + ? getEntriesFieldBuilder() + : 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.RepeatedFieldBuilderV3< + 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 getEntriesFieldBuilder().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 getEntriesFieldBuilder() + .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 getEntriesFieldBuilder() + .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 getEntriesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datacatalog.v1beta1.Entry, + com.google.cloud.datacatalog.v1beta1.Entry.Builder, + com.google.cloud.datacatalog.v1beta1.EntryOrBuilder> + getEntriesFieldBuilder() { + if (entriesBuilder_ == null) { + entriesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + 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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..f076837c2236 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListEntriesResponseOrBuilder.java @@ -0,0 +1,104 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/datacatalog.proto + +package com.google.cloud.datacatalog.v1beta1; + +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 new file mode 100644 index 000000000000..a276d533ff9f --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListEntryGroupsRequest.java @@ -0,0 +1,948 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/datacatalog.proto + +package com.google.cloud.datacatalog.v1beta1; + +/** + * + * + *
+ * Request message for
+ * [ListEntryGroups][google.cloud.datacatalog.v1beta1.DataCatalog.ListEntryGroups].
+ * 
+ * + * Protobuf type {@code google.cloud.datacatalog.v1beta1.ListEntryGroupsRequest} + */ +public final class ListEntryGroupsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.ListEntryGroupsRequest) + ListEntryGroupsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListEntryGroupsRequest.newBuilder() to construct. + private ListEntryGroupsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListEntryGroupsRequest() { + parent_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListEntryGroupsRequest(); + } + + 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.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 clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..c8f937dff214 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListEntryGroupsRequestOrBuilder.java @@ -0,0 +1,101 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/datacatalog.proto + +package com.google.cloud.datacatalog.v1beta1; + +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 new file mode 100644 index 000000000000..22fceeb240a9 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListEntryGroupsResponse.java @@ -0,0 +1,1140 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/datacatalog.proto + +package com.google.cloud.datacatalog.v1beta1; + +/** + * + * + *
+ * Response message for
+ * [ListEntryGroups][google.cloud.datacatalog.v1beta1.DataCatalog.ListEntryGroups].
+ * 
+ * + * Protobuf type {@code google.cloud.datacatalog.v1beta1.ListEntryGroupsResponse} + */ +public final class ListEntryGroupsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.ListEntryGroupsResponse) + ListEntryGroupsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListEntryGroupsResponse.newBuilder() to construct. + private ListEntryGroupsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListEntryGroupsResponse() { + entryGroups_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListEntryGroupsResponse(); + } + + 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < entryGroups_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, entryGroups_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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.GeneratedMessageV3.alwaysUseFieldBuilders + ? getEntryGroupsFieldBuilder() + : 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.RepeatedFieldBuilderV3< + 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 getEntryGroupsFieldBuilder().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 getEntryGroupsFieldBuilder() + .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 getEntryGroupsFieldBuilder() + .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 getEntryGroupsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datacatalog.v1beta1.EntryGroup, + com.google.cloud.datacatalog.v1beta1.EntryGroup.Builder, + com.google.cloud.datacatalog.v1beta1.EntryGroupOrBuilder> + getEntryGroupsFieldBuilder() { + if (entryGroupsBuilder_ == null) { + entryGroupsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + 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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..ed0673b8034f --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListEntryGroupsResponseOrBuilder.java @@ -0,0 +1,104 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/datacatalog.proto + +package com.google.cloud.datacatalog.v1beta1; + +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 new file mode 100644 index 000000000000..4d1367d106a5 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListPolicyTagsRequest.java @@ -0,0 +1,927 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/policytagmanager.proto + +package com.google.cloud.datacatalog.v1beta1; + +/** + * + * + *
+ * Request message for
+ * [ListPolicyTags][google.cloud.datacatalog.v1beta1.PolicyTagManager.ListPolicyTags].
+ * 
+ * + * Protobuf type {@code google.cloud.datacatalog.v1beta1.ListPolicyTagsRequest} + */ +public final class ListPolicyTagsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.ListPolicyTagsRequest) + ListPolicyTagsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListPolicyTagsRequest.newBuilder() to construct. + private ListPolicyTagsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListPolicyTagsRequest() { + parent_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListPolicyTagsRequest(); + } + + 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.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 clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..2f2b6e491b24 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListPolicyTagsRequestOrBuilder.java @@ -0,0 +1,95 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/policytagmanager.proto + +package com.google.cloud.datacatalog.v1beta1; + +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 new file mode 100644 index 000000000000..5bb0905f5e6a --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListPolicyTagsResponse.java @@ -0,0 +1,1130 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/policytagmanager.proto + +package com.google.cloud.datacatalog.v1beta1; + +/** + * + * + *
+ * Response message for
+ * [ListPolicyTags][google.cloud.datacatalog.v1beta1.PolicyTagManager.ListPolicyTags].
+ * 
+ * + * Protobuf type {@code google.cloud.datacatalog.v1beta1.ListPolicyTagsResponse} + */ +public final class ListPolicyTagsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.ListPolicyTagsResponse) + ListPolicyTagsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListPolicyTagsResponse.newBuilder() to construct. + private ListPolicyTagsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListPolicyTagsResponse() { + policyTags_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListPolicyTagsResponse(); + } + + 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < policyTags_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, policyTags_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPolicyTagsFieldBuilder() + : 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.RepeatedFieldBuilderV3< + 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 getPolicyTagsFieldBuilder().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 getPolicyTagsFieldBuilder() + .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 getPolicyTagsFieldBuilder() + .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 getPolicyTagsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datacatalog.v1beta1.PolicyTag, + com.google.cloud.datacatalog.v1beta1.PolicyTag.Builder, + com.google.cloud.datacatalog.v1beta1.PolicyTagOrBuilder> + getPolicyTagsFieldBuilder() { + if (policyTagsBuilder_ == null) { + policyTagsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + 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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..618e880c2c1c --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListPolicyTagsResponseOrBuilder.java @@ -0,0 +1,104 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/policytagmanager.proto + +package com.google.cloud.datacatalog.v1beta1; + +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 new file mode 100644 index 000000000000..7602885c5e38 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListTagsRequest.java @@ -0,0 +1,971 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/datacatalog.proto + +package com.google.cloud.datacatalog.v1beta1; + +/** + * + * + *
+ * Request message for
+ * [ListTags][google.cloud.datacatalog.v1beta1.DataCatalog.ListTags].
+ * 
+ * + * Protobuf type {@code google.cloud.datacatalog.v1beta1.ListTagsRequest} + */ +public final class ListTagsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.ListTagsRequest) + ListTagsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListTagsRequest.newBuilder() to construct. + private ListTagsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListTagsRequest() { + parent_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListTagsRequest(); + } + + 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.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 clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..9df991e2d94f --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListTagsRequestOrBuilder.java @@ -0,0 +1,108 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/datacatalog.proto + +package com.google.cloud.datacatalog.v1beta1; + +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 new file mode 100644 index 000000000000..c0578fd8f63c --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListTagsResponse.java @@ -0,0 +1,1126 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/datacatalog.proto + +package com.google.cloud.datacatalog.v1beta1; + +/** + * + * + *
+ * Response message for
+ * [ListTags][google.cloud.datacatalog.v1beta1.DataCatalog.ListTags].
+ * 
+ * + * Protobuf type {@code google.cloud.datacatalog.v1beta1.ListTagsResponse} + */ +public final class ListTagsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.ListTagsResponse) + ListTagsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListTagsResponse.newBuilder() to construct. + private ListTagsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListTagsResponse() { + tags_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListTagsResponse(); + } + + 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < tags_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, tags_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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.GeneratedMessageV3.alwaysUseFieldBuilders + ? getTagsFieldBuilder() + : 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.RepeatedFieldBuilderV3< + 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 getTagsFieldBuilder().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 getTagsFieldBuilder() + .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 getTagsFieldBuilder() + .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 getTagsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datacatalog.v1beta1.Tag, + com.google.cloud.datacatalog.v1beta1.Tag.Builder, + com.google.cloud.datacatalog.v1beta1.TagOrBuilder> + getTagsFieldBuilder() { + if (tagsBuilder_ == null) { + tagsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + 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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..32736e8a55ba --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListTagsResponseOrBuilder.java @@ -0,0 +1,104 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/datacatalog.proto + +package com.google.cloud.datacatalog.v1beta1; + +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 new file mode 100644 index 000000000000..e5594cbe1667 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListTaxonomiesRequest.java @@ -0,0 +1,1116 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/policytagmanager.proto + +package com.google.cloud.datacatalog.v1beta1; + +/** + * + * + *
+ * Request message for
+ * [ListTaxonomies][google.cloud.datacatalog.v1beta1.PolicyTagManager.ListTaxonomies].
+ * 
+ * + * Protobuf type {@code google.cloud.datacatalog.v1beta1.ListTaxonomiesRequest} + */ +public final class ListTaxonomiesRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.ListTaxonomiesRequest) + ListTaxonomiesRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListTaxonomiesRequest.newBuilder() to construct. + private ListTaxonomiesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListTaxonomiesRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListTaxonomiesRequest(); + } + + 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..c7ca4bfdcac1 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListTaxonomiesRequestOrBuilder.java @@ -0,0 +1,122 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/policytagmanager.proto + +package com.google.cloud.datacatalog.v1beta1; + +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 new file mode 100644 index 000000000000..054df8ec0985 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListTaxonomiesResponse.java @@ -0,0 +1,1130 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/policytagmanager.proto + +package com.google.cloud.datacatalog.v1beta1; + +/** + * + * + *
+ * Response message for
+ * [ListTaxonomies][google.cloud.datacatalog.v1beta1.PolicyTagManager.ListTaxonomies].
+ * 
+ * + * Protobuf type {@code google.cloud.datacatalog.v1beta1.ListTaxonomiesResponse} + */ +public final class ListTaxonomiesResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.ListTaxonomiesResponse) + ListTaxonomiesResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListTaxonomiesResponse.newBuilder() to construct. + private ListTaxonomiesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListTaxonomiesResponse() { + taxonomies_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListTaxonomiesResponse(); + } + + 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < taxonomies_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, taxonomies_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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.GeneratedMessageV3.alwaysUseFieldBuilders + ? getTaxonomiesFieldBuilder() + : 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.RepeatedFieldBuilderV3< + 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 getTaxonomiesFieldBuilder().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 getTaxonomiesFieldBuilder() + .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 getTaxonomiesFieldBuilder() + .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 getTaxonomiesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datacatalog.v1beta1.Taxonomy, + com.google.cloud.datacatalog.v1beta1.Taxonomy.Builder, + com.google.cloud.datacatalog.v1beta1.TaxonomyOrBuilder> + getTaxonomiesFieldBuilder() { + if (taxonomiesBuilder_ == null) { + taxonomiesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + 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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..21b34cac6a85 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListTaxonomiesResponseOrBuilder.java @@ -0,0 +1,104 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/policytagmanager.proto + +package com.google.cloud.datacatalog.v1beta1; + +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/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/LocationName.java rename to java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/LocationName.java 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 new file mode 100644 index 000000000000..17affff08b1a --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/LookupEntryRequest.java @@ -0,0 +1,1164 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/datacatalog.proto + +package com.google.cloud.datacatalog.v1beta1; + +/** + * + * + *
+ * Request message for
+ * [LookupEntry][google.cloud.datacatalog.v1beta1.DataCatalog.LookupEntry].
+ * 
+ * + * Protobuf type {@code google.cloud.datacatalog.v1beta1.LookupEntryRequest} + */ +public final class LookupEntryRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.LookupEntryRequest) + LookupEntryRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use LookupEntryRequest.newBuilder() to construct. + private LookupEntryRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private LookupEntryRequest() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new 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.GeneratedMessageV3.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 standard SQL 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 standard SQL 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 standard SQL 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.GeneratedMessageV3.writeString(output, 1, targetName_); + } + if (targetNameCase_ == 3) { + com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.computeStringSize(1, targetName_); + } + if (targetNameCase_ == 3) { + size += com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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 standard SQL 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 standard SQL 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 standard SQL 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 standard SQL 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 standard SQL 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 standard SQL 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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..3a6d5bbe9af1 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/LookupEntryRequestOrBuilder.java @@ -0,0 +1,158 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/datacatalog.proto + +package com.google.cloud.datacatalog.v1beta1; + +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 standard SQL 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 standard SQL 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 standard SQL 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 new file mode 100644 index 000000000000..3a466312c682 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ManagingSystem.java @@ -0,0 +1,177 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/common.proto + +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} + */ +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), + ; + + /** + * + * + *
+   * 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 final 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 new file mode 100644 index 000000000000..4e2a1b107d8b --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/PolicyTag.java @@ -0,0 +1,1549 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/policytagmanager.proto + +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} + */ +public final class PolicyTag extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.PolicyTag) + PolicyTagOrBuilder { + private static final long serialVersionUID = 0L; + // Use PolicyTag.newBuilder() to construct. + private PolicyTag(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PolicyTag() { + name_ = ""; + displayName_ = ""; + description_ = ""; + parentPolicyTag_ = ""; + childPolicyTags_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PolicyTag(); + } + + 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parentPolicyTag_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, parentPolicyTag_); + } + for (int i = 0; i < childPolicyTags_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parentPolicyTag_)) { + size += com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..5ef1525af930 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/PolicyTagManagerProto.java @@ -0,0 +1,416 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/policytagmanager.proto + +package com.google.cloud.datacatalog.v1beta1; + +public final class PolicyTagManagerProto { + private 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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 = { + "\n7google/cloud/datacatalog/v1beta1/polic" + + "ytagmanager.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.p" + + "roto\032\033google/protobuf/empty.proto\032 googl" + + "e/protobuf/field_mask.proto\"\206\005\n\010Taxonomy" + + "\022\022\n\004name\030\001 \001(\tB\004\342A\001\010\022\032\n\014display_name\030\002 \001" + + "(\tB\004\342A\001\002\022\031\n\013description\030\003 \001(\tB\004\342A\001\001\022\036\n\020p" + + "olicy_tag_count\030\004 \001(\005B\004\342A\001\003\022U\n\023taxonomy_" + + "timestamps\030\005 \001(\01322.google.cloud.datacata" + + "log.v1beta1.SystemTimestampsB\004\342A\001\003\022[\n\026ac" + + "tivated_policy_types\030\006 \003(\01625.google.clou" + + "d.datacatalog.v1beta1.Taxonomy.PolicyTyp" + + "eB\004\342A\001\001\022I\n\007service\030\007 \001(\01322.google.cloud." + + "datacatalog.v1beta1.Taxonomy.ServiceB\004\342A" + + "\001\003\032[\n\007Service\022>\n\004name\030\001 \001(\01620.google.clo" + + "ud.datacatalog.v1beta1.ManagingSystem\022\020\n" + + "\010identity\030\002 \001(\t\"J\n\nPolicyType\022\033\n\027POLICY_" + + "TYPE_UNSPECIFIED\020\000\022\037\n\033FINE_GRAINED_ACCES" + + "S_CONTROL\020\001:g\352Ad\n#datacatalog.googleapis" + + ".com/Taxonomy\022=projects/{project}/locati" + + "ons/{location}/taxonomies/{taxonomy}\"\217\002\n" + + "\tPolicyTag\022\022\n\004name\030\001 \001(\tB\004\342A\001\010\022\032\n\014displa" + + "y_name\030\002 \001(\tB\004\342A\001\002\022\023\n\013description\030\003 \001(\t\022" + + "\031\n\021parent_policy_tag\030\004 \001(\t\022\037\n\021child_poli" + + "cy_tags\030\005 \003(\tB\004\342A\001\003:\200\001\352A}\n$datacatalog.g" + + "oogleapis.com/PolicyTag\022Uprojects/{proje" + + "ct}/locations/{location}/taxonomies/{tax" + + "onomy}/policyTags/{policy_tag}\"\223\001\n\025Creat" + + "eTaxonomyRequest\022<\n\006parent\030\001 \001(\tB,\342A\001\002\372A" + + "%\022#datacatalog.googleapis.com/Taxonomy\022<" + + "\n\010taxonomy\030\002 \001(\0132*.google.cloud.datacata" + + "log.v1beta1.Taxonomy\"S\n\025DeleteTaxonomyRe" + + "quest\022:\n\004name\030\001 \001(\tB,\342A\001\002\372A%\n#datacatalo" + + "g.googleapis.com/Taxonomy\"\206\001\n\025UpdateTaxo" + + "nomyRequest\022<\n\010taxonomy\030\001 \001(\0132*.google.c" + + "loud.datacatalog.v1beta1.Taxonomy\022/\n\013upd" + + "ate_mask\030\002 \001(\0132\032.google.protobuf.FieldMa" + + "sk\"\214\001\n\025ListTaxonomiesRequest\022<\n\006parent\030\001" + + " \001(\tB,\342A\001\002\372A%\022#datacatalog.googleapis.co" + + "m/Taxonomy\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_to" + + "ken\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\"q\n\026ListTaxonom" + + "iesResponse\022>\n\ntaxonomies\030\001 \003(\0132*.google" + + ".cloud.datacatalog.v1beta1.Taxonomy\022\027\n\017n" + + "ext_page_token\030\002 \001(\t\"P\n\022GetTaxonomyReque" + + "st\022:\n\004name\030\001 \001(\tB,\342A\001\002\372A%\n#datacatalog.g" + + "oogleapis.com/Taxonomy\"\230\001\n\026CreatePolicyT" + + "agRequest\022=\n\006parent\030\001 \001(\tB-\342A\001\002\372A&\022$data" + + "catalog.googleapis.com/PolicyTag\022?\n\npoli" + + "cy_tag\030\002 \001(\0132+.google.cloud.datacatalog." + + "v1beta1.PolicyTag\"U\n\026DeletePolicyTagRequ" + + "est\022;\n\004name\030\001 \001(\tB-\342A\001\002\372A&\n$datacatalog." + + "googleapis.com/PolicyTag\"\212\001\n\026UpdatePolic" + + "yTagRequest\022?\n\npolicy_tag\030\001 \001(\0132+.google" + + ".cloud.datacatalog.v1beta1.PolicyTag\022/\n\013" + + "update_mask\030\002 \001(\0132\032.google.protobuf.Fiel" + + "dMask\"}\n\025ListPolicyTagsRequest\022=\n\006parent" + + "\030\001 \001(\tB-\342A\001\002\372A&\022$datacatalog.googleapis." + + "com/PolicyTag\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage" + + "_token\030\003 \001(\t\"s\n\026ListPolicyTagsResponse\022@" + + "\n\013policy_tags\030\001 \003(\0132+.google.cloud.datac" + + "atalog.v1beta1.PolicyTag\022\027\n\017next_page_to" + + "ken\030\002 \001(\t\"R\n\023GetPolicyTagRequest\022;\n\004name" + + "\030\001 \001(\tB-\342A\001\002\372A&\n$datacatalog.googleapis." + + "com/PolicyTag2\345\026\n\020PolicyTagManager\022\316\001\n\016C" + + "reateTaxonomy\0227.google.cloud.datacatalog" + + ".v1beta1.CreateTaxonomyRequest\032*.google." + + "cloud.datacatalog.v1beta1.Taxonomy\"W\332A\017p" + + "arent,taxonomy\202\323\344\223\002?\"3/v1beta1/{parent=p" + + "rojects/*/locations/*}/taxonomies:\010taxon" + + "omy\022\245\001\n\016DeleteTaxonomy\0227.google.cloud.da" + + "tacatalog.v1beta1.DeleteTaxonomyRequest\032" + + "\026.google.protobuf.Empty\"B\332A\004name\202\323\344\223\0025*3" + + "/v1beta1/{name=projects/*/locations/*/ta" + + "xonomies/*}\022\320\001\n\016UpdateTaxonomy\0227.google." + + "cloud.datacatalog.v1beta1.UpdateTaxonomy" + + "Request\032*.google.cloud.datacatalog.v1bet" + + "a1.Taxonomy\"Y\332A\010taxonomy\202\323\344\223\002H2\n\ntaxonomies\030\001 " + + "\003(\0132*.google.cloud.datacatalog.v1beta1.T" + + "axonomy\"\311\001\n\027ExportTaxonomiesRequest\022<\n\006p" + + "arent\030\001 \001(\tB,\342A\001\002\372A%\022#datacatalog.google" + + "apis.com/Taxonomy\022@\n\ntaxonomies\030\002 \003(\tB,\342" + + "A\001\002\372A%\n#datacatalog.googleapis.com/Taxon" + + "omy\022\037\n\025serialized_taxonomies\030\003 \001(\010H\000B\r\n\013" + + "destination\"d\n\030ExportTaxonomiesResponse\022" + + "H\n\ntaxonomies\030\001 \003(\01324.google.cloud.datac" + + "atalog.v1beta1.SerializedTaxonomy2\222\004\n\035Po" + + "licyTagManagerSerialization\022\320\001\n\020ImportTa" + + "xonomies\0229.google.cloud.datacatalog.v1be" + + "ta1.ImportTaxonomiesRequest\032:.google.clo" + + "ud.datacatalog.v1beta1.ImportTaxonomiesR" + + "esponse\"E\202\323\344\223\002?\":/v1beta1/{parent=projec" + + "ts/*/locations/*}/taxonomies:import:\001*\022\315" + + "\001\n\020ExportTaxonomies\0229.google.cloud.datac" + + "atalog.v1beta1.ExportTaxonomiesRequest\032:" + + ".google.cloud.datacatalog.v1beta1.Export" + + "TaxonomiesResponse\"B\202\323\344\223\002<\022:/v1beta1/{pa" + + "rent=projects/*/locations/*}/taxonomies:" + + "export\032N\312A\032datacatalog.googleapis.com\322A." + + "https://www.googleapis.com/auth/cloud-pl" + + "atformB\203\002\n$com.google.cloud.datacatalog." + + "v1beta1B\"PolicyTagManagerSerializationPr" + + "otoP\001ZFcloud.google.com/go/datacatalog/a" + + "piv1beta1/datacatalogpb;datacatalogpb\370\001\001" + + "\252\002 Google.Cloud.DataCatalog.V1Beta1\312\002 Go" + + "ogle\\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.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().getMessageTypes().get(0); + internal_static_google_cloud_datacatalog_v1beta1_SerializedTaxonomy_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.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().getMessageTypes().get(1); + internal_static_google_cloud_datacatalog_v1beta1_SerializedPolicyTag_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.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().getMessageTypes().get(2); + internal_static_google_cloud_datacatalog_v1beta1_ImportTaxonomiesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.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().getMessageTypes().get(3); + internal_static_google_cloud_datacatalog_v1beta1_InlineSource_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datacatalog_v1beta1_InlineSource_descriptor, + new java.lang.String[] { + "Taxonomies", + }); + internal_static_google_cloud_datacatalog_v1beta1_ImportTaxonomiesResponse_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_datacatalog_v1beta1_ImportTaxonomiesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datacatalog_v1beta1_ImportTaxonomiesResponse_descriptor, + new java.lang.String[] { + "Taxonomies", + }); + internal_static_google_cloud_datacatalog_v1beta1_ExportTaxonomiesRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_datacatalog_v1beta1_ExportTaxonomiesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.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().getMessageTypes().get(6); + internal_static_google_cloud_datacatalog_v1beta1_ExportTaxonomiesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datacatalog_v1beta1_ExportTaxonomiesResponse_descriptor, + new java.lang.String[] { + "Taxonomies", + }); + 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); + 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(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/PolicyTagName.java rename to java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/PolicyTagName.java 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 new file mode 100644 index 000000000000..6a2440341edd --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/PolicyTagOrBuilder.java @@ -0,0 +1,204 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/policytagmanager.proto + +package com.google.cloud.datacatalog.v1beta1; + +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 new file mode 100644 index 000000000000..04f6b088fb3c --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/RenameTagTemplateFieldEnumValueRequest.java @@ -0,0 +1,874 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/datacatalog.proto + +package com.google.cloud.datacatalog.v1beta1; + +/** + * + * + *
+ * Request message for
+ * [RenameTagTemplateFieldEnumValue][google.cloud.datacatalog.v1.DataCatalog.RenameTagTemplateFieldEnumValue].
+ * 
+ * + * Protobuf type {@code google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldEnumValueRequest} + */ +public final class RenameTagTemplateFieldEnumValueRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldEnumValueRequest) + RenameTagTemplateFieldEnumValueRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use RenameTagTemplateFieldEnumValueRequest.newBuilder() to construct. + private RenameTagTemplateFieldEnumValueRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RenameTagTemplateFieldEnumValueRequest() { + name_ = ""; + newEnumValueDisplayName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RenameTagTemplateFieldEnumValueRequest(); + } + + 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(newEnumValueDisplayName_)) { + com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(newEnumValueDisplayName_)) { + size += com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..8ede07bc3493 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/RenameTagTemplateFieldEnumValueRequestOrBuilder.java @@ -0,0 +1,85 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/datacatalog.proto + +package com.google.cloud.datacatalog.v1beta1; + +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 new file mode 100644 index 000000000000..aee17750d55e --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/RenameTagTemplateFieldRequest.java @@ -0,0 +1,855 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/datacatalog.proto + +package com.google.cloud.datacatalog.v1beta1; + +/** + * + * + *
+ * Request message for
+ * [RenameTagTemplateField][google.cloud.datacatalog.v1beta1.DataCatalog.RenameTagTemplateField].
+ * 
+ * + * Protobuf type {@code google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldRequest} + */ +public final class RenameTagTemplateFieldRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldRequest) + RenameTagTemplateFieldRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use RenameTagTemplateFieldRequest.newBuilder() to construct. + private RenameTagTemplateFieldRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RenameTagTemplateFieldRequest() { + name_ = ""; + newTagTemplateFieldId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RenameTagTemplateFieldRequest(); + } + + 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(newTagTemplateFieldId_)) { + com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(newTagTemplateFieldId_)) { + size += com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..ff995ecfc89c --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/RenameTagTemplateFieldRequestOrBuilder.java @@ -0,0 +1,85 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/datacatalog.proto + +package com.google.cloud.datacatalog.v1beta1; + +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 new file mode 100644 index 000000000000..7fd00d9397ca --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/Schema.java @@ -0,0 +1,1007 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/schema.proto + +package com.google.cloud.datacatalog.v1beta1; + +/** + * + * + *
+ * Represents a schema (e.g. BigQuery, GoogleSQL, Avro schema).
+ * 
+ * + * Protobuf type {@code google.cloud.datacatalog.v1beta1.Schema} + */ +public final class Schema extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.Schema) + SchemaOrBuilder { + private static final long serialVersionUID = 0L; + // Use Schema.newBuilder() to construct. + private Schema(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Schema() { + columns_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Schema(); + } + + 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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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.GeneratedMessageV3.alwaysUseFieldBuilders + ? getColumnsFieldBuilder() + : 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.RepeatedFieldBuilderV3< + 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 getColumnsFieldBuilder().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 getColumnsFieldBuilder() + .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 getColumnsFieldBuilder() + .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 getColumnsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datacatalog.v1beta1.ColumnSchema, + com.google.cloud.datacatalog.v1beta1.ColumnSchema.Builder, + com.google.cloud.datacatalog.v1beta1.ColumnSchemaOrBuilder> + getColumnsFieldBuilder() { + if (columnsBuilder_ == null) { + columnsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + 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_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..97f8a17707a6 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/SchemaOrBuilder.java @@ -0,0 +1,92 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/schema.proto + +package com.google.cloud.datacatalog.v1beta1; + +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 new file mode 100644 index 000000000000..3bf144039da2 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/SchemaOuterClass.java @@ -0,0 +1,95 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/schema.proto + +package com.google.cloud.datacatalog.v1beta1; + +public final class SchemaOuterClass { + private 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.GeneratedMessageV3.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.GeneratedMessageV3.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/schem" + + "a.proto\022 google.cloud.datacatalog.v1beta" + + "1\032\037google/api/field_behavior.proto\"O\n\006Sc" + + "hema\022E\n\007columns\030\002 \003(\0132..google.cloud.dat" + + "acatalog.v1beta1.ColumnSchemaB\004\342A\001\002\"\261\001\n\014" + + "ColumnSchema\022\024\n\006column\030\006 \001(\tB\004\342A\001\002\022\022\n\004ty" + + "pe\030\001 \001(\tB\004\342A\001\002\022\031\n\013description\030\002 \001(\tB\004\342A\001" + + "\001\022\022\n\004mode\030\003 \001(\tB\004\342A\001\001\022H\n\nsubcolumns\030\007 \003(" + + "\0132..google.cloud.datacatalog.v1beta1.Col" + + "umnSchemaB\004\342A\001\001B\337\001\n$com.google.cloud.dat" + + "acatalog.v1beta1P\001ZFcloud.google.com/go/" + + "datacatalog/apiv1beta1/datacatalogpb;dat" + + "acatalogpb\370\001\001\252\002 Google.Cloud.DataCatalog" + + ".V1Beta1\312\002 Google\\Cloud\\DataCatalog\\V1be" + + "ta1\352\002#Google::Cloud::DataCatalog::V1beta" + + "1b\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().getMessageTypes().get(0); + internal_static_google_cloud_datacatalog_v1beta1_Schema_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datacatalog_v1beta1_Schema_descriptor, + new java.lang.String[] { + "Columns", + }); + internal_static_google_cloud_datacatalog_v1beta1_ColumnSchema_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_datacatalog_v1beta1_ColumnSchema_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datacatalog_v1beta1_ColumnSchema_descriptor, + new java.lang.String[] { + "Column", "Type", "Description", "Mode", "Subcolumns", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + } + + // @@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 new file mode 100644 index 000000000000..55edae3d270c --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/Search.java @@ -0,0 +1,87 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/search.proto + +package com.google.cloud.datacatalog.v1beta1; + +public final class Search { + private 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.GeneratedMessageV3.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\337\001\n$com.google.cloud.datacata" + + "log.v1beta1P\001ZFcloud.google.com/go/datac" + + "atalog/apiv1beta1/datacatalogpb;datacata" + + "logpb\370\001\001\252\002 Google.Cloud.DataCatalog.V1Be" + + "ta1\312\002 Google\\Cloud\\DataCatalog\\V1beta1\352\002" + + "#Google::Cloud::DataCatalog::V1beta1b\006pr" + + "oto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_datacatalog_v1beta1_SearchCatalogResult_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_datacatalog_v1beta1_SearchCatalogResult_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datacatalog_v1beta1_SearchCatalogResult_descriptor, + new java.lang.String[] { + "SearchResultType", + "SearchResultSubtype", + "RelativeResourceName", + "LinkedResource", + "ModifyTime", + }); + 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 new file mode 100644 index 000000000000..5f7d1ee80d9e --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/SearchCatalogRequest.java @@ -0,0 +1,3800 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/datacatalog.proto + +package com.google.cloud.datacatalog.v1beta1; + +/** + * + * + *
+ * Request message for
+ * [SearchCatalog][google.cloud.datacatalog.v1beta1.DataCatalog.SearchCatalog].
+ * 
+ * + * Protobuf type {@code google.cloud.datacatalog.v1beta1.SearchCatalogRequest} + */ +public final class SearchCatalogRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.SearchCatalogRequest) + SearchCatalogRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use SearchCatalogRequest.newBuilder() to construct. + private SearchCatalogRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SearchCatalogRequest() { + query_ = ""; + pageToken_ = ""; + orderBy_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SearchCatalogRequest(); + } + + 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.GeneratedMessageV3.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.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.SearchCatalogRequest.Scope) + ScopeOrBuilder { + private static final long serialVersionUID = 0L; + // Use Scope.newBuilder() to construct. + private Scope(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Scope() { + includeOrgIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + includeProjectIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + restrictedLocations_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Scope(); + } + + 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.GeneratedMessageV3.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.GeneratedMessageV3.writeString(output, 2, includeOrgIds_.getRaw(i)); + } + for (int i = 0; i < includeProjectIds_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, includeProjectIds_.getRaw(i)); + } + if (includeGcpPublicDatasets_ != false) { + output.writeBool(7, includeGcpPublicDatasets_); + } + for (int i = 0; i < restrictedLocations_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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; + } + } + + 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 scope_ != null; + } + /** + * + * + *
+   * 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.GeneratedMessageV3.isStringEmpty(query_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, query_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, orderBy_); + } + if (scope_ != null) { + 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.GeneratedMessageV3.isStringEmpty(query_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, query_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, orderBy_); + } + if (scope_ != null) { + 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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @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_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.scope_ = scopeBuilder_ == null ? scope_ : scopeBuilder_.build(); + } + 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_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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(getScopeFieldBuilder().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.SingleFieldBuilderV3< + 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); + } + 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 getScopeFieldBuilder().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.SingleFieldBuilderV3< + com.google.cloud.datacatalog.v1beta1.SearchCatalogRequest.Scope, + com.google.cloud.datacatalog.v1beta1.SearchCatalogRequest.Scope.Builder, + com.google.cloud.datacatalog.v1beta1.SearchCatalogRequest.ScopeOrBuilder> + getScopeFieldBuilder() { + if (scopeBuilder_ == null) { + scopeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + 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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..b1eef0fbc194 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/SearchCatalogRequestOrBuilder.java @@ -0,0 +1,212 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/datacatalog.proto + +package com.google.cloud.datacatalog.v1beta1; + +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 new file mode 100644 index 000000000000..1a98e0883fba --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/SearchCatalogResponse.java @@ -0,0 +1,1546 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/datacatalog.proto + +package com.google.cloud.datacatalog.v1beta1; + +/** + * + * + *
+ * Response message for
+ * [SearchCatalog][google.cloud.datacatalog.v1beta1.DataCatalog.SearchCatalog].
+ * 
+ * + * Protobuf type {@code google.cloud.datacatalog.v1beta1.SearchCatalogResponse} + */ +public final class SearchCatalogResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.SearchCatalogResponse) + SearchCatalogResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use SearchCatalogResponse.newBuilder() to construct. + private SearchCatalogResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SearchCatalogResponse() { + results_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SearchCatalogResponse(); + } + + 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, nextPageToken_); + } + for (int i = 0; i < unreachable_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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.GeneratedMessageV3.alwaysUseFieldBuilders + ? getResultsFieldBuilder() + : 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.RepeatedFieldBuilderV3< + 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 getResultsFieldBuilder().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 getResultsFieldBuilder() + .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 getResultsFieldBuilder() + .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 getResultsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datacatalog.v1beta1.SearchCatalogResult, + com.google.cloud.datacatalog.v1beta1.SearchCatalogResult.Builder, + com.google.cloud.datacatalog.v1beta1.SearchCatalogResultOrBuilder> + getResultsFieldBuilder() { + if (resultsBuilder_ == null) { + resultsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + 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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..77cac740110c --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/SearchCatalogResponseOrBuilder.java @@ -0,0 +1,178 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/datacatalog.proto + +package com.google.cloud.datacatalog.v1beta1; + +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 new file mode 100644 index 000000000000..5b8a73440968 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/SearchCatalogResult.java @@ -0,0 +1,1492 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/search.proto + +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} + */ +public final class SearchCatalogResult extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.SearchCatalogResult) + SearchCatalogResultOrBuilder { + private static final long serialVersionUID = 0L; + // Use SearchCatalogResult.newBuilder() to construct. + private SearchCatalogResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SearchCatalogResult() { + searchResultType_ = 0; + searchResultSubtype_ = ""; + relativeResourceName_ = ""; + linkedResource_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SearchCatalogResult(); + } + + 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.GeneratedMessageV3.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); + } + + 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 modifyTime_ != null; + } + /** + * + * + *
+   * 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.GeneratedMessageV3.isStringEmpty(searchResultSubtype_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, searchResultSubtype_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(relativeResourceName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, relativeResourceName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(linkedResource_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, linkedResource_); + } + if (modifyTime_ != null) { + 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.GeneratedMessageV3.isStringEmpty(searchResultSubtype_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, searchResultSubtype_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(relativeResourceName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, relativeResourceName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(linkedResource_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, linkedResource_); + } + if (modifyTime_ != null) { + 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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @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_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.modifyTime_ = modifyTimeBuilder_ == null ? modifyTime_ : modifyTimeBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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(getModifyTimeFieldBuilder().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.SingleFieldBuilderV3< + 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); + } + 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 getModifyTimeFieldBuilder().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.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getModifyTimeFieldBuilder() { + if (modifyTimeBuilder_ == null) { + modifyTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getModifyTime(), getParentForChildren(), isClean()); + modifyTime_ = null; + } + return modifyTimeBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..cb9351ac132b --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/SearchCatalogResultOrBuilder.java @@ -0,0 +1,184 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/search.proto + +package com.google.cloud.datacatalog.v1beta1; + +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 new file mode 100644 index 000000000000..dece2adb6c4f --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/SearchResultType.java @@ -0,0 +1,198 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/search.proto + +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} + */ +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), + ; + + /** + * + * + *
+   * 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 final 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 new file mode 100644 index 000000000000..8e45f2e0e93c --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/SerializedPolicyTag.java @@ -0,0 +1,1563 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/policytagmanagerserialization.proto + +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} + */ +public final class SerializedPolicyTag extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.SerializedPolicyTag) + SerializedPolicyTagOrBuilder { + private static final long serialVersionUID = 0L; + // Use SerializedPolicyTag.newBuilder() to construct. + private SerializedPolicyTag(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SerializedPolicyTag() { + policyTag_ = ""; + displayName_ = ""; + description_ = ""; + childPolicyTags_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SerializedPolicyTag(); + } + + 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(policyTag_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, policyTag_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_); + } + 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.GeneratedMessageV3.isStringEmpty(policyTag_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, policyTag_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); + } + 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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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.GeneratedMessageV3.alwaysUseFieldBuilders + ? getChildPolicyTagsFieldBuilder() + : 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.RepeatedFieldBuilderV3< + 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 getChildPolicyTagsFieldBuilder().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 getChildPolicyTagsFieldBuilder() + .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 getChildPolicyTagsFieldBuilder() + .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 getChildPolicyTagsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datacatalog.v1beta1.SerializedPolicyTag, + com.google.cloud.datacatalog.v1beta1.SerializedPolicyTag.Builder, + com.google.cloud.datacatalog.v1beta1.SerializedPolicyTagOrBuilder> + getChildPolicyTagsFieldBuilder() { + if (childPolicyTagsBuilder_ == null) { + childPolicyTagsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + 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_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..5d599feb5939 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/SerializedPolicyTagOrBuilder.java @@ -0,0 +1,168 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/policytagmanagerserialization.proto + +package com.google.cloud.datacatalog.v1beta1; + +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 new file mode 100644 index 000000000000..8646d0372fd3 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/SerializedTaxonomy.java @@ -0,0 +1,1769 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/policytagmanagerserialization.proto + +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} + */ +public final class SerializedTaxonomy extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.SerializedTaxonomy) + SerializedTaxonomyOrBuilder { + private static final long serialVersionUID = 0L; + // Use SerializedTaxonomy.newBuilder() to construct. + private SerializedTaxonomy(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SerializedTaxonomy() { + displayName_ = ""; + description_ = ""; + policyTags_ = java.util.Collections.emptyList(); + activatedPolicyTypes_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SerializedTaxonomy(); + } + + 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.GeneratedMessageV3.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 java.util.List activatedPolicyTypes_; + + private static final com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.cloud.datacatalog.v1beta1.Taxonomy.PolicyType> + activatedPolicyTypes_converter_ = + new com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.cloud.datacatalog.v1beta1.Taxonomy.PolicyType>() { + public com.google.cloud.datacatalog.v1beta1.Taxonomy.PolicyType convert( + java.lang.Integer 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.ListAdapter< + java.lang.Integer, 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_.get(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_.get(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.GeneratedMessageV3.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessageV3.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_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessageV3.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_.get(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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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_ = java.util.Collections.emptyList(); + 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_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(); + } + if (((bitField0_ & 0x00000008) != 0)) { + activatedPolicyTypes_ = java.util.Collections.unmodifiableList(activatedPolicyTypes_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.activatedPolicyTypes_ = activatedPolicyTypes_; + } + + 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_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPolicyTagsFieldBuilder() + : null; + } else { + policyTagsBuilder_.addAllMessages(other.policyTags_); + } + } + } + if (!other.activatedPolicyTypes_.isEmpty()) { + if (activatedPolicyTypes_.isEmpty()) { + activatedPolicyTypes_ = other.activatedPolicyTypes_; + bitField0_ = (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_.add(tmpRaw); + break; + } // case 32 + case 34: + { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while (input.getBytesUntilLimit() > 0) { + int tmpRaw = input.readEnum(); + ensureActivatedPolicyTypesIsMutable(); + activatedPolicyTypes_.add(tmpRaw); + } + input.popLimit(oldLimit); + 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.RepeatedFieldBuilderV3< + 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 getPolicyTagsFieldBuilder().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 getPolicyTagsFieldBuilder() + .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 getPolicyTagsFieldBuilder() + .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 getPolicyTagsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datacatalog.v1beta1.SerializedPolicyTag, + com.google.cloud.datacatalog.v1beta1.SerializedPolicyTag.Builder, + com.google.cloud.datacatalog.v1beta1.SerializedPolicyTagOrBuilder> + getPolicyTagsFieldBuilder() { + if (policyTagsBuilder_ == null) { + policyTagsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + 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 java.util.List activatedPolicyTypes_ = + java.util.Collections.emptyList(); + + private void ensureActivatedPolicyTypesIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + activatedPolicyTypes_ = new java.util.ArrayList(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.ListAdapter< + java.lang.Integer, 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_.get(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_.set(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_.add(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_.add(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_ = java.util.Collections.emptyList(); + 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() { + return java.util.Collections.unmodifiableList(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_.get(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_.set(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_.add(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_.add(value); + } + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..5f0b886453c3 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/SerializedTaxonomyOrBuilder.java @@ -0,0 +1,208 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/policytagmanagerserialization.proto + +package com.google.cloud.datacatalog.v1beta1; + +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 new file mode 100644 index 000000000000..b0045d2440ed --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/SystemTimestamps.java @@ -0,0 +1,1255 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/timestamps.proto + +package com.google.cloud.datacatalog.v1beta1; + +/** + * + * + *
+ * Timestamps about this resource according to a particular system.
+ * 
+ * + * Protobuf type {@code google.cloud.datacatalog.v1beta1.SystemTimestamps} + */ +public final class SystemTimestamps extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.SystemTimestamps) + SystemTimestampsOrBuilder { + private static final long serialVersionUID = 0L; + // Use SystemTimestamps.newBuilder() to construct. + private SystemTimestamps(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SystemTimestamps() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new 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.GeneratedMessageV3.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); + } + + 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 createTime_ != null; + } + /** + * + * + *
+   * 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 updateTime_ != null; + } + /** + * + * + *
+   * 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 expireTime_ != null; + } + /** + * + * + *
+   * 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 (createTime_ != null) { + output.writeMessage(1, getCreateTime()); + } + if (updateTime_ != null) { + output.writeMessage(2, getUpdateTime()); + } + if (expireTime_ != null) { + output.writeMessage(3, getExpireTime()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (createTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCreateTime()); + } + if (updateTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateTime()); + } + if (expireTime_ != null) { + 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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + 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_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.expireTime_ = expireTimeBuilder_ == null ? expireTime_ : expireTimeBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getExpireTimeFieldBuilder().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.SingleFieldBuilderV3< + 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); + } + 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 getCreateTimeFieldBuilder().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.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + /** + * + * + *
+     * 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); + } + 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 getUpdateTimeFieldBuilder().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.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private com.google.protobuf.Timestamp expireTime_; + private com.google.protobuf.SingleFieldBuilderV3< + 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); + } + 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 getExpireTimeFieldBuilder().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.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getExpireTimeFieldBuilder() { + if (expireTimeBuilder_ == null) { + expireTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getExpireTime(), getParentForChildren(), isClean()); + expireTime_ = null; + } + return expireTimeBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..b9396d8c7c7f --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/SystemTimestampsOrBuilder.java @@ -0,0 +1,136 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/timestamps.proto + +package com.google.cloud.datacatalog.v1beta1; + +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 new file mode 100644 index 000000000000..3cb2b74d30a3 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TableSourceType.java @@ -0,0 +1,200 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/table_spec.proto + +package com.google.cloud.datacatalog.v1beta1; + +/** + * + * + *
+ * Table source type.
+ * 
+ * + * Protobuf enum {@code google.cloud.datacatalog.v1beta1.TableSourceType} + */ +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), + ; + + /** + * + * + *
+   * 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 final 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 new file mode 100644 index 000000000000..7183f214388c --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TableSpec.java @@ -0,0 +1,665 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/table_spec.proto + +package com.google.cloud.datacatalog.v1beta1; + +/** + * + * + *
+ * Normal BigQuery table spec.
+ * 
+ * + * Protobuf type {@code google.cloud.datacatalog.v1beta1.TableSpec} + */ +public final class TableSpec extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.TableSpec) + TableSpecOrBuilder { + private static final long serialVersionUID = 0L; + // Use TableSpec.newBuilder() to construct. + private TableSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TableSpec() { + groupedEntry_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TableSpec(); + } + + 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(groupedEntry_)) { + com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(groupedEntry_)) { + size += com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..8c3dd2a97dc2 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TableSpecOrBuilder.java @@ -0,0 +1,62 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/table_spec.proto + +package com.google.cloud.datacatalog.v1beta1; + +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 new file mode 100644 index 000000000000..c37ca112f85c --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TableSpecOuterClass.java @@ -0,0 +1,132 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/table_spec.proto + +package com.google.cloud.datacatalog.v1beta1; + +public final class TableSpecOuterClass { + private 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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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\"\370\001\n\021BigQueryTa" + + "bleSpec\022R\n\021table_source_type\030\001 \001(\01621.goo" + + "gle.cloud.datacatalog.v1beta1.TableSourc" + + "eTypeB\004\342A\001\003\022?\n\tview_spec\030\002 \001(\0132*.google." + + "cloud.datacatalog.v1beta1.ViewSpecH\000\022A\n\n" + + "table_spec\030\003 \001(\0132+.google.cloud.datacata" + + "log.v1beta1.TableSpecH\000B\013\n\ttype_spec\"$\n\010" + + "ViewSpec\022\030\n\nview_query\030\001 \001(\tB\004\342A\001\003\"M\n\tTa" + + "bleSpec\022@\n\rgrouped_entry\030\001 \001(\tB)\342A\001\003\372A\"\n" + + " datacatalog.googleapis.com/Entry\"\214\001\n\027Bi" + + "gQueryDateShardedSpec\022:\n\007dataset\030\001 \001(\tB)" + + "\342A\001\003\372A\"\n datacatalog.googleapis.com/Entr" + + "y\022\032\n\014table_prefix\030\002 \001(\tB\004\342A\001\003\022\031\n\013shard_c" + + "ount\030\003 \001(\003B\004\342A\001\003*{\n\017TableSourceType\022!\n\035T" + + "ABLE_SOURCE_TYPE_UNSPECIFIED\020\000\022\021\n\rBIGQUE" + + "RY_VIEW\020\002\022\022\n\016BIGQUERY_TABLE\020\005\022\036\n\032BIGQUER" + + "Y_MATERIALIZED_VIEW\020\007B\337\001\n$com.google.clo" + + "ud.datacatalog.v1beta1P\001ZFcloud.google.c" + + "om/go/datacatalog/apiv1beta1/datacatalog" + + "pb;datacatalogpb\370\001\001\252\002 Google.Cloud.DataC" + + "atalog.V1Beta1\312\002 Google\\Cloud\\DataCatalo" + + "g\\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.api.ResourceProto.getDescriptor(), + }); + internal_static_google_cloud_datacatalog_v1beta1_BigQueryTableSpec_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_datacatalog_v1beta1_BigQueryTableSpec_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.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().getMessageTypes().get(1); + internal_static_google_cloud_datacatalog_v1beta1_ViewSpec_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datacatalog_v1beta1_ViewSpec_descriptor, + new java.lang.String[] { + "ViewQuery", + }); + internal_static_google_cloud_datacatalog_v1beta1_TableSpec_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_datacatalog_v1beta1_TableSpec_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datacatalog_v1beta1_TableSpec_descriptor, + new java.lang.String[] { + "GroupedEntry", + }); + internal_static_google_cloud_datacatalog_v1beta1_BigQueryDateShardedSpec_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_datacatalog_v1beta1_BigQueryDateShardedSpec_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datacatalog_v1beta1_BigQueryDateShardedSpec_descriptor, + new java.lang.String[] { + "Dataset", "TablePrefix", "ShardCount", + }); + 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); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.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/Tag.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/Tag.java new file mode 100644 index 000000000000..ae0340e2fdaf --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/Tag.java @@ -0,0 +1,1837 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/tags.proto + +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} + */ +public final class Tag extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.Tag) + TagOrBuilder { + private static final long serialVersionUID = 0L; + // Use Tag.newBuilder() to construct. + private Tag(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Tag() { + name_ = ""; + template_ = ""; + templateDisplayName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Tag(); + } + + 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.MapField internalGetMapField(int number) { + switch (number) { + case 3: + return internalGetFields(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.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_ = ""; + /** + * + * + *
+   * 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; + * + * @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 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; + * + * @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.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(template_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, template_); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetFields(), FieldsDefaultEntryHolder.defaultEntry, 3); + if (scopeCase_ == 4) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, scope_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(templateDisplayName_)) { + com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(template_)) { + size += com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.computeStringSize(4, scope_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(templateDisplayName_)) { + size += com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.MapField internalGetMapField(int number) { + switch (number) { + case 3: + return internalGetFields(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + switch (number) { + case 3: + return internalGetMutableFields(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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(); + result.fields_.makeImmutable(); + } + } + + private void buildPartialOneofs(com.google.cloud.datacatalog.v1beta1.Tag result) { + result.scopeCase_ = scopeCase_; + result.scope_ = this.scope_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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() + .getMutableMap() + .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_ = ""; + /** + * + * + *
+     * 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; + * + * @return The name. + */ + public java.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 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; + * + * @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 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; + * + * @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 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; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * 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; + * + * @param value The 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 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_; + } + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.datacatalog.v1beta1.TagField> + internalGetMutableFields() { + if (fields_ == null) { + fields_ = com.google.protobuf.MapField.newMapField(FieldsDefaultEntryHolder.defaultEntry); + } + if (!fields_.isMutable()) { + fields_ = fields_.copy(); + } + bitField0_ |= 0x00000010; + onChanged(); + 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); + } + + public Builder clearFields() { + bitField0_ = (bitField0_ & ~0x00000010); + internalGetMutableFields().getMutableMap().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().getMutableMap().remove(key); + return this; + } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map + getMutableFields() { + bitField0_ |= 0x00000010; + return internalGetMutableFields().getMutableMap(); + } + /** + * + * + *
+     * 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().getMutableMap().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) { + internalGetMutableFields().getMutableMap().putAll(values); + bitField0_ |= 0x00000010; + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..790376de4480 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TagField.java @@ -0,0 +1,2565 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/tags.proto + +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} + */ +public final class TagField extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.TagField) + TagFieldOrBuilder { + private static final long serialVersionUID = 0L; + // Use TagField.newBuilder() to construct. + private TagField(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TagField() { + displayName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TagField(); + } + + 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.GeneratedMessageV3.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.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.TagField.EnumValue) + EnumValueOrBuilder { + private static final long serialVersionUID = 0L; + // Use EnumValue.newBuilder() to construct. + private EnumValue(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private EnumValue() { + displayName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new EnumValue(); + } + + 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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.GeneratedMessageV3.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, displayName_); + } + if (kindCase_ == 2) { + output.writeDouble(2, (double) ((java.lang.Double) kind_)); + } + if (kindCase_ == 3) { + com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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(getTimestampValueFieldBuilder().getBuilder(), extensionRegistry); + kindCase_ = 5; + break; + } // case 42 + case 50: + { + input.readMessage(getEnumValueFieldBuilder().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.SingleFieldBuilderV3< + 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 getTimestampValueFieldBuilder().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.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getTimestampValueFieldBuilder() { + if (timestampValueBuilder_ == null) { + if (!(kindCase_ == 5)) { + kind_ = com.google.protobuf.Timestamp.getDefaultInstance(); + } + timestampValueBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + 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.SingleFieldBuilderV3< + 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 getEnumValueFieldBuilder().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.SingleFieldBuilderV3< + com.google.cloud.datacatalog.v1beta1.TagField.EnumValue, + com.google.cloud.datacatalog.v1beta1.TagField.EnumValue.Builder, + com.google.cloud.datacatalog.v1beta1.TagField.EnumValueOrBuilder> + getEnumValueFieldBuilder() { + if (enumValueBuilder_ == null) { + if (!(kindCase_ == 6)) { + kind_ = com.google.cloud.datacatalog.v1beta1.TagField.EnumValue.getDefaultInstance(); + } + enumValueBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + 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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..ad5a73d54f51 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TagFieldOrBuilder.java @@ -0,0 +1,230 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/tags.proto + +package com.google.cloud.datacatalog.v1beta1; + +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/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TagName.java rename to java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TagName.java 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 new file mode 100644 index 000000000000..ce98971af99e --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TagOrBuilder.java @@ -0,0 +1,255 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/tags.proto + +package com.google.cloud.datacatalog.v1beta1; + +public interface TagOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1beta1.Tag) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * 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; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * 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; + * + * @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 new file mode 100644 index 000000000000..ff18fd7a80a4 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TagTemplate.java @@ -0,0 +1,1318 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/tags.proto + +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} + */ +public final class TagTemplate extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.TagTemplate) + TagTemplateOrBuilder { + private static final long serialVersionUID = 0L; + // Use TagTemplate.newBuilder() to construct. + private TagTemplate(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TagTemplate() { + name_ = ""; + displayName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TagTemplate(); + } + + 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.MapField internalGetMapField(int number) { + switch (number) { + case 3: + return internalGetFields(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.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); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * 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; + * + * @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 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; + * + * @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); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetFields(), FieldsDefaultEntryHolder.defaultEntry, 3); + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); + } + 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__); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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 (!getUnknownFields().equals(other.getUnknownFields())) return false; + 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 = (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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.MapField internalGetMapField(int number) { + switch (number) { + case 3: + return internalGetFields(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + switch (number) { + case 3: + return internalGetMutableFields(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + displayName_ = ""; + internalGetMutableFields().clear(); + 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(); + result.fields_.makeImmutable(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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() + .getMutableMap() + .put(fields__.getKey(), fields__.getValue()); + 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 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; + * + * @return The name. + */ + public java.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 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; + * + * @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 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; + * + * @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 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; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * 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; + * + * @param value The 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 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_; + } + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.datacatalog.v1beta1.TagTemplateField> + internalGetMutableFields() { + if (fields_ == null) { + fields_ = com.google.protobuf.MapField.newMapField(FieldsDefaultEntryHolder.defaultEntry); + } + if (!fields_.isMutable()) { + fields_ = fields_.copy(); + } + bitField0_ |= 0x00000004; + onChanged(); + 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 Builder clearFields() { + bitField0_ = (bitField0_ & ~0x00000004); + internalGetMutableFields().getMutableMap().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().getMutableMap().remove(key); + return this; + } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map + getMutableFields() { + bitField0_ |= 0x00000004; + return internalGetMutableFields().getMutableMap(); + } + /** + * + * + *
+     * 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().getMutableMap().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) { + internalGetMutableFields().getMutableMap().putAll(values); + bitField0_ |= 0x00000004; + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..cfc8f309b33b --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TagTemplateField.java @@ -0,0 +1,1517 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/tags.proto + +package com.google.cloud.datacatalog.v1beta1; + +/** + * + * + *
+ * The template for an individual field within a tag template.
+ * 
+ * + * Protobuf type {@code google.cloud.datacatalog.v1beta1.TagTemplateField} + */ +public final class TagTemplateField extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.TagTemplateField) + TagTemplateFieldOrBuilder { + private static final long serialVersionUID = 0L; + // Use TagTemplateField.newBuilder() to construct. + private TagTemplateField(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TagTemplateField() { + name_ = ""; + displayName_ = ""; + description_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TagTemplateField(); + } + + 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.GeneratedMessageV3.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); + } + + public static final int NAME_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Output only. 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) = OUTPUT_ONLY]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The resource name of the 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) = 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 type_ != null; + } + /** + * + * + *
+   * 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.GeneratedMessageV3.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, displayName_); + } + if (type_ != null) { + output.writeMessage(2, getType()); + } + if (isRequired_ != false) { + output.writeBool(3, isRequired_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, description_); + } + if (order_ != 0) { + output.writeInt32(5, order_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, displayName_); + } + if (type_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getType()); + } + if (isRequired_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, isRequired_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, description_); + } + if (order_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, order_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @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_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.type_ = typeBuilder_ == null ? type_ : typeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.isRequired_ = isRequired_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.description_ = description_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.order_ = order_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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(getTypeFieldBuilder().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. 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) = OUTPUT_ONLY]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The resource name of the 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) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The resource name of the 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) = OUTPUT_ONLY]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The resource name of the 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) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The resource name of the 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) = 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.SingleFieldBuilderV3< + 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); + } + 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 getTypeFieldBuilder().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.SingleFieldBuilderV3< + com.google.cloud.datacatalog.v1beta1.FieldType, + com.google.cloud.datacatalog.v1beta1.FieldType.Builder, + com.google.cloud.datacatalog.v1beta1.FieldTypeOrBuilder> + getTypeFieldBuilder() { + if (typeBuilder_ == null) { + typeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + 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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TagTemplateFieldEnumValueName.java rename to java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TagTemplateFieldEnumValueName.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TagTemplateFieldName.java rename to java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TagTemplateFieldName.java 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 new file mode 100644 index 000000000000..213cd9255111 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TagTemplateFieldOrBuilder.java @@ -0,0 +1,182 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/tags.proto + +package com.google.cloud.datacatalog.v1beta1; + +public interface TagTemplateFieldOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1beta1.TagTemplateField) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. 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) = OUTPUT_ONLY]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Output only. 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) = 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/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TagTemplateName.java rename to java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TagTemplateName.java 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 new file mode 100644 index 000000000000..ad27ae68402c --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TagTemplateOrBuilder.java @@ -0,0 +1,190 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/tags.proto + +package com.google.cloud.datacatalog.v1beta1; + +public interface TagTemplateOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1beta1.TagTemplate) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * 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; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * 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; + * + * @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); +} 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 new file mode 100644 index 000000000000..566954abca82 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/Tags.java @@ -0,0 +1,251 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/tags.proto + +package com.google.cloud.datacatalog.v1beta1; + +public final class Tags { + private 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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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/tim" + + "estamp.proto\"\223\003\n\003Tag\022\014\n\004name\030\001 \001(\t\022\026\n\010te" + + "mplate\030\002 \001(\tB\004\342A\001\002\022#\n\025template_display_n" + + "ame\030\005 \001(\tB\004\342A\001\003\022\020\n\006column\030\004 \001(\tH\000\022G\n\006fie" + + "lds\030\003 \003(\01321.google.cloud.datacatalog.v1b" + + "eta1.Tag.FieldsEntryB\004\342A\001\002\032Y\n\013FieldsEntr" + + "y\022\013\n\003key\030\001 \001(\t\0229\n\005value\030\002 \001(\0132*.google.c" + + "loud.datacatalog.v1beta1.TagField:\0028\001:\201\001" + + "\352A~\n\036datacatalog.googleapis.com/Tag\022\\pro" + + "jects/{project}/locations/{location}/ent" + + "ryGroups/{entry_group}/entries/{entry}/t" + + "ags/{tag}B\007\n\005scope\"\257\002\n\010TagField\022\032\n\014displ" + + "ay_name\030\001 \001(\tB\004\342A\001\003\022\026\n\014double_value\030\002 \001(" + + "\001H\000\022\026\n\014string_value\030\003 \001(\tH\000\022\024\n\nbool_valu" + + "e\030\004 \001(\010H\000\0225\n\017timestamp_value\030\005 \001(\0132\032.goo" + + "gle.protobuf.TimestampH\000\022J\n\nenum_value\030\006" + + " \001(\01324.google.cloud.datacatalog.v1beta1." + + "TagField.EnumValueH\000\022\023\n\005order\030\007 \001(\005B\004\342A\001" + + "\003\032!\n\tEnumValue\022\024\n\014display_name\030\001 \001(\tB\006\n\004" + + "kind\"\327\002\n\013TagTemplate\022\014\n\004name\030\001 \001(\t\022\024\n\014di" + + "splay_name\030\002 \001(\t\022O\n\006fields\030\003 \003(\01329.googl" + + "e.cloud.datacatalog.v1beta1.TagTemplate." + + "FieldsEntryB\004\342A\001\002\032a\n\013FieldsEntry\022\013\n\003key\030" + + "\001 \001(\t\022A\n\005value\030\002 \001(\01322.google.cloud.data" + + "catalog.v1beta1.TagTemplateField:\0028\001:p\352A" + + "m\n&datacatalog.googleapis.com/TagTemplat" + + "e\022Cprojects/{project}/locations/{locatio" + + "n}/tagTemplates/{tag_template}\"\276\002\n\020TagTe" + + "mplateField\022\022\n\004name\030\006 \001(\tB\004\342A\001\003\022\024\n\014displ" + + "ay_name\030\001 \001(\t\022?\n\004type\030\002 \001(\0132+.google.clo" + + "ud.datacatalog.v1beta1.FieldTypeB\004\342A\001\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.goog" + + "leapis.com/TagTemplateField\022Rprojects/{p" + + "roject}/locations/{location}/tagTemplate" + + "s/{tag_template}/fields/{field}\"\250\003\n\tFiel" + + "dType\022S\n\016primitive_type\030\001 \001(\01629.google.c" + + "loud.datacatalog.v1beta1.FieldType.Primi" + + "tiveTypeH\000\022I\n\tenum_type\030\002 \001(\01324.google.c" + + "loud.datacatalog.v1beta1.FieldType.EnumT" + + "ypeH\000\032\213\001\n\010EnumType\022V\n\016allowed_values\030\001 \003" + + "(\0132>.google.cloud.datacatalog.v1beta1.Fi" + + "eldType.EnumType.EnumValue\032\'\n\tEnumValue\022" + + "\032\n\014display_name\030\001 \001(\tB\004\342A\001\002\"`\n\rPrimitive" + + "Type\022\036\n\032PRIMITIVE_TYPE_UNSPECIFIED\020\000\022\n\n\006" + + "DOUBLE\020\001\022\n\n\006STRING\020\002\022\010\n\004BOOL\020\003\022\r\n\tTIMEST" + + "AMP\020\004B\013\n\ttype_declB\337\001\n$com.google.cloud." + + "datacatalog.v1beta1P\001ZFcloud.google.com/" + + "go/datacatalog/apiv1beta1/datacatalogpb;" + + "datacatalogpb\370\001\001\252\002 Google.Cloud.DataCata" + + "log.V1Beta1\312\002 Google\\Cloud\\DataCatalog\\V" + + "1beta1\352\002#Google::Cloud::DataCatalog::V1b" + + "eta1b\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().getMessageTypes().get(0); + internal_static_google_cloud_datacatalog_v1beta1_Tag_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.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.getNestedTypes().get(0); + internal_static_google_cloud_datacatalog_v1beta1_Tag_FieldsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.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().getMessageTypes().get(1); + internal_static_google_cloud_datacatalog_v1beta1_TagField_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.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 + .getNestedTypes() + .get(0); + internal_static_google_cloud_datacatalog_v1beta1_TagField_EnumValue_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datacatalog_v1beta1_TagField_EnumValue_descriptor, + new java.lang.String[] { + "DisplayName", + }); + internal_static_google_cloud_datacatalog_v1beta1_TagTemplate_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_datacatalog_v1beta1_TagTemplate_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datacatalog_v1beta1_TagTemplate_descriptor, + new java.lang.String[] { + "Name", "DisplayName", "Fields", + }); + internal_static_google_cloud_datacatalog_v1beta1_TagTemplate_FieldsEntry_descriptor = + internal_static_google_cloud_datacatalog_v1beta1_TagTemplate_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_datacatalog_v1beta1_TagTemplate_FieldsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.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().getMessageTypes().get(3); + internal_static_google_cloud_datacatalog_v1beta1_TagTemplateField_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.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().getMessageTypes().get(4); + internal_static_google_cloud_datacatalog_v1beta1_FieldType_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.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 + .getNestedTypes() + .get(0); + internal_static_google_cloud_datacatalog_v1beta1_FieldType_EnumType_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.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 + .getNestedTypes() + .get(0); + internal_static_google_cloud_datacatalog_v1beta1_FieldType_EnumType_EnumValue_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datacatalog_v1beta1_FieldType_EnumType_EnumValue_descriptor, + new java.lang.String[] { + "DisplayName", + }); + 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); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-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 new file mode 100644 index 000000000000..291ae4be30a0 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/Taxonomy.java @@ -0,0 +1,3178 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/policytagmanager.proto + +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} + */ +public final class Taxonomy extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.Taxonomy) + TaxonomyOrBuilder { + private static final long serialVersionUID = 0L; + // Use Taxonomy.newBuilder() to construct. + private Taxonomy(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Taxonomy() { + name_ = ""; + displayName_ = ""; + description_ = ""; + activatedPolicyTypes_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Taxonomy(); + } + + 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.GeneratedMessageV3.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), + ; + + /** + * + * + *
+     * 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 final 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.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.Taxonomy.Service) + ServiceOrBuilder { + private static final long serialVersionUID = 0L; + // Use Service.newBuilder() to construct. + private Service(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Service() { + name_ = 0; + identity_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Service(); + } + + 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(identity_)) { + com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(identity_)) { + size += com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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; + } + } + + 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 taxonomyTimestamps_ != null; + } + /** + * + * + *
+   * 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 java.util.List activatedPolicyTypes_; + + private static final com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.cloud.datacatalog.v1beta1.Taxonomy.PolicyType> + activatedPolicyTypes_converter_ = + new com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.cloud.datacatalog.v1beta1.Taxonomy.PolicyType>() { + public com.google.cloud.datacatalog.v1beta1.Taxonomy.PolicyType convert( + java.lang.Integer 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.ListAdapter< + java.lang.Integer, 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_.get(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_.get(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 service_ != null; + } + /** + * + * + *
+   * 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.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_); + } + if (policyTagCount_ != 0) { + output.writeInt32(4, policyTagCount_); + } + if (taxonomyTimestamps_ != null) { + 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_.get(i)); + } + if (service_ != null) { + 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.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); + } + if (policyTagCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, policyTagCount_); + } + if (taxonomyTimestamps_ != null) { + 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_.get(i)); + } + size += dataSize; + if (!getActivatedPolicyTypesList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); + } + activatedPolicyTypesMemoizedSerializedSize = dataSize; + } + if (service_ != null) { + 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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @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_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + 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); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.datacatalog.v1beta1.Taxonomy result) { + if (((bitField0_ & 0x00000020) != 0)) { + activatedPolicyTypes_ = java.util.Collections.unmodifiableList(activatedPolicyTypes_); + bitField0_ = (bitField0_ & ~0x00000020); + } + result.activatedPolicyTypes_ = activatedPolicyTypes_; + } + + 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_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.taxonomyTimestamps_ = + taxonomyTimestampsBuilder_ == null + ? taxonomyTimestamps_ + : taxonomyTimestampsBuilder_.build(); + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.service_ = serviceBuilder_ == null ? service_ : serviceBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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_; + bitField0_ = (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( + getTaxonomyTimestampsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: + { + int tmpRaw = input.readEnum(); + ensureActivatedPolicyTypesIsMutable(); + activatedPolicyTypes_.add(tmpRaw); + break; + } // case 48 + case 50: + { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while (input.getBytesUntilLimit() > 0) { + int tmpRaw = input.readEnum(); + ensureActivatedPolicyTypesIsMutable(); + activatedPolicyTypes_.add(tmpRaw); + } + input.popLimit(oldLimit); + break; + } // case 50 + case 58: + { + input.readMessage(getServiceFieldBuilder().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.SingleFieldBuilderV3< + 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); + } + 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 getTaxonomyTimestampsFieldBuilder().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.SingleFieldBuilderV3< + com.google.cloud.datacatalog.v1beta1.SystemTimestamps, + com.google.cloud.datacatalog.v1beta1.SystemTimestamps.Builder, + com.google.cloud.datacatalog.v1beta1.SystemTimestampsOrBuilder> + getTaxonomyTimestampsFieldBuilder() { + if (taxonomyTimestampsBuilder_ == null) { + taxonomyTimestampsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + 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 java.util.List activatedPolicyTypes_ = + java.util.Collections.emptyList(); + + private void ensureActivatedPolicyTypesIsMutable() { + if (!((bitField0_ & 0x00000020) != 0)) { + activatedPolicyTypes_ = new java.util.ArrayList(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.ListAdapter< + java.lang.Integer, 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_.get(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_.set(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_.add(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_.add(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_ = java.util.Collections.emptyList(); + 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() { + return java.util.Collections.unmodifiableList(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_.get(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_.set(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_.add(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_.add(value); + } + onChanged(); + return this; + } + + private com.google.cloud.datacatalog.v1beta1.Taxonomy.Service service_; + private com.google.protobuf.SingleFieldBuilderV3< + 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); + } + 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 getServiceFieldBuilder().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.SingleFieldBuilderV3< + com.google.cloud.datacatalog.v1beta1.Taxonomy.Service, + com.google.cloud.datacatalog.v1beta1.Taxonomy.Service.Builder, + com.google.cloud.datacatalog.v1beta1.Taxonomy.ServiceOrBuilder> + getServiceFieldBuilder() { + if (serviceBuilder_ == null) { + serviceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + 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_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TaxonomyName.java rename to java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TaxonomyName.java 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 new file mode 100644 index 000000000000..1a84b4da05ec --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TaxonomyOrBuilder.java @@ -0,0 +1,299 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/policytagmanager.proto + +package com.google.cloud.datacatalog.v1beta1; + +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 new file mode 100644 index 000000000000..17f609ec2f57 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/Timestamps.java @@ -0,0 +1,83 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/timestamps.proto + +package com.google.cloud.datacatalog.v1beta1; + +public final class Timestamps { + private 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.GeneratedMessageV3.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\"\253\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\0225\n\013expire" + + "_time\030\003 \001(\0132\032.google.protobuf.TimestampB" + + "\004\342A\001\003B\337\001\n$com.google.cloud.datacatalog.v" + + "1beta1P\001ZFcloud.google.com/go/datacatalo" + + "g/apiv1beta1/datacatalogpb;datacatalogpb" + + "\370\001\001\252\002 Google.Cloud.DataCatalog.V1Beta1\312\002" + + " Google\\Cloud\\DataCatalog\\V1beta1\352\002#Goog" + + "le::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().getMessageTypes().get(0); + internal_static_google_cloud_datacatalog_v1beta1_SystemTimestamps_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datacatalog_v1beta1_SystemTimestamps_descriptor, + new java.lang.String[] { + "CreateTime", "UpdateTime", "ExpireTime", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-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 new file mode 100644 index 000000000000..c2552a741ba3 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UpdateEntryGroupRequest.java @@ -0,0 +1,1046 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/datacatalog.proto + +package com.google.cloud.datacatalog.v1beta1; + +/** + * + * + *
+ * Request message for
+ * [UpdateEntryGroup][google.cloud.datacatalog.v1beta1.DataCatalog.UpdateEntryGroup].
+ * 
+ * + * Protobuf type {@code google.cloud.datacatalog.v1beta1.UpdateEntryGroupRequest} + */ +public final class UpdateEntryGroupRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.UpdateEntryGroupRequest) + UpdateEntryGroupRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateEntryGroupRequest.newBuilder() to construct. + private UpdateEntryGroupRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateEntryGroupRequest() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new 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.GeneratedMessageV3.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); + } + + 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 entryGroup_ != null; + } + /** + * + * + *
+   * 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 updateMask_ != null; + } + /** + * + * + *
+   * 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 (entryGroup_ != null) { + output.writeMessage(1, getEntryGroup()); + } + if (updateMask_ != null) { + output.writeMessage(2, getUpdateMask()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (entryGroup_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getEntryGroup()); + } + if (updateMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @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_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.entryGroup_ = entryGroupBuilder_ == null ? entryGroup_ : entryGroupBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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(getEntryGroupFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.cloud.datacatalog.v1beta1.EntryGroup entryGroup_; + private com.google.protobuf.SingleFieldBuilderV3< + 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); + } + 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 getEntryGroupFieldBuilder().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.SingleFieldBuilderV3< + com.google.cloud.datacatalog.v1beta1.EntryGroup, + com.google.cloud.datacatalog.v1beta1.EntryGroup.Builder, + com.google.cloud.datacatalog.v1beta1.EntryGroupOrBuilder> + getEntryGroupFieldBuilder() { + if (entryGroupBuilder_ == null) { + entryGroupBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + 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.SingleFieldBuilderV3< + 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); + } + 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 getUpdateMaskFieldBuilder().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.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..8baf6f359916 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UpdateEntryGroupRequestOrBuilder.java @@ -0,0 +1,113 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/datacatalog.proto + +package com.google.cloud.datacatalog.v1beta1; + +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 new file mode 100644 index 000000000000..da1cd5c8d2ed --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UpdateEntryRequest.java @@ -0,0 +1,1268 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/datacatalog.proto + +package com.google.cloud.datacatalog.v1beta1; + +/** + * + * + *
+ * Request message for
+ * [UpdateEntry][google.cloud.datacatalog.v1beta1.DataCatalog.UpdateEntry].
+ * 
+ * + * Protobuf type {@code google.cloud.datacatalog.v1beta1.UpdateEntryRequest} + */ +public final class UpdateEntryRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.UpdateEntryRequest) + UpdateEntryRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateEntryRequest.newBuilder() to construct. + private UpdateEntryRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateEntryRequest() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new 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.GeneratedMessageV3.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); + } + + 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 entry_ != null; + } + /** + * + * + *
+   * 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 updateMask_ != null; + } + /** + * + * + *
+   * 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 (entry_ != null) { + output.writeMessage(1, getEntry()); + } + if (updateMask_ != null) { + output.writeMessage(2, getUpdateMask()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (entry_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getEntry()); + } + if (updateMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @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_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.entry_ = entryBuilder_ == null ? entry_ : entryBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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(getEntryFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.cloud.datacatalog.v1beta1.Entry entry_; + private com.google.protobuf.SingleFieldBuilderV3< + 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); + } + 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 getEntryFieldBuilder().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.SingleFieldBuilderV3< + com.google.cloud.datacatalog.v1beta1.Entry, + com.google.cloud.datacatalog.v1beta1.Entry.Builder, + com.google.cloud.datacatalog.v1beta1.EntryOrBuilder> + getEntryFieldBuilder() { + if (entryBuilder_ == null) { + entryBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + 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.SingleFieldBuilderV3< + 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); + } + 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 getUpdateMaskFieldBuilder().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.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..a3086bd428b6 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UpdateEntryRequestOrBuilder.java @@ -0,0 +1,170 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/datacatalog.proto + +package com.google.cloud.datacatalog.v1beta1; + +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 new file mode 100644 index 000000000000..e53da3dbe452 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UpdatePolicyTagRequest.java @@ -0,0 +1,1053 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/policytagmanager.proto + +package com.google.cloud.datacatalog.v1beta1; + +/** + * + * + *
+ * Request message for
+ * [UpdatePolicyTag][google.cloud.datacatalog.v1beta1.PolicyTagManager.UpdatePolicyTag].
+ * 
+ * + * Protobuf type {@code google.cloud.datacatalog.v1beta1.UpdatePolicyTagRequest} + */ +public final class UpdatePolicyTagRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.UpdatePolicyTagRequest) + UpdatePolicyTagRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdatePolicyTagRequest.newBuilder() to construct. + private UpdatePolicyTagRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdatePolicyTagRequest() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new 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.GeneratedMessageV3.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); + } + + 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 policyTag_ != null; + } + /** + * + * + *
+   * 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 updateMask_ != null; + } + /** + * + * + *
+   * 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 (policyTag_ != null) { + output.writeMessage(1, getPolicyTag()); + } + if (updateMask_ != null) { + output.writeMessage(2, getUpdateMask()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (policyTag_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getPolicyTag()); + } + if (updateMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @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_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.policyTag_ = policyTagBuilder_ == null ? policyTag_ : policyTagBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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(getPolicyTagFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.cloud.datacatalog.v1beta1.PolicyTag policyTag_; + private com.google.protobuf.SingleFieldBuilderV3< + 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); + } + 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 getPolicyTagFieldBuilder().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.SingleFieldBuilderV3< + com.google.cloud.datacatalog.v1beta1.PolicyTag, + com.google.cloud.datacatalog.v1beta1.PolicyTag.Builder, + com.google.cloud.datacatalog.v1beta1.PolicyTagOrBuilder> + getPolicyTagFieldBuilder() { + if (policyTagBuilder_ == null) { + policyTagBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + 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.SingleFieldBuilderV3< + 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); + } + 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 getUpdateMaskFieldBuilder().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.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..5de5708fb5c3 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UpdatePolicyTagRequestOrBuilder.java @@ -0,0 +1,116 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/policytagmanager.proto + +package com.google.cloud.datacatalog.v1beta1; + +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 new file mode 100644 index 000000000000..42fc3cd1b2af --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UpdateTagRequest.java @@ -0,0 +1,1065 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/datacatalog.proto + +package com.google.cloud.datacatalog.v1beta1; + +/** + * + * + *
+ * Request message for
+ * [UpdateTag][google.cloud.datacatalog.v1beta1.DataCatalog.UpdateTag].
+ * 
+ * + * Protobuf type {@code google.cloud.datacatalog.v1beta1.UpdateTagRequest} + */ +public final class UpdateTagRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.UpdateTagRequest) + UpdateTagRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateTagRequest.newBuilder() to construct. + private UpdateTagRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateTagRequest() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new 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.GeneratedMessageV3.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); + } + + 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 tag_ != null; + } + /** + * + * + *
+   * 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 updateMask_ != null; + } + /** + * + * + *
+   * 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 (tag_ != null) { + output.writeMessage(1, getTag()); + } + if (updateMask_ != null) { + output.writeMessage(2, getUpdateMask()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (tag_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getTag()); + } + if (updateMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @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_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.tag_ = tagBuilder_ == null ? tag_ : tagBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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(getTagFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.cloud.datacatalog.v1beta1.Tag tag_; + private com.google.protobuf.SingleFieldBuilderV3< + 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); + } + 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 getTagFieldBuilder().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.SingleFieldBuilderV3< + com.google.cloud.datacatalog.v1beta1.Tag, + com.google.cloud.datacatalog.v1beta1.Tag.Builder, + com.google.cloud.datacatalog.v1beta1.TagOrBuilder> + getTagFieldBuilder() { + if (tagBuilder_ == null) { + tagBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + 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.SingleFieldBuilderV3< + 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); + } + 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 getUpdateMaskFieldBuilder().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.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..3f79459dcfe7 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UpdateTagRequestOrBuilder.java @@ -0,0 +1,119 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/datacatalog.proto + +package com.google.cloud.datacatalog.v1beta1; + +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 new file mode 100644 index 000000000000..4931d5bd1f0f --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UpdateTagTemplateFieldRequest.java @@ -0,0 +1,1415 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/datacatalog.proto + +package com.google.cloud.datacatalog.v1beta1; + +/** + * + * + *
+ * Request message for
+ * [UpdateTagTemplateField][google.cloud.datacatalog.v1beta1.DataCatalog.UpdateTagTemplateField].
+ * 
+ * + * Protobuf type {@code google.cloud.datacatalog.v1beta1.UpdateTagTemplateFieldRequest} + */ +public final class UpdateTagTemplateFieldRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.UpdateTagTemplateFieldRequest) + UpdateTagTemplateFieldRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateTagTemplateFieldRequest.newBuilder() to construct. + private UpdateTagTemplateFieldRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateTagTemplateFieldRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateTagTemplateFieldRequest(); + } + + 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.GeneratedMessageV3.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); + } + + 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 tagTemplateField_ != null; + } + /** + * + * + *
+   * 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 updateMask_ != null; + } + /** + * + * + *
+   * 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.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (tagTemplateField_ != null) { + output.writeMessage(2, getTagTemplateField()); + } + if (updateMask_ != null) { + 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.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (tagTemplateField_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getTagTemplateField()); + } + if (updateMask_ != null) { + 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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @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_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.tagTemplateField_ = + tagTemplateFieldBuilder_ == null ? tagTemplateField_ : tagTemplateFieldBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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( + getTagTemplateFieldFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getUpdateMaskFieldBuilder().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.SingleFieldBuilderV3< + 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); + } + 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 getTagTemplateFieldFieldBuilder().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.SingleFieldBuilderV3< + com.google.cloud.datacatalog.v1beta1.TagTemplateField, + com.google.cloud.datacatalog.v1beta1.TagTemplateField.Builder, + com.google.cloud.datacatalog.v1beta1.TagTemplateFieldOrBuilder> + getTagTemplateFieldFieldBuilder() { + if (tagTemplateFieldBuilder_ == null) { + tagTemplateFieldBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + 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.SingleFieldBuilderV3< + 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); + } + 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 getUpdateMaskFieldBuilder().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.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..7f9c9dff5eb1 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UpdateTagTemplateFieldRequestOrBuilder.java @@ -0,0 +1,182 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/datacatalog.proto + +package com.google.cloud.datacatalog.v1beta1; + +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 new file mode 100644 index 000000000000..e116cadbd3a7 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UpdateTagTemplateRequest.java @@ -0,0 +1,1059 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/datacatalog.proto + +package com.google.cloud.datacatalog.v1beta1; + +/** + * + * + *
+ * Request message for
+ * [UpdateTagTemplate][google.cloud.datacatalog.v1beta1.DataCatalog.UpdateTagTemplate].
+ * 
+ * + * Protobuf type {@code google.cloud.datacatalog.v1beta1.UpdateTagTemplateRequest} + */ +public final class UpdateTagTemplateRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.UpdateTagTemplateRequest) + UpdateTagTemplateRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateTagTemplateRequest.newBuilder() to construct. + private UpdateTagTemplateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateTagTemplateRequest() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new 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.GeneratedMessageV3.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); + } + + 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 tagTemplate_ != null; + } + /** + * + * + *
+   * 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 updateMask_ != null; + } + /** + * + * + *
+   * 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 (tagTemplate_ != null) { + output.writeMessage(1, getTagTemplate()); + } + if (updateMask_ != null) { + output.writeMessage(2, getUpdateMask()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (tagTemplate_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getTagTemplate()); + } + if (updateMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @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_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.tagTemplate_ = + tagTemplateBuilder_ == null ? tagTemplate_ : tagTemplateBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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(getTagTemplateFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.cloud.datacatalog.v1beta1.TagTemplate tagTemplate_; + private com.google.protobuf.SingleFieldBuilderV3< + 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); + } + 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 getTagTemplateFieldBuilder().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.SingleFieldBuilderV3< + com.google.cloud.datacatalog.v1beta1.TagTemplate, + com.google.cloud.datacatalog.v1beta1.TagTemplate.Builder, + com.google.cloud.datacatalog.v1beta1.TagTemplateOrBuilder> + getTagTemplateFieldBuilder() { + if (tagTemplateBuilder_ == null) { + tagTemplateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + 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.SingleFieldBuilderV3< + 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); + } + 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 getUpdateMaskFieldBuilder().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.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..450a34a6d614 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UpdateTagTemplateRequestOrBuilder.java @@ -0,0 +1,116 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/datacatalog.proto + +package com.google.cloud.datacatalog.v1beta1; + +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 new file mode 100644 index 000000000000..3067aace2906 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UpdateTaxonomyRequest.java @@ -0,0 +1,1017 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/policytagmanager.proto + +package com.google.cloud.datacatalog.v1beta1; + +/** + * + * + *
+ * Request message for
+ * [UpdateTaxonomy][google.cloud.datacatalog.v1beta1.PolicyTagManager.UpdateTaxonomy].
+ * 
+ * + * Protobuf type {@code google.cloud.datacatalog.v1beta1.UpdateTaxonomyRequest} + */ +public final class UpdateTaxonomyRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.UpdateTaxonomyRequest) + UpdateTaxonomyRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateTaxonomyRequest.newBuilder() to construct. + private UpdateTaxonomyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateTaxonomyRequest() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new 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.GeneratedMessageV3.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); + } + + 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 taxonomy_ != null; + } + /** + * + * + *
+   * 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 updateMask_ != null; + } + /** + * + * + *
+   * 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 (taxonomy_ != null) { + output.writeMessage(1, getTaxonomy()); + } + if (updateMask_ != null) { + output.writeMessage(2, getUpdateMask()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (taxonomy_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getTaxonomy()); + } + if (updateMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @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_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.taxonomy_ = taxonomyBuilder_ == null ? taxonomy_ : taxonomyBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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(getTaxonomyFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.cloud.datacatalog.v1beta1.Taxonomy taxonomy_; + private com.google.protobuf.SingleFieldBuilderV3< + 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); + } + 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 getTaxonomyFieldBuilder().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.SingleFieldBuilderV3< + com.google.cloud.datacatalog.v1beta1.Taxonomy, + com.google.cloud.datacatalog.v1beta1.Taxonomy.Builder, + com.google.cloud.datacatalog.v1beta1.TaxonomyOrBuilder> + getTaxonomyFieldBuilder() { + if (taxonomyBuilder_ == null) { + taxonomyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + 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.SingleFieldBuilderV3< + 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); + } + 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 getUpdateMaskFieldBuilder().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.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..65c9b0c3163c --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UpdateTaxonomyRequestOrBuilder.java @@ -0,0 +1,107 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/policytagmanager.proto + +package com.google.cloud.datacatalog.v1beta1; + +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 new file mode 100644 index 000000000000..cc4fc2ee221c --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/Usage.java @@ -0,0 +1,111 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/usage.proto + +package com.google.cloud.datacatalog.v1beta1; + +public final class Usage { + private 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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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\337\001\n$com.google.cloud" + + ".datacatalog.v1beta1P\001ZFcloud.google.com" + + "/go/datacatalog/apiv1beta1/datacatalogpb" + + ";datacatalogpb\370\001\001\252\002 Google.Cloud.DataCat" + + "alog.V1Beta1\312\002 Google\\Cloud\\DataCatalog\\" + + "V1beta1\352\002#Google::Cloud::DataCatalog::V1" + + "beta1b\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().getMessageTypes().get(0); + internal_static_google_cloud_datacatalog_v1beta1_UsageStats_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.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().getMessageTypes().get(1); + internal_static_google_cloud_datacatalog_v1beta1_UsageSignal_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.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 + .getNestedTypes() + .get(0); + internal_static_google_cloud_datacatalog_v1beta1_UsageSignal_UsageWithinTimeRangeEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datacatalog_v1beta1_UsageSignal_UsageWithinTimeRangeEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + 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 new file mode 100644 index 000000000000..cbe96294637f --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UsageSignal.java @@ -0,0 +1,1106 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/usage.proto + +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} + */ +public final class UsageSignal extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.UsageSignal) + UsageSignalOrBuilder { + private static final long serialVersionUID = 0L; + // Use UsageSignal.newBuilder() to construct. + private UsageSignal(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UsageSignal() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new 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.MapField internalGetMapField(int number) { + switch (number) { + case 2: + return internalGetUsageWithinTimeRange(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.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); + } + + 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 updateTime_ != null; + } + /** + * + * + *
+   * 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 (updateTime_ != null) { + output.writeMessage(1, getUpdateTime()); + } + com.google.protobuf.GeneratedMessageV3.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 (updateTime_ != null) { + 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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.MapField internalGetMapField(int number) { + switch (number) { + case 2: + return internalGetUsageWithinTimeRange(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + switch (number) { + case 2: + return internalGetMutableUsageWithinTimeRange(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.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() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @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_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.usageWithinTimeRange_ = internalGetUsageWithinTimeRange(); + result.usageWithinTimeRange_.makeImmutable(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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(getUpdateTimeFieldBuilder().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() + .getMutableMap() + .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.SingleFieldBuilderV3< + 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); + } + 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 getUpdateTimeFieldBuilder().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.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private com.google.protobuf.MapField< + java.lang.String, 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_; + } + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.datacatalog.v1beta1.UsageStats> + internalGetMutableUsageWithinTimeRange() { + if (usageWithinTimeRange_ == null) { + usageWithinTimeRange_ = + com.google.protobuf.MapField.newMapField( + UsageWithinTimeRangeDefaultEntryHolder.defaultEntry); + } + if (!usageWithinTimeRange_.isMutable()) { + usageWithinTimeRange_ = usageWithinTimeRange_.copy(); + } + bitField0_ |= 0x00000002; + onChanged(); + 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); + } + + public Builder clearUsageWithinTimeRange() { + bitField0_ = (bitField0_ & ~0x00000002); + internalGetMutableUsageWithinTimeRange().getMutableMap().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().getMutableMap().remove(key); + return this; + } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map + getMutableUsageWithinTimeRange() { + bitField0_ |= 0x00000002; + return internalGetMutableUsageWithinTimeRange().getMutableMap(); + } + /** + * + * + *
+     * 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().getMutableMap().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) { + internalGetMutableUsageWithinTimeRange().getMutableMap().putAll(values); + bitField0_ |= 0x00000002; + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..1289c539a3a3 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UsageSignalOrBuilder.java @@ -0,0 +1,136 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/usage.proto + +package com.google.cloud.datacatalog.v1beta1; + +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 new file mode 100644 index 000000000000..c236665457df --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UsageStats.java @@ -0,0 +1,842 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/usage.proto + +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} + */ +public final class UsageStats extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.UsageStats) + UsageStatsOrBuilder { + private static final long serialVersionUID = 0L; + // Use UsageStats.newBuilder() to construct. + private UsageStats(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UsageStats() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new 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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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 (other.getTotalCompletions() != 0F) { + setTotalCompletions(other.getTotalCompletions()); + } + if (other.getTotalFailures() != 0F) { + setTotalFailures(other.getTotalFailures()); + } + if (other.getTotalCancellations() != 0F) { + setTotalCancellations(other.getTotalCancellations()); + } + if (other.getTotalExecutionTimeForCompletionsMillis() != 0F) { + 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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..8819c347673e --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UsageStatsOrBuilder.java @@ -0,0 +1,79 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/usage.proto + +package com.google.cloud.datacatalog.v1beta1; + +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 new file mode 100644 index 000000000000..87dea734d358 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ViewSpec.java @@ -0,0 +1,623 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/table_spec.proto + +package com.google.cloud.datacatalog.v1beta1; + +/** + * + * + *
+ * Table view specification.
+ * 
+ * + * Protobuf type {@code google.cloud.datacatalog.v1beta1.ViewSpec} + */ +public final class ViewSpec extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.ViewSpec) + ViewSpecOrBuilder { + private static final long serialVersionUID = 0L; + // Use ViewSpec.newBuilder() to construct. + private ViewSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ViewSpec() { + viewQuery_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ViewSpec(); + } + + 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(viewQuery_)) { + com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(viewQuery_)) { + size += com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.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 new file mode 100644 index 000000000000..3c547270c614 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ViewSpecOrBuilder.java @@ -0,0 +1,50 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datacatalog/v1beta1/table_spec.proto + +package com.google.cloud.datacatalog.v1beta1; + +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/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/proto/google/cloud/datacatalog/v1beta1/common.proto rename to java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/proto/google/cloud/datacatalog/v1beta1/common.proto diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/proto/google/cloud/datacatalog/v1beta1/datacatalog.proto rename to java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/proto/google/cloud/datacatalog/v1beta1/datacatalog.proto diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/proto/google/cloud/datacatalog/v1beta1/gcs_fileset_spec.proto rename to java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/proto/google/cloud/datacatalog/v1beta1/gcs_fileset_spec.proto diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/proto/google/cloud/datacatalog/v1beta1/policytagmanager.proto rename to java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/proto/google/cloud/datacatalog/v1beta1/policytagmanager.proto diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/proto/google/cloud/datacatalog/v1beta1/policytagmanagerserialization.proto rename to java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/proto/google/cloud/datacatalog/v1beta1/policytagmanagerserialization.proto diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/proto/google/cloud/datacatalog/v1beta1/schema.proto rename to java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/proto/google/cloud/datacatalog/v1beta1/schema.proto diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/proto/google/cloud/datacatalog/v1beta1/search.proto rename to java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/proto/google/cloud/datacatalog/v1beta1/search.proto diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/proto/google/cloud/datacatalog/v1beta1/table_spec.proto rename to java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/proto/google/cloud/datacatalog/v1beta1/table_spec.proto diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/proto/google/cloud/datacatalog/v1beta1/tags.proto rename to java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/proto/google/cloud/datacatalog/v1beta1/tags.proto diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/proto/google/cloud/datacatalog/v1beta1/timestamps.proto rename to java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/proto/google/cloud/datacatalog/v1beta1/timestamps.proto diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/proto/google/cloud/datacatalog/v1beta1/usage.proto rename to java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/proto/google/cloud/datacatalog/v1beta1/usage.proto diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/create/SyncCreateSetCredentialsProvider.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/create/SyncCreateSetCredentialsProvider.java diff --git a/owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/create/SyncCreateSetCredentialsProvider1.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/create/SyncCreateSetCredentialsProvider1.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/create/SyncCreateSetCredentialsProvider1.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/create/SyncCreateSetEndpoint.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/create/SyncCreateSetEndpoint.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/createentry/AsyncCreateEntry.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/createentry/AsyncCreateEntry.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/createentry/SyncCreateEntry.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/createentry/SyncCreateEntry.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/createentry/SyncCreateEntryEntrygroupnameStringEntry.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/createentry/SyncCreateEntryEntrygroupnameStringEntry.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/createentry/SyncCreateEntryStringStringEntry.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/createentry/SyncCreateEntryStringStringEntry.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/createentrygroup/AsyncCreateEntryGroup.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/createentrygroup/AsyncCreateEntryGroup.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/createentrygroup/SyncCreateEntryGroup.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/createentrygroup/SyncCreateEntryGroup.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/createentrygroup/SyncCreateEntryGroupLocationnameStringEntrygroup.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/createentrygroup/SyncCreateEntryGroupLocationnameStringEntrygroup.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/createentrygroup/SyncCreateEntryGroupStringStringEntrygroup.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/createentrygroup/SyncCreateEntryGroupStringStringEntrygroup.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/createtag/AsyncCreateTag.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/createtag/AsyncCreateTag.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/createtag/SyncCreateTag.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/createtag/SyncCreateTag.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/createtag/SyncCreateTagEntrynameTag.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/createtag/SyncCreateTagEntrynameTag.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/createtag/SyncCreateTagStringTag.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/createtag/SyncCreateTagStringTag.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/createtagtemplate/AsyncCreateTagTemplate.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/createtagtemplate/AsyncCreateTagTemplate.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/createtagtemplate/SyncCreateTagTemplate.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/createtagtemplate/SyncCreateTagTemplate.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/createtagtemplate/SyncCreateTagTemplateLocationnameStringTagtemplate.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/createtagtemplate/SyncCreateTagTemplateLocationnameStringTagtemplate.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/createtagtemplate/SyncCreateTagTemplateStringStringTagtemplate.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/createtagtemplate/SyncCreateTagTemplateStringStringTagtemplate.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/createtagtemplatefield/AsyncCreateTagTemplateField.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/createtagtemplatefield/AsyncCreateTagTemplateField.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/createtagtemplatefield/SyncCreateTagTemplateField.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/createtagtemplatefield/SyncCreateTagTemplateField.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/createtagtemplatefield/SyncCreateTagTemplateFieldStringStringTagtemplatefield.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/createtagtemplatefield/SyncCreateTagTemplateFieldStringStringTagtemplatefield.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/createtagtemplatefield/SyncCreateTagTemplateFieldTagtemplatenameStringTagtemplatefield.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/createtagtemplatefield/SyncCreateTagTemplateFieldTagtemplatenameStringTagtemplatefield.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/deleteentry/AsyncDeleteEntry.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/deleteentry/AsyncDeleteEntry.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/deleteentry/SyncDeleteEntry.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/deleteentry/SyncDeleteEntry.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/deleteentry/SyncDeleteEntryEntryname.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/deleteentry/SyncDeleteEntryEntryname.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/deleteentry/SyncDeleteEntryString.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/deleteentry/SyncDeleteEntryString.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/deleteentrygroup/AsyncDeleteEntryGroup.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/deleteentrygroup/AsyncDeleteEntryGroup.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/deleteentrygroup/SyncDeleteEntryGroup.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/deleteentrygroup/SyncDeleteEntryGroup.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/deleteentrygroup/SyncDeleteEntryGroupEntrygroupname.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/deleteentrygroup/SyncDeleteEntryGroupEntrygroupname.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/deleteentrygroup/SyncDeleteEntryGroupString.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/deleteentrygroup/SyncDeleteEntryGroupString.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/deletetag/AsyncDeleteTag.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/deletetag/AsyncDeleteTag.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/deletetag/SyncDeleteTag.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/deletetag/SyncDeleteTag.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/deletetag/SyncDeleteTagEntryname.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/deletetag/SyncDeleteTagEntryname.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/deletetag/SyncDeleteTagString.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/deletetag/SyncDeleteTagString.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/deletetagtemplate/AsyncDeleteTagTemplate.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/deletetagtemplate/AsyncDeleteTagTemplate.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/deletetagtemplate/SyncDeleteTagTemplate.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/deletetagtemplate/SyncDeleteTagTemplate.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/deletetagtemplate/SyncDeleteTagTemplateStringBoolean.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/deletetagtemplate/SyncDeleteTagTemplateStringBoolean.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/deletetagtemplate/SyncDeleteTagTemplateTagtemplatenameBoolean.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/deletetagtemplate/SyncDeleteTagTemplateTagtemplatenameBoolean.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/deletetagtemplatefield/AsyncDeleteTagTemplateField.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/deletetagtemplatefield/AsyncDeleteTagTemplateField.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/deletetagtemplatefield/SyncDeleteTagTemplateField.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/deletetagtemplatefield/SyncDeleteTagTemplateField.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/deletetagtemplatefield/SyncDeleteTagTemplateFieldStringBoolean.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/deletetagtemplatefield/SyncDeleteTagTemplateFieldStringBoolean.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/deletetagtemplatefield/SyncDeleteTagTemplateFieldTagtemplatefieldnameBoolean.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/deletetagtemplatefield/SyncDeleteTagTemplateFieldTagtemplatefieldnameBoolean.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/getentry/AsyncGetEntry.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/getentry/AsyncGetEntry.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/getentry/SyncGetEntry.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/getentry/SyncGetEntry.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/getentry/SyncGetEntryEntryname.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/getentry/SyncGetEntryEntryname.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/getentry/SyncGetEntryString.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/getentry/SyncGetEntryString.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/getentrygroup/AsyncGetEntryGroup.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/getentrygroup/AsyncGetEntryGroup.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/getentrygroup/SyncGetEntryGroup.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/getentrygroup/SyncGetEntryGroup.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/getentrygroup/SyncGetEntryGroupEntrygroupname.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/getentrygroup/SyncGetEntryGroupEntrygroupname.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/getentrygroup/SyncGetEntryGroupEntrygroupnameFieldmask.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/getentrygroup/SyncGetEntryGroupEntrygroupnameFieldmask.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/getentrygroup/SyncGetEntryGroupString.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/getentrygroup/SyncGetEntryGroupString.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/getentrygroup/SyncGetEntryGroupStringFieldmask.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/getentrygroup/SyncGetEntryGroupStringFieldmask.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/getiampolicy/AsyncGetIamPolicy.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/getiampolicy/AsyncGetIamPolicy.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/getiampolicy/SyncGetIamPolicy.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/getiampolicy/SyncGetIamPolicy.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/getiampolicy/SyncGetIamPolicyResourcename.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/getiampolicy/SyncGetIamPolicyResourcename.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/getiampolicy/SyncGetIamPolicyString.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/getiampolicy/SyncGetIamPolicyString.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/gettagtemplate/AsyncGetTagTemplate.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/gettagtemplate/AsyncGetTagTemplate.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/gettagtemplate/SyncGetTagTemplate.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/gettagtemplate/SyncGetTagTemplate.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/gettagtemplate/SyncGetTagTemplateString.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/gettagtemplate/SyncGetTagTemplateString.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/gettagtemplate/SyncGetTagTemplateTagtemplatename.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/gettagtemplate/SyncGetTagTemplateTagtemplatename.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/importentries/AsyncImportEntries.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/importentries/AsyncImportEntries.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/importentries/AsyncImportEntriesLRO.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/importentries/AsyncImportEntriesLRO.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/importentries/SyncImportEntries.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/importentries/SyncImportEntries.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/listentries/AsyncListEntries.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/listentries/AsyncListEntries.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/listentries/AsyncListEntriesPaged.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/listentries/AsyncListEntriesPaged.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/listentries/SyncListEntries.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/listentries/SyncListEntries.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/listentries/SyncListEntriesEntrygroupname.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/listentries/SyncListEntriesEntrygroupname.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/listentries/SyncListEntriesString.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/listentries/SyncListEntriesString.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/listentrygroups/AsyncListEntryGroups.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/listentrygroups/AsyncListEntryGroups.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/listentrygroups/AsyncListEntryGroupsPaged.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/listentrygroups/AsyncListEntryGroupsPaged.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/listentrygroups/SyncListEntryGroups.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/listentrygroups/SyncListEntryGroups.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/listentrygroups/SyncListEntryGroupsLocationname.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/listentrygroups/SyncListEntryGroupsLocationname.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/listentrygroups/SyncListEntryGroupsString.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/listentrygroups/SyncListEntryGroupsString.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/listtags/AsyncListTags.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/listtags/AsyncListTags.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/listtags/AsyncListTagsPaged.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/listtags/AsyncListTagsPaged.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/listtags/SyncListTags.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/listtags/SyncListTags.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/listtags/SyncListTagsEntryname.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/listtags/SyncListTagsEntryname.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/listtags/SyncListTagsString.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/listtags/SyncListTagsString.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/lookupentry/AsyncLookupEntry.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/lookupentry/AsyncLookupEntry.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/lookupentry/SyncLookupEntry.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/lookupentry/SyncLookupEntry.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/modifyentrycontacts/AsyncModifyEntryContacts.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/modifyentrycontacts/AsyncModifyEntryContacts.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/modifyentrycontacts/SyncModifyEntryContacts.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/modifyentrycontacts/SyncModifyEntryContacts.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/modifyentryoverview/AsyncModifyEntryOverview.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/modifyentryoverview/AsyncModifyEntryOverview.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/modifyentryoverview/SyncModifyEntryOverview.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/modifyentryoverview/SyncModifyEntryOverview.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/reconciletags/AsyncReconcileTags.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/reconciletags/AsyncReconcileTags.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/reconciletags/AsyncReconcileTagsLRO.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/reconciletags/AsyncReconcileTagsLRO.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/reconciletags/SyncReconcileTags.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/reconciletags/SyncReconcileTags.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/renametagtemplatefield/AsyncRenameTagTemplateField.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/renametagtemplatefield/AsyncRenameTagTemplateField.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/renametagtemplatefield/SyncRenameTagTemplateField.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/renametagtemplatefield/SyncRenameTagTemplateField.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/renametagtemplatefield/SyncRenameTagTemplateFieldStringString.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/renametagtemplatefield/SyncRenameTagTemplateFieldStringString.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/renametagtemplatefield/SyncRenameTagTemplateFieldTagtemplatefieldnameString.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/renametagtemplatefield/SyncRenameTagTemplateFieldTagtemplatefieldnameString.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/renametagtemplatefieldenumvalue/AsyncRenameTagTemplateFieldEnumValue.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/renametagtemplatefieldenumvalue/AsyncRenameTagTemplateFieldEnumValue.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/renametagtemplatefieldenumvalue/SyncRenameTagTemplateFieldEnumValue.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/renametagtemplatefieldenumvalue/SyncRenameTagTemplateFieldEnumValue.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/renametagtemplatefieldenumvalue/SyncRenameTagTemplateFieldEnumValueStringString.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/renametagtemplatefieldenumvalue/SyncRenameTagTemplateFieldEnumValueStringString.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/renametagtemplatefieldenumvalue/SyncRenameTagTemplateFieldEnumValueTagtemplatefieldenumvaluenameString.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/renametagtemplatefieldenumvalue/SyncRenameTagTemplateFieldEnumValueTagtemplatefieldenumvaluenameString.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/searchcatalog/AsyncSearchCatalog.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/searchcatalog/AsyncSearchCatalog.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/searchcatalog/AsyncSearchCatalogPaged.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/searchcatalog/AsyncSearchCatalogPaged.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/searchcatalog/SyncSearchCatalog.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/searchcatalog/SyncSearchCatalog.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/searchcatalog/SyncSearchCatalogSearchcatalogrequestscopeString.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/searchcatalog/SyncSearchCatalogSearchcatalogrequestscopeString.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/setiampolicy/AsyncSetIamPolicy.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/setiampolicy/AsyncSetIamPolicy.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/setiampolicy/SyncSetIamPolicy.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/setiampolicy/SyncSetIamPolicy.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/setiampolicy/SyncSetIamPolicyStringPolicy.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/setiampolicy/SyncSetIamPolicyStringPolicy.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/starentry/AsyncStarEntry.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/starentry/AsyncStarEntry.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/starentry/SyncStarEntry.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/starentry/SyncStarEntry.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/starentry/SyncStarEntryEntryname.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/starentry/SyncStarEntryEntryname.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/starentry/SyncStarEntryString.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/starentry/SyncStarEntryString.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/testiampermissions/AsyncTestIamPermissions.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/testiampermissions/AsyncTestIamPermissions.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/testiampermissions/SyncTestIamPermissions.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/testiampermissions/SyncTestIamPermissions.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/unstarentry/AsyncUnstarEntry.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/unstarentry/AsyncUnstarEntry.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/unstarentry/SyncUnstarEntry.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/unstarentry/SyncUnstarEntry.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/unstarentry/SyncUnstarEntryEntryname.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/unstarentry/SyncUnstarEntryEntryname.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/unstarentry/SyncUnstarEntryString.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/unstarentry/SyncUnstarEntryString.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/updateentry/AsyncUpdateEntry.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/updateentry/AsyncUpdateEntry.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/updateentry/SyncUpdateEntry.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/updateentry/SyncUpdateEntry.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/updateentry/SyncUpdateEntryEntry.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/updateentry/SyncUpdateEntryEntry.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/updateentry/SyncUpdateEntryEntryFieldmask.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/updateentry/SyncUpdateEntryEntryFieldmask.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/updateentrygroup/AsyncUpdateEntryGroup.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/updateentrygroup/AsyncUpdateEntryGroup.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/updateentrygroup/SyncUpdateEntryGroup.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/updateentrygroup/SyncUpdateEntryGroup.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/updateentrygroup/SyncUpdateEntryGroupEntrygroup.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/updateentrygroup/SyncUpdateEntryGroupEntrygroup.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/updateentrygroup/SyncUpdateEntryGroupEntrygroupFieldmask.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/updateentrygroup/SyncUpdateEntryGroupEntrygroupFieldmask.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/updatetag/AsyncUpdateTag.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/updatetag/AsyncUpdateTag.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/updatetag/SyncUpdateTag.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/updatetag/SyncUpdateTag.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/updatetag/SyncUpdateTagTag.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/updatetag/SyncUpdateTagTag.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/updatetag/SyncUpdateTagTagFieldmask.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/updatetag/SyncUpdateTagTagFieldmask.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/updatetagtemplate/AsyncUpdateTagTemplate.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/updatetagtemplate/AsyncUpdateTagTemplate.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/updatetagtemplate/SyncUpdateTagTemplate.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/updatetagtemplate/SyncUpdateTagTemplate.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/updatetagtemplate/SyncUpdateTagTemplateTagtemplate.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/updatetagtemplate/SyncUpdateTagTemplateTagtemplate.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/updatetagtemplate/SyncUpdateTagTemplateTagtemplateFieldmask.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/updatetagtemplate/SyncUpdateTagTemplateTagtemplateFieldmask.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/updatetagtemplatefield/AsyncUpdateTagTemplateField.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/updatetagtemplatefield/AsyncUpdateTagTemplateField.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/updatetagtemplatefield/SyncUpdateTagTemplateField.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/updatetagtemplatefield/SyncUpdateTagTemplateField.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/updatetagtemplatefield/SyncUpdateTagTemplateFieldStringTagtemplatefield.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/updatetagtemplatefield/SyncUpdateTagTemplateFieldStringTagtemplatefield.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/updatetagtemplatefield/SyncUpdateTagTemplateFieldStringTagtemplatefieldFieldmask.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/updatetagtemplatefield/SyncUpdateTagTemplateFieldStringTagtemplatefieldFieldmask.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/updatetagtemplatefield/SyncUpdateTagTemplateFieldTagtemplatefieldnameTagtemplatefield.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/updatetagtemplatefield/SyncUpdateTagTemplateFieldTagtemplatefieldnameTagtemplatefield.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/updatetagtemplatefield/SyncUpdateTagTemplateFieldTagtemplatefieldnameTagtemplatefieldFieldmask.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/updatetagtemplatefield/SyncUpdateTagTemplateFieldTagtemplatefieldnameTagtemplatefieldFieldmask.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalogsettings/createentrygroup/SyncCreateEntryGroup.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalogsettings/createentrygroup/SyncCreateEntryGroup.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/create/SyncCreateSetCredentialsProvider.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/create/SyncCreateSetCredentialsProvider.java diff --git a/owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/create/SyncCreateSetCredentialsProvider1.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/create/SyncCreateSetCredentialsProvider1.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/create/SyncCreateSetCredentialsProvider1.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/create/SyncCreateSetEndpoint.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/create/SyncCreateSetEndpoint.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/createpolicytag/AsyncCreatePolicyTag.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/createpolicytag/AsyncCreatePolicyTag.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/createpolicytag/SyncCreatePolicyTag.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/createpolicytag/SyncCreatePolicyTag.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/createpolicytag/SyncCreatePolicyTagStringPolicytag.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/createpolicytag/SyncCreatePolicyTagStringPolicytag.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/createpolicytag/SyncCreatePolicyTagTaxonomynamePolicytag.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/createpolicytag/SyncCreatePolicyTagTaxonomynamePolicytag.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/createtaxonomy/AsyncCreateTaxonomy.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/createtaxonomy/AsyncCreateTaxonomy.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/createtaxonomy/SyncCreateTaxonomy.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/createtaxonomy/SyncCreateTaxonomy.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/createtaxonomy/SyncCreateTaxonomyLocationnameTaxonomy.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/createtaxonomy/SyncCreateTaxonomyLocationnameTaxonomy.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/createtaxonomy/SyncCreateTaxonomyStringTaxonomy.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/createtaxonomy/SyncCreateTaxonomyStringTaxonomy.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/deletepolicytag/AsyncDeletePolicyTag.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/deletepolicytag/AsyncDeletePolicyTag.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/deletepolicytag/SyncDeletePolicyTag.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/deletepolicytag/SyncDeletePolicyTag.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/deletepolicytag/SyncDeletePolicyTagPolicytagname.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/deletepolicytag/SyncDeletePolicyTagPolicytagname.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/deletepolicytag/SyncDeletePolicyTagString.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/deletepolicytag/SyncDeletePolicyTagString.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/deletetaxonomy/AsyncDeleteTaxonomy.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/deletetaxonomy/AsyncDeleteTaxonomy.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/deletetaxonomy/SyncDeleteTaxonomy.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/deletetaxonomy/SyncDeleteTaxonomy.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/deletetaxonomy/SyncDeleteTaxonomyString.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/deletetaxonomy/SyncDeleteTaxonomyString.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/deletetaxonomy/SyncDeleteTaxonomyTaxonomyname.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/deletetaxonomy/SyncDeleteTaxonomyTaxonomyname.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/getiampolicy/AsyncGetIamPolicy.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/getiampolicy/AsyncGetIamPolicy.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/getiampolicy/SyncGetIamPolicy.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/getiampolicy/SyncGetIamPolicy.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/getpolicytag/AsyncGetPolicyTag.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/getpolicytag/AsyncGetPolicyTag.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/getpolicytag/SyncGetPolicyTag.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/getpolicytag/SyncGetPolicyTag.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/getpolicytag/SyncGetPolicyTagPolicytagname.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/getpolicytag/SyncGetPolicyTagPolicytagname.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/getpolicytag/SyncGetPolicyTagString.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/getpolicytag/SyncGetPolicyTagString.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/gettaxonomy/AsyncGetTaxonomy.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/gettaxonomy/AsyncGetTaxonomy.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/gettaxonomy/SyncGetTaxonomy.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/gettaxonomy/SyncGetTaxonomy.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/gettaxonomy/SyncGetTaxonomyString.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/gettaxonomy/SyncGetTaxonomyString.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/gettaxonomy/SyncGetTaxonomyTaxonomyname.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/gettaxonomy/SyncGetTaxonomyTaxonomyname.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/listpolicytags/AsyncListPolicyTags.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/listpolicytags/AsyncListPolicyTags.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/listpolicytags/AsyncListPolicyTagsPaged.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/listpolicytags/AsyncListPolicyTagsPaged.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/listpolicytags/SyncListPolicyTags.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/listpolicytags/SyncListPolicyTags.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/listpolicytags/SyncListPolicyTagsString.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/listpolicytags/SyncListPolicyTagsString.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/listpolicytags/SyncListPolicyTagsTaxonomyname.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/listpolicytags/SyncListPolicyTagsTaxonomyname.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/listtaxonomies/AsyncListTaxonomies.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/listtaxonomies/AsyncListTaxonomies.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/listtaxonomies/AsyncListTaxonomiesPaged.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/listtaxonomies/AsyncListTaxonomiesPaged.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/listtaxonomies/SyncListTaxonomies.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/listtaxonomies/SyncListTaxonomies.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/listtaxonomies/SyncListTaxonomiesLocationname.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/listtaxonomies/SyncListTaxonomiesLocationname.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/listtaxonomies/SyncListTaxonomiesString.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/listtaxonomies/SyncListTaxonomiesString.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/setiampolicy/AsyncSetIamPolicy.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/setiampolicy/AsyncSetIamPolicy.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/setiampolicy/SyncSetIamPolicy.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/setiampolicy/SyncSetIamPolicy.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/testiampermissions/AsyncTestIamPermissions.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/testiampermissions/AsyncTestIamPermissions.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/testiampermissions/SyncTestIamPermissions.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/testiampermissions/SyncTestIamPermissions.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/updatepolicytag/AsyncUpdatePolicyTag.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/updatepolicytag/AsyncUpdatePolicyTag.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/updatepolicytag/SyncUpdatePolicyTag.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/updatepolicytag/SyncUpdatePolicyTag.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/updatepolicytag/SyncUpdatePolicyTagPolicytag.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/updatepolicytag/SyncUpdatePolicyTagPolicytag.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/updatetaxonomy/AsyncUpdateTaxonomy.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/updatetaxonomy/AsyncUpdateTaxonomy.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/updatetaxonomy/SyncUpdateTaxonomy.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/updatetaxonomy/SyncUpdateTaxonomy.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/updatetaxonomy/SyncUpdateTaxonomyTaxonomy.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/updatetaxonomy/SyncUpdateTaxonomyTaxonomy.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanagerserialization/create/SyncCreateSetCredentialsProvider.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanagerserialization/create/SyncCreateSetCredentialsProvider.java diff --git a/owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanagerserialization/create/SyncCreateSetCredentialsProvider1.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanagerserialization/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanagerserialization/create/SyncCreateSetCredentialsProvider1.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanagerserialization/create/SyncCreateSetCredentialsProvider1.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanagerserialization/create/SyncCreateSetEndpoint.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanagerserialization/create/SyncCreateSetEndpoint.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanagerserialization/exporttaxonomies/AsyncExportTaxonomies.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanagerserialization/exporttaxonomies/AsyncExportTaxonomies.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanagerserialization/exporttaxonomies/SyncExportTaxonomies.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanagerserialization/exporttaxonomies/SyncExportTaxonomies.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanagerserialization/importtaxonomies/AsyncImportTaxonomies.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanagerserialization/importtaxonomies/AsyncImportTaxonomies.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanagerserialization/importtaxonomies/SyncImportTaxonomies.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanagerserialization/importtaxonomies/SyncImportTaxonomies.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanagerserialization/replacetaxonomy/AsyncReplaceTaxonomy.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanagerserialization/replacetaxonomy/AsyncReplaceTaxonomy.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanagerserialization/replacetaxonomy/SyncReplaceTaxonomy.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanagerserialization/replacetaxonomy/SyncReplaceTaxonomy.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanagerserializationsettings/replacetaxonomy/SyncReplaceTaxonomy.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanagerserializationsettings/replacetaxonomy/SyncReplaceTaxonomy.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanagersettings/createtaxonomy/SyncCreateTaxonomy.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanagersettings/createtaxonomy/SyncCreateTaxonomy.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/stub/datacatalogstubsettings/createentrygroup/SyncCreateEntryGroup.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/stub/datacatalogstubsettings/createentrygroup/SyncCreateEntryGroup.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/stub/policytagmanagerserializationstubsettings/replacetaxonomy/SyncReplaceTaxonomy.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/stub/policytagmanagerserializationstubsettings/replacetaxonomy/SyncReplaceTaxonomy.java diff --git a/owl-bot-staging/java-datacatalog/v1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1/samples/snippets/generated/com/google/cloud/datacatalog/v1/stub/policytagmanagerstubsettings/createtaxonomy/SyncCreateTaxonomy.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/stub/policytagmanagerstubsettings/createtaxonomy/SyncCreateTaxonomy.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/create/SyncCreateSetCredentialsProvider.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/create/SyncCreateSetCredentialsProvider.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/create/SyncCreateSetCredentialsProvider1.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/create/SyncCreateSetCredentialsProvider1.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/create/SyncCreateSetCredentialsProvider1.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/create/SyncCreateSetEndpoint.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/create/SyncCreateSetEndpoint.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/createentry/AsyncCreateEntry.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/createentry/AsyncCreateEntry.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/createentry/SyncCreateEntry.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/createentry/SyncCreateEntry.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/createentry/SyncCreateEntryEntrygroupnameStringEntry.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/createentry/SyncCreateEntryEntrygroupnameStringEntry.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/createentry/SyncCreateEntryStringStringEntry.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/createentry/SyncCreateEntryStringStringEntry.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/createentrygroup/AsyncCreateEntryGroup.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/createentrygroup/AsyncCreateEntryGroup.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/createentrygroup/SyncCreateEntryGroup.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/createentrygroup/SyncCreateEntryGroup.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/createentrygroup/SyncCreateEntryGroupLocationnameStringEntrygroup.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/createentrygroup/SyncCreateEntryGroupLocationnameStringEntrygroup.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/createentrygroup/SyncCreateEntryGroupStringStringEntrygroup.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/createentrygroup/SyncCreateEntryGroupStringStringEntrygroup.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/createtag/AsyncCreateTag.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/createtag/AsyncCreateTag.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/createtag/SyncCreateTag.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/createtag/SyncCreateTag.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/createtag/SyncCreateTagEntrynameTag.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/createtag/SyncCreateTagEntrynameTag.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/createtag/SyncCreateTagStringTag.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/createtag/SyncCreateTagStringTag.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/createtagtemplate/AsyncCreateTagTemplate.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/createtagtemplate/AsyncCreateTagTemplate.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/createtagtemplate/SyncCreateTagTemplate.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/createtagtemplate/SyncCreateTagTemplate.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/createtagtemplate/SyncCreateTagTemplateLocationnameStringTagtemplate.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/createtagtemplate/SyncCreateTagTemplateLocationnameStringTagtemplate.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/createtagtemplate/SyncCreateTagTemplateStringStringTagtemplate.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/createtagtemplate/SyncCreateTagTemplateStringStringTagtemplate.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/createtagtemplatefield/AsyncCreateTagTemplateField.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/createtagtemplatefield/AsyncCreateTagTemplateField.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/createtagtemplatefield/SyncCreateTagTemplateField.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/createtagtemplatefield/SyncCreateTagTemplateField.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/createtagtemplatefield/SyncCreateTagTemplateFieldStringStringTagtemplatefield.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/createtagtemplatefield/SyncCreateTagTemplateFieldStringStringTagtemplatefield.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/createtagtemplatefield/SyncCreateTagTemplateFieldTagtemplatenameStringTagtemplatefield.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/createtagtemplatefield/SyncCreateTagTemplateFieldTagtemplatenameStringTagtemplatefield.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/deleteentry/AsyncDeleteEntry.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/deleteentry/AsyncDeleteEntry.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/deleteentry/SyncDeleteEntry.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/deleteentry/SyncDeleteEntry.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/deleteentry/SyncDeleteEntryEntryname.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/deleteentry/SyncDeleteEntryEntryname.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/deleteentry/SyncDeleteEntryString.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/deleteentry/SyncDeleteEntryString.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/deleteentrygroup/AsyncDeleteEntryGroup.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/deleteentrygroup/AsyncDeleteEntryGroup.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/deleteentrygroup/SyncDeleteEntryGroup.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/deleteentrygroup/SyncDeleteEntryGroup.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/deleteentrygroup/SyncDeleteEntryGroupEntrygroupname.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/deleteentrygroup/SyncDeleteEntryGroupEntrygroupname.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/deleteentrygroup/SyncDeleteEntryGroupString.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/deleteentrygroup/SyncDeleteEntryGroupString.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/deletetag/AsyncDeleteTag.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/deletetag/AsyncDeleteTag.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/deletetag/SyncDeleteTag.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/deletetag/SyncDeleteTag.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/deletetag/SyncDeleteTagEntryname.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/deletetag/SyncDeleteTagEntryname.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/deletetag/SyncDeleteTagString.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/deletetag/SyncDeleteTagString.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/deletetagtemplate/AsyncDeleteTagTemplate.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/deletetagtemplate/AsyncDeleteTagTemplate.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/deletetagtemplate/SyncDeleteTagTemplate.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/deletetagtemplate/SyncDeleteTagTemplate.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/deletetagtemplate/SyncDeleteTagTemplateStringBoolean.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/deletetagtemplate/SyncDeleteTagTemplateStringBoolean.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/deletetagtemplate/SyncDeleteTagTemplateTagtemplatenameBoolean.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/deletetagtemplate/SyncDeleteTagTemplateTagtemplatenameBoolean.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/deletetagtemplatefield/AsyncDeleteTagTemplateField.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/deletetagtemplatefield/AsyncDeleteTagTemplateField.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/deletetagtemplatefield/SyncDeleteTagTemplateField.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/deletetagtemplatefield/SyncDeleteTagTemplateField.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/deletetagtemplatefield/SyncDeleteTagTemplateFieldStringBoolean.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/deletetagtemplatefield/SyncDeleteTagTemplateFieldStringBoolean.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/deletetagtemplatefield/SyncDeleteTagTemplateFieldTagtemplatefieldnameBoolean.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/deletetagtemplatefield/SyncDeleteTagTemplateFieldTagtemplatefieldnameBoolean.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/getentry/AsyncGetEntry.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/getentry/AsyncGetEntry.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/getentry/SyncGetEntry.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/getentry/SyncGetEntry.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/getentry/SyncGetEntryEntryname.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/getentry/SyncGetEntryEntryname.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/getentry/SyncGetEntryString.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/getentry/SyncGetEntryString.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/getentrygroup/AsyncGetEntryGroup.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/getentrygroup/AsyncGetEntryGroup.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/getentrygroup/SyncGetEntryGroup.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/getentrygroup/SyncGetEntryGroup.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/getentrygroup/SyncGetEntryGroupEntrygroupname.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/getentrygroup/SyncGetEntryGroupEntrygroupname.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/getentrygroup/SyncGetEntryGroupEntrygroupnameFieldmask.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/getentrygroup/SyncGetEntryGroupEntrygroupnameFieldmask.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/getentrygroup/SyncGetEntryGroupString.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/getentrygroup/SyncGetEntryGroupString.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/getentrygroup/SyncGetEntryGroupStringFieldmask.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/getentrygroup/SyncGetEntryGroupStringFieldmask.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/getiampolicy/AsyncGetIamPolicy.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/getiampolicy/AsyncGetIamPolicy.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/getiampolicy/SyncGetIamPolicy.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/getiampolicy/SyncGetIamPolicy.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/getiampolicy/SyncGetIamPolicyResourcename.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/getiampolicy/SyncGetIamPolicyResourcename.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/getiampolicy/SyncGetIamPolicyString.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/getiampolicy/SyncGetIamPolicyString.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/gettagtemplate/AsyncGetTagTemplate.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/gettagtemplate/AsyncGetTagTemplate.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/gettagtemplate/SyncGetTagTemplate.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/gettagtemplate/SyncGetTagTemplate.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/gettagtemplate/SyncGetTagTemplateString.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/gettagtemplate/SyncGetTagTemplateString.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/gettagtemplate/SyncGetTagTemplateTagtemplatename.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/gettagtemplate/SyncGetTagTemplateTagtemplatename.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/listentries/AsyncListEntries.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/listentries/AsyncListEntries.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/listentries/AsyncListEntriesPaged.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/listentries/AsyncListEntriesPaged.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/listentries/SyncListEntries.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/listentries/SyncListEntries.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/listentries/SyncListEntriesEntrygroupname.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/listentries/SyncListEntriesEntrygroupname.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/listentries/SyncListEntriesString.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/listentries/SyncListEntriesString.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/listentrygroups/AsyncListEntryGroups.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/listentrygroups/AsyncListEntryGroups.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/listentrygroups/AsyncListEntryGroupsPaged.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/listentrygroups/AsyncListEntryGroupsPaged.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/listentrygroups/SyncListEntryGroups.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/listentrygroups/SyncListEntryGroups.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/listentrygroups/SyncListEntryGroupsLocationname.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/listentrygroups/SyncListEntryGroupsLocationname.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/listentrygroups/SyncListEntryGroupsString.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/listentrygroups/SyncListEntryGroupsString.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/listtags/AsyncListTags.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/listtags/AsyncListTags.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/listtags/AsyncListTagsPaged.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/listtags/AsyncListTagsPaged.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/listtags/SyncListTags.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/listtags/SyncListTags.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/listtags/SyncListTagsEntryname.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/listtags/SyncListTagsEntryname.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/listtags/SyncListTagsString.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/listtags/SyncListTagsString.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/lookupentry/AsyncLookupEntry.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/lookupentry/AsyncLookupEntry.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/lookupentry/SyncLookupEntry.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/lookupentry/SyncLookupEntry.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/renametagtemplatefield/AsyncRenameTagTemplateField.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/renametagtemplatefield/AsyncRenameTagTemplateField.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/renametagtemplatefield/SyncRenameTagTemplateField.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/renametagtemplatefield/SyncRenameTagTemplateField.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/renametagtemplatefield/SyncRenameTagTemplateFieldStringString.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/renametagtemplatefield/SyncRenameTagTemplateFieldStringString.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/renametagtemplatefield/SyncRenameTagTemplateFieldTagtemplatefieldnameString.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/renametagtemplatefield/SyncRenameTagTemplateFieldTagtemplatefieldnameString.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/renametagtemplatefieldenumvalue/AsyncRenameTagTemplateFieldEnumValue.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/renametagtemplatefieldenumvalue/AsyncRenameTagTemplateFieldEnumValue.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/renametagtemplatefieldenumvalue/SyncRenameTagTemplateFieldEnumValue.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/renametagtemplatefieldenumvalue/SyncRenameTagTemplateFieldEnumValue.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/renametagtemplatefieldenumvalue/SyncRenameTagTemplateFieldEnumValueStringString.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/renametagtemplatefieldenumvalue/SyncRenameTagTemplateFieldEnumValueStringString.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/renametagtemplatefieldenumvalue/SyncRenameTagTemplateFieldEnumValueTagtemplatefieldenumvaluenameString.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/renametagtemplatefieldenumvalue/SyncRenameTagTemplateFieldEnumValueTagtemplatefieldenumvaluenameString.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/searchcatalog/AsyncSearchCatalog.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/searchcatalog/AsyncSearchCatalog.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/searchcatalog/AsyncSearchCatalogPaged.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/searchcatalog/AsyncSearchCatalogPaged.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/searchcatalog/SyncSearchCatalog.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/searchcatalog/SyncSearchCatalog.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/searchcatalog/SyncSearchCatalogSearchcatalogrequestscopeString.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/searchcatalog/SyncSearchCatalogSearchcatalogrequestscopeString.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/setiampolicy/AsyncSetIamPolicy.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/setiampolicy/AsyncSetIamPolicy.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/setiampolicy/SyncSetIamPolicy.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/setiampolicy/SyncSetIamPolicy.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/setiampolicy/SyncSetIamPolicyStringPolicy.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/setiampolicy/SyncSetIamPolicyStringPolicy.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/testiampermissions/AsyncTestIamPermissions.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/testiampermissions/AsyncTestIamPermissions.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/testiampermissions/SyncTestIamPermissions.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/testiampermissions/SyncTestIamPermissions.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/updateentry/AsyncUpdateEntry.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/updateentry/AsyncUpdateEntry.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/updateentry/SyncUpdateEntry.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/updateentry/SyncUpdateEntry.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/updateentry/SyncUpdateEntryEntry.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/updateentry/SyncUpdateEntryEntry.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/updateentry/SyncUpdateEntryEntryFieldmask.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/updateentry/SyncUpdateEntryEntryFieldmask.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/updateentrygroup/AsyncUpdateEntryGroup.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/updateentrygroup/AsyncUpdateEntryGroup.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/updateentrygroup/SyncUpdateEntryGroup.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/updateentrygroup/SyncUpdateEntryGroup.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/updateentrygroup/SyncUpdateEntryGroupEntrygroup.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/updateentrygroup/SyncUpdateEntryGroupEntrygroup.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/updateentrygroup/SyncUpdateEntryGroupEntrygroupFieldmask.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/updateentrygroup/SyncUpdateEntryGroupEntrygroupFieldmask.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/updatetag/AsyncUpdateTag.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/updatetag/AsyncUpdateTag.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/updatetag/SyncUpdateTag.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/updatetag/SyncUpdateTag.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/updatetag/SyncUpdateTagTag.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/updatetag/SyncUpdateTagTag.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/updatetag/SyncUpdateTagTagFieldmask.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/updatetag/SyncUpdateTagTagFieldmask.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/updatetagtemplate/AsyncUpdateTagTemplate.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/updatetagtemplate/AsyncUpdateTagTemplate.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/updatetagtemplate/SyncUpdateTagTemplate.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/updatetagtemplate/SyncUpdateTagTemplate.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/updatetagtemplate/SyncUpdateTagTemplateTagtemplate.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/updatetagtemplate/SyncUpdateTagTemplateTagtemplate.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/updatetagtemplate/SyncUpdateTagTemplateTagtemplateFieldmask.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/updatetagtemplate/SyncUpdateTagTemplateTagtemplateFieldmask.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/updatetagtemplatefield/AsyncUpdateTagTemplateField.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/updatetagtemplatefield/AsyncUpdateTagTemplateField.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/updatetagtemplatefield/SyncUpdateTagTemplateField.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/updatetagtemplatefield/SyncUpdateTagTemplateField.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/updatetagtemplatefield/SyncUpdateTagTemplateFieldStringTagtemplatefield.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/updatetagtemplatefield/SyncUpdateTagTemplateFieldStringTagtemplatefield.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/updatetagtemplatefield/SyncUpdateTagTemplateFieldStringTagtemplatefieldFieldmask.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/updatetagtemplatefield/SyncUpdateTagTemplateFieldStringTagtemplatefieldFieldmask.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/updatetagtemplatefield/SyncUpdateTagTemplateFieldTagtemplatefieldnameTagtemplatefield.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/updatetagtemplatefield/SyncUpdateTagTemplateFieldTagtemplatefieldnameTagtemplatefield.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/updatetagtemplatefield/SyncUpdateTagTemplateFieldTagtemplatefieldnameTagtemplatefieldFieldmask.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/updatetagtemplatefield/SyncUpdateTagTemplateFieldTagtemplatefieldnameTagtemplatefieldFieldmask.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalogsettings/createentrygroup/SyncCreateEntryGroup.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalogsettings/createentrygroup/SyncCreateEntryGroup.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/create/SyncCreateSetCredentialsProvider.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/create/SyncCreateSetCredentialsProvider.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/create/SyncCreateSetCredentialsProvider1.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/create/SyncCreateSetCredentialsProvider1.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/create/SyncCreateSetCredentialsProvider1.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/create/SyncCreateSetEndpoint.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/create/SyncCreateSetEndpoint.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/createpolicytag/AsyncCreatePolicyTag.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/createpolicytag/AsyncCreatePolicyTag.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/createpolicytag/SyncCreatePolicyTag.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/createpolicytag/SyncCreatePolicyTag.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/createpolicytag/SyncCreatePolicyTagStringPolicytag.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/createpolicytag/SyncCreatePolicyTagStringPolicytag.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/createpolicytag/SyncCreatePolicyTagTaxonomynamePolicytag.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/createpolicytag/SyncCreatePolicyTagTaxonomynamePolicytag.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/createtaxonomy/AsyncCreateTaxonomy.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/createtaxonomy/AsyncCreateTaxonomy.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/createtaxonomy/SyncCreateTaxonomy.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/createtaxonomy/SyncCreateTaxonomy.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/createtaxonomy/SyncCreateTaxonomyLocationnameTaxonomy.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/createtaxonomy/SyncCreateTaxonomyLocationnameTaxonomy.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/createtaxonomy/SyncCreateTaxonomyStringTaxonomy.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/createtaxonomy/SyncCreateTaxonomyStringTaxonomy.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/deletepolicytag/AsyncDeletePolicyTag.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/deletepolicytag/AsyncDeletePolicyTag.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/deletepolicytag/SyncDeletePolicyTag.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/deletepolicytag/SyncDeletePolicyTag.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/deletepolicytag/SyncDeletePolicyTagPolicytagname.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/deletepolicytag/SyncDeletePolicyTagPolicytagname.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/deletepolicytag/SyncDeletePolicyTagString.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/deletepolicytag/SyncDeletePolicyTagString.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/deletetaxonomy/AsyncDeleteTaxonomy.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/deletetaxonomy/AsyncDeleteTaxonomy.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/deletetaxonomy/SyncDeleteTaxonomy.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/deletetaxonomy/SyncDeleteTaxonomy.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/deletetaxonomy/SyncDeleteTaxonomyString.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/deletetaxonomy/SyncDeleteTaxonomyString.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/deletetaxonomy/SyncDeleteTaxonomyTaxonomyname.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/deletetaxonomy/SyncDeleteTaxonomyTaxonomyname.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/getiampolicy/AsyncGetIamPolicy.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/getiampolicy/AsyncGetIamPolicy.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/getiampolicy/SyncGetIamPolicy.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/getiampolicy/SyncGetIamPolicy.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/getpolicytag/AsyncGetPolicyTag.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/getpolicytag/AsyncGetPolicyTag.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/getpolicytag/SyncGetPolicyTag.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/getpolicytag/SyncGetPolicyTag.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/getpolicytag/SyncGetPolicyTagPolicytagname.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/getpolicytag/SyncGetPolicyTagPolicytagname.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/getpolicytag/SyncGetPolicyTagString.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/getpolicytag/SyncGetPolicyTagString.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/gettaxonomy/AsyncGetTaxonomy.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/gettaxonomy/AsyncGetTaxonomy.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/gettaxonomy/SyncGetTaxonomy.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/gettaxonomy/SyncGetTaxonomy.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/gettaxonomy/SyncGetTaxonomyString.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/gettaxonomy/SyncGetTaxonomyString.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/gettaxonomy/SyncGetTaxonomyTaxonomyname.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/gettaxonomy/SyncGetTaxonomyTaxonomyname.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/listpolicytags/AsyncListPolicyTags.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/listpolicytags/AsyncListPolicyTags.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/listpolicytags/AsyncListPolicyTagsPaged.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/listpolicytags/AsyncListPolicyTagsPaged.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/listpolicytags/SyncListPolicyTags.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/listpolicytags/SyncListPolicyTags.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/listpolicytags/SyncListPolicyTagsString.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/listpolicytags/SyncListPolicyTagsString.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/listpolicytags/SyncListPolicyTagsTaxonomyname.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/listpolicytags/SyncListPolicyTagsTaxonomyname.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/listtaxonomies/AsyncListTaxonomies.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/listtaxonomies/AsyncListTaxonomies.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/listtaxonomies/AsyncListTaxonomiesPaged.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/listtaxonomies/AsyncListTaxonomiesPaged.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/listtaxonomies/SyncListTaxonomies.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/listtaxonomies/SyncListTaxonomies.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/listtaxonomies/SyncListTaxonomiesLocationname.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/listtaxonomies/SyncListTaxonomiesLocationname.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/listtaxonomies/SyncListTaxonomiesString.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/listtaxonomies/SyncListTaxonomiesString.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/setiampolicy/AsyncSetIamPolicy.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/setiampolicy/AsyncSetIamPolicy.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/setiampolicy/SyncSetIamPolicy.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/setiampolicy/SyncSetIamPolicy.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/testiampermissions/AsyncTestIamPermissions.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/testiampermissions/AsyncTestIamPermissions.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/testiampermissions/SyncTestIamPermissions.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/testiampermissions/SyncTestIamPermissions.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/updatepolicytag/AsyncUpdatePolicyTag.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/updatepolicytag/AsyncUpdatePolicyTag.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/updatepolicytag/SyncUpdatePolicyTag.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/updatepolicytag/SyncUpdatePolicyTag.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/updatepolicytag/SyncUpdatePolicyTagPolicytag.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/updatepolicytag/SyncUpdatePolicyTagPolicytag.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/updatetaxonomy/AsyncUpdateTaxonomy.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/updatetaxonomy/AsyncUpdateTaxonomy.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/updatetaxonomy/SyncUpdateTaxonomy.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/updatetaxonomy/SyncUpdateTaxonomy.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/updatetaxonomy/SyncUpdateTaxonomyTaxonomy.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/updatetaxonomy/SyncUpdateTaxonomyTaxonomy.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanagerserialization/create/SyncCreateSetCredentialsProvider.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanagerserialization/create/SyncCreateSetCredentialsProvider.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanagerserialization/create/SyncCreateSetCredentialsProvider1.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanagerserialization/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanagerserialization/create/SyncCreateSetCredentialsProvider1.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanagerserialization/create/SyncCreateSetCredentialsProvider1.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanagerserialization/create/SyncCreateSetEndpoint.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanagerserialization/create/SyncCreateSetEndpoint.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanagerserialization/exporttaxonomies/AsyncExportTaxonomies.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanagerserialization/exporttaxonomies/AsyncExportTaxonomies.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanagerserialization/exporttaxonomies/SyncExportTaxonomies.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanagerserialization/exporttaxonomies/SyncExportTaxonomies.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanagerserialization/importtaxonomies/AsyncImportTaxonomies.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanagerserialization/importtaxonomies/AsyncImportTaxonomies.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanagerserialization/importtaxonomies/SyncImportTaxonomies.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanagerserialization/importtaxonomies/SyncImportTaxonomies.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanagerserializationsettings/importtaxonomies/SyncImportTaxonomies.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanagerserializationsettings/importtaxonomies/SyncImportTaxonomies.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanagersettings/createtaxonomy/SyncCreateTaxonomy.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanagersettings/createtaxonomy/SyncCreateTaxonomy.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/stub/datacatalogstubsettings/createentrygroup/SyncCreateEntryGroup.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/stub/datacatalogstubsettings/createentrygroup/SyncCreateEntryGroup.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/stub/policytagmanagerserializationstubsettings/importtaxonomies/SyncImportTaxonomies.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/stub/policytagmanagerserializationstubsettings/importtaxonomies/SyncImportTaxonomies.java diff --git a/owl-bot-staging/java-datacatalog/v1beta1/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 similarity index 100% rename from owl-bot-staging/java-datacatalog/v1beta1/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/stub/policytagmanagerstubsettings/createtaxonomy/SyncCreateTaxonomy.java rename to java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/stub/policytagmanagerstubsettings/createtaxonomy/SyncCreateTaxonomy.java diff --git a/owl-bot-staging/java-datacatalog/v1/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/DataCatalogSettings.java b/owl-bot-staging/java-datacatalog/v1/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/DataCatalogSettings.java deleted file mode 100644 index be260b102f8e..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/DataCatalogSettings.java +++ /dev/null @@ -1,605 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, 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.StubSettings; -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; - -// 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 total timeout of createEntryGroup to 30 seconds: - * - *

{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * DataCatalogSettings.Builder dataCatalogSettingsBuilder = DataCatalogSettings.newBuilder();
- * dataCatalogSettingsBuilder
- *     .createEntryGroupSettings()
- *     .setRetrySettings(
- *         dataCatalogSettingsBuilder
- *             .createEntryGroupSettings()
- *             .getRetrySettings()
- *             .toBuilder()
- *             .setTotalTimeout(Duration.ofSeconds(30))
- *             .build());
- * DataCatalogSettings dataCatalogSettings = dataCatalogSettingsBuilder.build();
- * }
- */ -@Generated("by gapic-generator-java") -public class DataCatalogSettings extends ClientSettings { - - /** Returns the object with the settings used for calls to searchCatalog. */ - public PagedCallSettings - searchCatalogSettings() { - return ((DataCatalogStubSettings) getStubSettings()).searchCatalogSettings(); - } - - /** Returns the object with the settings used for calls to createEntryGroup. */ - public UnaryCallSettings createEntryGroupSettings() { - return ((DataCatalogStubSettings) getStubSettings()).createEntryGroupSettings(); - } - - /** Returns the object with the settings used for calls to getEntryGroup. */ - public UnaryCallSettings getEntryGroupSettings() { - return ((DataCatalogStubSettings) getStubSettings()).getEntryGroupSettings(); - } - - /** Returns the object with the settings used for calls to updateEntryGroup. */ - public UnaryCallSettings updateEntryGroupSettings() { - return ((DataCatalogStubSettings) getStubSettings()).updateEntryGroupSettings(); - } - - /** Returns the object with the settings used for calls to deleteEntryGroup. */ - public UnaryCallSettings deleteEntryGroupSettings() { - return ((DataCatalogStubSettings) getStubSettings()).deleteEntryGroupSettings(); - } - - /** Returns the object with the settings used for calls to listEntryGroups. */ - public PagedCallSettings< - ListEntryGroupsRequest, ListEntryGroupsResponse, ListEntryGroupsPagedResponse> - listEntryGroupsSettings() { - return ((DataCatalogStubSettings) getStubSettings()).listEntryGroupsSettings(); - } - - /** Returns the object with the settings used for calls to createEntry. */ - public UnaryCallSettings createEntrySettings() { - return ((DataCatalogStubSettings) getStubSettings()).createEntrySettings(); - } - - /** Returns the object with the settings used for calls to updateEntry. */ - public UnaryCallSettings updateEntrySettings() { - return ((DataCatalogStubSettings) getStubSettings()).updateEntrySettings(); - } - - /** Returns the object with the settings used for calls to deleteEntry. */ - public UnaryCallSettings deleteEntrySettings() { - return ((DataCatalogStubSettings) getStubSettings()).deleteEntrySettings(); - } - - /** Returns the object with the settings used for calls to getEntry. */ - public UnaryCallSettings getEntrySettings() { - return ((DataCatalogStubSettings) getStubSettings()).getEntrySettings(); - } - - /** Returns the object with the settings used for calls to lookupEntry. */ - public UnaryCallSettings lookupEntrySettings() { - return ((DataCatalogStubSettings) getStubSettings()).lookupEntrySettings(); - } - - /** Returns the object with the settings used for calls to listEntries. */ - public PagedCallSettings - listEntriesSettings() { - return ((DataCatalogStubSettings) getStubSettings()).listEntriesSettings(); - } - - /** Returns the object with the settings used for calls to modifyEntryOverview. */ - public UnaryCallSettings - modifyEntryOverviewSettings() { - return ((DataCatalogStubSettings) getStubSettings()).modifyEntryOverviewSettings(); - } - - /** Returns the object with the settings used for calls to modifyEntryContacts. */ - public UnaryCallSettings modifyEntryContactsSettings() { - return ((DataCatalogStubSettings) getStubSettings()).modifyEntryContactsSettings(); - } - - /** Returns the object with the settings used for calls to createTagTemplate. */ - public UnaryCallSettings createTagTemplateSettings() { - return ((DataCatalogStubSettings) getStubSettings()).createTagTemplateSettings(); - } - - /** Returns the object with the settings used for calls to getTagTemplate. */ - public UnaryCallSettings getTagTemplateSettings() { - return ((DataCatalogStubSettings) getStubSettings()).getTagTemplateSettings(); - } - - /** Returns the object with the settings used for calls to updateTagTemplate. */ - public UnaryCallSettings updateTagTemplateSettings() { - return ((DataCatalogStubSettings) getStubSettings()).updateTagTemplateSettings(); - } - - /** Returns the object with the settings used for calls to deleteTagTemplate. */ - public UnaryCallSettings deleteTagTemplateSettings() { - return ((DataCatalogStubSettings) getStubSettings()).deleteTagTemplateSettings(); - } - - /** Returns the object with the settings used for calls to createTagTemplateField. */ - public UnaryCallSettings - createTagTemplateFieldSettings() { - return ((DataCatalogStubSettings) getStubSettings()).createTagTemplateFieldSettings(); - } - - /** Returns the object with the settings used for calls to updateTagTemplateField. */ - public UnaryCallSettings - updateTagTemplateFieldSettings() { - return ((DataCatalogStubSettings) getStubSettings()).updateTagTemplateFieldSettings(); - } - - /** Returns the object with the settings used for calls to renameTagTemplateField. */ - public UnaryCallSettings - renameTagTemplateFieldSettings() { - return ((DataCatalogStubSettings) getStubSettings()).renameTagTemplateFieldSettings(); - } - - /** Returns the object with the settings used for calls to renameTagTemplateFieldEnumValue. */ - public UnaryCallSettings - renameTagTemplateFieldEnumValueSettings() { - return ((DataCatalogStubSettings) getStubSettings()).renameTagTemplateFieldEnumValueSettings(); - } - - /** Returns the object with the settings used for calls to deleteTagTemplateField. */ - public UnaryCallSettings deleteTagTemplateFieldSettings() { - return ((DataCatalogStubSettings) getStubSettings()).deleteTagTemplateFieldSettings(); - } - - /** Returns the object with the settings used for calls to createTag. */ - public UnaryCallSettings createTagSettings() { - return ((DataCatalogStubSettings) getStubSettings()).createTagSettings(); - } - - /** Returns the object with the settings used for calls to updateTag. */ - public UnaryCallSettings updateTagSettings() { - return ((DataCatalogStubSettings) getStubSettings()).updateTagSettings(); - } - - /** Returns the object with the settings used for calls to deleteTag. */ - public UnaryCallSettings deleteTagSettings() { - return ((DataCatalogStubSettings) getStubSettings()).deleteTagSettings(); - } - - /** Returns the object with the settings used for calls to listTags. */ - public PagedCallSettings - listTagsSettings() { - return ((DataCatalogStubSettings) getStubSettings()).listTagsSettings(); - } - - /** Returns the object with the settings used for calls to reconcileTags. */ - public UnaryCallSettings reconcileTagsSettings() { - return ((DataCatalogStubSettings) getStubSettings()).reconcileTagsSettings(); - } - - /** Returns the object with the settings used for calls to reconcileTags. */ - public OperationCallSettings - reconcileTagsOperationSettings() { - return ((DataCatalogStubSettings) getStubSettings()).reconcileTagsOperationSettings(); - } - - /** Returns the object with the settings used for calls to starEntry. */ - public UnaryCallSettings starEntrySettings() { - return ((DataCatalogStubSettings) getStubSettings()).starEntrySettings(); - } - - /** Returns the object with the settings used for calls to unstarEntry. */ - public UnaryCallSettings unstarEntrySettings() { - return ((DataCatalogStubSettings) getStubSettings()).unstarEntrySettings(); - } - - /** Returns the object with the settings used for calls to setIamPolicy. */ - public UnaryCallSettings setIamPolicySettings() { - return ((DataCatalogStubSettings) getStubSettings()).setIamPolicySettings(); - } - - /** Returns the object with the settings used for calls to getIamPolicy. */ - public UnaryCallSettings getIamPolicySettings() { - return ((DataCatalogStubSettings) getStubSettings()).getIamPolicySettings(); - } - - /** Returns the object with the settings used for calls to testIamPermissions. */ - public UnaryCallSettings - testIamPermissionsSettings() { - return ((DataCatalogStubSettings) getStubSettings()).testIamPermissionsSettings(); - } - - /** Returns the object with the settings used for calls to importEntries. */ - public UnaryCallSettings importEntriesSettings() { - return ((DataCatalogStubSettings) getStubSettings()).importEntriesSettings(); - } - - /** Returns the object with the settings used for calls to importEntries. */ - public OperationCallSettings - importEntriesOperationSettings() { - return ((DataCatalogStubSettings) getStubSettings()).importEntriesOperationSettings(); - } - - 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(); - } - - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - 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. */ - @BetaApi - public static Builder newHttpJsonBuilder() { - return Builder.createHttpJsonDefault(); - } - - /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { - return new Builder(clientContext); - } - - /** Returns a builder containing all the values of this settings class. */ - public Builder toBuilder() { - return new Builder(this); - } - - protected 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(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()); - } - - @BetaApi - 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. */ - public PagedCallSettings.Builder< - SearchCatalogRequest, SearchCatalogResponse, SearchCatalogPagedResponse> - searchCatalogSettings() { - return getStubSettingsBuilder().searchCatalogSettings(); - } - - /** Returns the builder for the settings used for calls to createEntryGroup. */ - public UnaryCallSettings.Builder - createEntryGroupSettings() { - return getStubSettingsBuilder().createEntryGroupSettings(); - } - - /** Returns the builder for the settings used for calls to getEntryGroup. */ - public UnaryCallSettings.Builder getEntryGroupSettings() { - return getStubSettingsBuilder().getEntryGroupSettings(); - } - - /** Returns the builder for the settings used for calls to updateEntryGroup. */ - public UnaryCallSettings.Builder - updateEntryGroupSettings() { - return getStubSettingsBuilder().updateEntryGroupSettings(); - } - - /** Returns the builder for the settings used for calls to deleteEntryGroup. */ - public UnaryCallSettings.Builder deleteEntryGroupSettings() { - return getStubSettingsBuilder().deleteEntryGroupSettings(); - } - - /** Returns the builder for the settings used for calls to listEntryGroups. */ - public PagedCallSettings.Builder< - ListEntryGroupsRequest, ListEntryGroupsResponse, ListEntryGroupsPagedResponse> - listEntryGroupsSettings() { - return getStubSettingsBuilder().listEntryGroupsSettings(); - } - - /** Returns the builder for the settings used for calls to createEntry. */ - public UnaryCallSettings.Builder createEntrySettings() { - return getStubSettingsBuilder().createEntrySettings(); - } - - /** Returns the builder for the settings used for calls to updateEntry. */ - public UnaryCallSettings.Builder updateEntrySettings() { - return getStubSettingsBuilder().updateEntrySettings(); - } - - /** Returns the builder for the settings used for calls to deleteEntry. */ - public UnaryCallSettings.Builder deleteEntrySettings() { - return getStubSettingsBuilder().deleteEntrySettings(); - } - - /** Returns the builder for the settings used for calls to getEntry. */ - public UnaryCallSettings.Builder getEntrySettings() { - return getStubSettingsBuilder().getEntrySettings(); - } - - /** Returns the builder for the settings used for calls to lookupEntry. */ - public UnaryCallSettings.Builder lookupEntrySettings() { - return getStubSettingsBuilder().lookupEntrySettings(); - } - - /** Returns the builder for the settings used for calls to listEntries. */ - public PagedCallSettings.Builder< - ListEntriesRequest, ListEntriesResponse, ListEntriesPagedResponse> - listEntriesSettings() { - return getStubSettingsBuilder().listEntriesSettings(); - } - - /** Returns the builder for the settings used for calls to modifyEntryOverview. */ - public UnaryCallSettings.Builder - modifyEntryOverviewSettings() { - return getStubSettingsBuilder().modifyEntryOverviewSettings(); - } - - /** Returns the builder for the settings used for calls to modifyEntryContacts. */ - public UnaryCallSettings.Builder - modifyEntryContactsSettings() { - return getStubSettingsBuilder().modifyEntryContactsSettings(); - } - - /** Returns the builder for the settings used for calls to createTagTemplate. */ - public UnaryCallSettings.Builder - createTagTemplateSettings() { - return getStubSettingsBuilder().createTagTemplateSettings(); - } - - /** Returns the builder for the settings used for calls to getTagTemplate. */ - public UnaryCallSettings.Builder getTagTemplateSettings() { - return getStubSettingsBuilder().getTagTemplateSettings(); - } - - /** Returns the builder for the settings used for calls to updateTagTemplate. */ - public UnaryCallSettings.Builder - updateTagTemplateSettings() { - return getStubSettingsBuilder().updateTagTemplateSettings(); - } - - /** Returns the builder for the settings used for calls to deleteTagTemplate. */ - public UnaryCallSettings.Builder deleteTagTemplateSettings() { - return getStubSettingsBuilder().deleteTagTemplateSettings(); - } - - /** Returns the builder for the settings used for calls to createTagTemplateField. */ - public UnaryCallSettings.Builder - createTagTemplateFieldSettings() { - return getStubSettingsBuilder().createTagTemplateFieldSettings(); - } - - /** Returns the builder for the settings used for calls to updateTagTemplateField. */ - public UnaryCallSettings.Builder - updateTagTemplateFieldSettings() { - return getStubSettingsBuilder().updateTagTemplateFieldSettings(); - } - - /** Returns the builder for the settings used for calls to renameTagTemplateField. */ - public UnaryCallSettings.Builder - renameTagTemplateFieldSettings() { - return getStubSettingsBuilder().renameTagTemplateFieldSettings(); - } - - /** Returns the builder for the settings used for calls to renameTagTemplateFieldEnumValue. */ - public UnaryCallSettings.Builder - renameTagTemplateFieldEnumValueSettings() { - return getStubSettingsBuilder().renameTagTemplateFieldEnumValueSettings(); - } - - /** Returns the builder for the settings used for calls to deleteTagTemplateField. */ - public UnaryCallSettings.Builder - deleteTagTemplateFieldSettings() { - return getStubSettingsBuilder().deleteTagTemplateFieldSettings(); - } - - /** Returns the builder for the settings used for calls to createTag. */ - public UnaryCallSettings.Builder createTagSettings() { - return getStubSettingsBuilder().createTagSettings(); - } - - /** Returns the builder for the settings used for calls to updateTag. */ - public UnaryCallSettings.Builder updateTagSettings() { - return getStubSettingsBuilder().updateTagSettings(); - } - - /** Returns the builder for the settings used for calls to deleteTag. */ - public UnaryCallSettings.Builder deleteTagSettings() { - return getStubSettingsBuilder().deleteTagSettings(); - } - - /** Returns the builder for the settings used for calls to listTags. */ - public PagedCallSettings.Builder - listTagsSettings() { - return getStubSettingsBuilder().listTagsSettings(); - } - - /** Returns the builder for the settings used for calls to reconcileTags. */ - public UnaryCallSettings.Builder reconcileTagsSettings() { - return getStubSettingsBuilder().reconcileTagsSettings(); - } - - /** Returns the builder for the settings used for calls to reconcileTags. */ - public OperationCallSettings.Builder< - ReconcileTagsRequest, ReconcileTagsResponse, ReconcileTagsMetadata> - reconcileTagsOperationSettings() { - return getStubSettingsBuilder().reconcileTagsOperationSettings(); - } - - /** Returns the builder for the settings used for calls to starEntry. */ - public UnaryCallSettings.Builder starEntrySettings() { - return getStubSettingsBuilder().starEntrySettings(); - } - - /** Returns the builder for the settings used for calls to unstarEntry. */ - public UnaryCallSettings.Builder - unstarEntrySettings() { - return getStubSettingsBuilder().unstarEntrySettings(); - } - - /** Returns the builder for the settings used for calls to setIamPolicy. */ - public UnaryCallSettings.Builder setIamPolicySettings() { - return getStubSettingsBuilder().setIamPolicySettings(); - } - - /** Returns the builder for the settings used for calls to getIamPolicy. */ - public UnaryCallSettings.Builder getIamPolicySettings() { - return getStubSettingsBuilder().getIamPolicySettings(); - } - - /** Returns the builder for the settings used for calls to testIamPermissions. */ - public UnaryCallSettings.Builder - testIamPermissionsSettings() { - return getStubSettingsBuilder().testIamPermissionsSettings(); - } - - /** Returns the builder for the settings used for calls to importEntries. */ - public UnaryCallSettings.Builder importEntriesSettings() { - return getStubSettingsBuilder().importEntriesSettings(); - } - - /** Returns the builder for the settings used for calls to importEntries. */ - public OperationCallSettings.Builder< - ImportEntriesRequest, ImportEntriesResponse, ImportEntriesMetadata> - importEntriesOperationSettings() { - return getStubSettingsBuilder().importEntriesOperationSettings(); - } - - @Override - public DataCatalogSettings build() throws IOException { - return new DataCatalogSettings(this); - } - } -} diff --git a/owl-bot-staging/java-datacatalog/v1/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/PolicyTagManagerSerializationSettings.java b/owl-bot-staging/java-datacatalog/v1/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/PolicyTagManagerSerializationSettings.java deleted file mode 100644 index f33050ff7606..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/PolicyTagManagerSerializationSettings.java +++ /dev/null @@ -1,236 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, 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.StubSettings; -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; - -// 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 total timeout of replaceTaxonomy to 30 seconds: - * - *

{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * PolicyTagManagerSerializationSettings.Builder policyTagManagerSerializationSettingsBuilder =
- *     PolicyTagManagerSerializationSettings.newBuilder();
- * policyTagManagerSerializationSettingsBuilder
- *     .replaceTaxonomySettings()
- *     .setRetrySettings(
- *         policyTagManagerSerializationSettingsBuilder
- *             .replaceTaxonomySettings()
- *             .getRetrySettings()
- *             .toBuilder()
- *             .setTotalTimeout(Duration.ofSeconds(30))
- *             .build());
- * PolicyTagManagerSerializationSettings policyTagManagerSerializationSettings =
- *     policyTagManagerSerializationSettingsBuilder.build();
- * }
- */ -@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(); - } - - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - 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. */ - @BetaApi - public static Builder newHttpJsonBuilder() { - return Builder.createHttpJsonDefault(); - } - - /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { - return new Builder(clientContext); - } - - /** Returns a builder containing all the values of this settings class. */ - public Builder toBuilder() { - return new Builder(this); - } - - protected 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(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()); - } - - @BetaApi - 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/owl-bot-staging/java-datacatalog/v1/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/PolicyTagManagerSettings.java b/owl-bot-staging/java-datacatalog/v1/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/PolicyTagManagerSettings.java deleted file mode 100644 index 24a9c9e24186..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/PolicyTagManagerSettings.java +++ /dev/null @@ -1,346 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, 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.StubSettings; -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; - -// 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 total timeout of createTaxonomy to 30 seconds: - * - *

{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * PolicyTagManagerSettings.Builder policyTagManagerSettingsBuilder =
- *     PolicyTagManagerSettings.newBuilder();
- * policyTagManagerSettingsBuilder
- *     .createTaxonomySettings()
- *     .setRetrySettings(
- *         policyTagManagerSettingsBuilder
- *             .createTaxonomySettings()
- *             .getRetrySettings()
- *             .toBuilder()
- *             .setTotalTimeout(Duration.ofSeconds(30))
- *             .build());
- * PolicyTagManagerSettings policyTagManagerSettings = policyTagManagerSettingsBuilder.build();
- * }
- */ -@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(); - } - - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - 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. */ - @BetaApi - public static Builder newHttpJsonBuilder() { - return Builder.createHttpJsonDefault(); - } - - /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { - return new Builder(clientContext); - } - - /** Returns a builder containing all the values of this settings class. */ - public Builder toBuilder() { - return new Builder(this); - } - - protected 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(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()); - } - - @BetaApi - 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/owl-bot-staging/java-datacatalog/v1/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/GrpcDataCatalogStub.java b/owl-bot-staging/java-datacatalog/v1/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/GrpcDataCatalogStub.java deleted file mode 100644 index 004f8cc88baf..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/GrpcDataCatalogStub.java +++ /dev/null @@ -1,1262 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, 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.ModifyEntryContactsRequest; -import com.google.cloud.datacatalog.v1.ModifyEntryOverviewRequest; -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.SearchCatalogRequest; -import com.google.cloud.datacatalog.v1.SearchCatalogResponse; -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.Map; -import java.util.concurrent.TimeUnit; -import javax.annotation.Generated; - -// 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. - */ -@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())) - .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())) - .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())) - .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())) - .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())) - .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())) - .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())) - .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())) - .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())) - .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())) - .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())) - .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())) - .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())) - .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())) - .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())) - .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())) - .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())) - .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())) - .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())) - .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())) - .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())) - .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())) - .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())) - .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())) - .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())) - .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())) - .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())) - .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())) - .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())) - .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())) - .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())) - .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())) - .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())) - .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())) - .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 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(); - }) - .build(); - GrpcCallSettings getEntryGroupTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getEntryGroupMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .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(); - }) - .build(); - GrpcCallSettings - listEntryGroupsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(listEntryGroupsMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - GrpcCallSettings createEntryTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(createEntryMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .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(); - }) - .build(); - GrpcCallSettings getEntryTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getEntryMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .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(); - }) - .build(); - GrpcCallSettings - modifyEntryOverviewTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(modifyEntryOverviewMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings modifyEntryContactsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(modifyEntryContactsMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings createTagTemplateTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(createTagTemplateMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - GrpcCallSettings getTagTemplateTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getTagTemplateMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .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(); - }) - .build(); - GrpcCallSettings - createTagTemplateFieldTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(createTagTemplateFieldMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - GrpcCallSettings - updateTagTemplateFieldTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(updateTagTemplateFieldMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings - renameTagTemplateFieldTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(renameTagTemplateFieldMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings - renameTagTemplateFieldEnumValueTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(renameTagTemplateFieldEnumValueMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings deleteTagTemplateFieldTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(deleteTagTemplateFieldMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings createTagTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(createTagMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .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(); - }) - .build(); - GrpcCallSettings listTagsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(listTagsMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - GrpcCallSettings reconcileTagsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(reconcileTagsMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - GrpcCallSettings starEntryTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(starEntryMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings unstarEntryTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(unstarEntryMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings setIamPolicyTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(setIamPolicyMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("resource", String.valueOf(request.getResource())); - return builder.build(); - }) - .build(); - GrpcCallSettings getIamPolicyTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getIamPolicyMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("resource", String.valueOf(request.getResource())); - return builder.build(); - }) - .build(); - GrpcCallSettings - testIamPermissionsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(testIamPermissionsMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("resource", String.valueOf(request.getResource())); - return builder.build(); - }) - .build(); - GrpcCallSettings importEntriesTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(importEntriesMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - 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.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 final void close() { - try { - backgroundResources.close(); - } catch (RuntimeException e) { - throw e; - } catch (Exception e) { - throw new IllegalStateException("Failed to close resource", e); - } - } - - @Override - public void shutdown() { - backgroundResources.shutdown(); - } - - @Override - public boolean isShutdown() { - return backgroundResources.isShutdown(); - } - - @Override - public boolean isTerminated() { - return backgroundResources.isTerminated(); - } - - @Override - public void shutdownNow() { - backgroundResources.shutdownNow(); - } - - @Override - public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { - return backgroundResources.awaitTermination(duration, unit); - } -} diff --git a/owl-bot-staging/java-datacatalog/v1/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/GrpcPolicyTagManagerSerializationStub.java b/owl-bot-staging/java-datacatalog/v1/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/GrpcPolicyTagManagerSerializationStub.java deleted file mode 100644 index cfbfff217ac1..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/GrpcPolicyTagManagerSerializationStub.java +++ /dev/null @@ -1,239 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, 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.Map; -import java.util.concurrent.TimeUnit; -import javax.annotation.Generated; - -// 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. - */ -@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())) - .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())) - .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())) - .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(); - }) - .build(); - GrpcCallSettings - importTaxonomiesTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(importTaxonomiesMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - GrpcCallSettings - exportTaxonomiesTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(exportTaxonomiesMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .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/owl-bot-staging/java-datacatalog/v1/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/GrpcPolicyTagManagerStub.java b/owl-bot-staging/java-datacatalog/v1/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/GrpcPolicyTagManagerStub.java deleted file mode 100644 index 7a6e22d5da94..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/GrpcPolicyTagManagerStub.java +++ /dev/null @@ -1,557 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, 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.Map; -import java.util.concurrent.TimeUnit; -import javax.annotation.Generated; - -// 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. - */ -@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())) - .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())) - .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())) - .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())) - .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())) - .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())) - .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())) - .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())) - .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())) - .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())) - .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())) - .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())) - .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())) - .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(); - }) - .build(); - GrpcCallSettings deleteTaxonomyTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(deleteTaxonomyMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .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(); - }) - .build(); - GrpcCallSettings getTaxonomyTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getTaxonomyMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings createPolicyTagTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(createPolicyTagMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - GrpcCallSettings deletePolicyTagTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(deletePolicyTagMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .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(); - }) - .build(); - GrpcCallSettings getPolicyTagTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getPolicyTagMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings getIamPolicyTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getIamPolicyMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("resource", String.valueOf(request.getResource())); - return builder.build(); - }) - .build(); - GrpcCallSettings setIamPolicyTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(setIamPolicyMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("resource", String.valueOf(request.getResource())); - return builder.build(); - }) - .build(); - GrpcCallSettings - testIamPermissionsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(testIamPermissionsMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("resource", String.valueOf(request.getResource())); - return builder.build(); - }) - .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/owl-bot-staging/java-datacatalog/v1/grpc-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DataCatalogGrpc.java b/owl-bot-staging/java-datacatalog/v1/grpc-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DataCatalogGrpc.java deleted file mode 100644 index b9a5b01cb36a..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/grpc-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DataCatalogGrpc.java +++ /dev/null @@ -1,3831 +0,0 @@ -package com.google.cloud.datacatalog.v1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - *

- * Data Catalog API service allows you to discover, understand, and manage
- * your data.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/datacatalog/v1/datacatalog.proto") -@io.grpc.stub.annotations.GrpcGenerated -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 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 getSearchCatalogMethod() { - io.grpc.MethodDescriptor 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 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 getCreateEntryGroupMethod() { - io.grpc.MethodDescriptor 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 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 getGetEntryGroupMethod() { - io.grpc.MethodDescriptor 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 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 getUpdateEntryGroupMethod() { - io.grpc.MethodDescriptor 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 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 getDeleteEntryGroupMethod() { - io.grpc.MethodDescriptor 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 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 getListEntryGroupsMethod() { - io.grpc.MethodDescriptor 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 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 getCreateEntryMethod() { - io.grpc.MethodDescriptor 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 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 getUpdateEntryMethod() { - io.grpc.MethodDescriptor 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 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 getDeleteEntryMethod() { - io.grpc.MethodDescriptor 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 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 getGetEntryMethod() { - io.grpc.MethodDescriptor 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 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 getLookupEntryMethod() { - io.grpc.MethodDescriptor 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 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 getListEntriesMethod() { - io.grpc.MethodDescriptor 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 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 getModifyEntryOverviewMethod() { - io.grpc.MethodDescriptor 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 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 getModifyEntryContactsMethod() { - io.grpc.MethodDescriptor 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 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 getCreateTagTemplateMethod() { - io.grpc.MethodDescriptor 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 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 getGetTagTemplateMethod() { - io.grpc.MethodDescriptor 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 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 getUpdateTagTemplateMethod() { - io.grpc.MethodDescriptor 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 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 getDeleteTagTemplateMethod() { - io.grpc.MethodDescriptor 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 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 getCreateTagTemplateFieldMethod() { - io.grpc.MethodDescriptor 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 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 getUpdateTagTemplateFieldMethod() { - io.grpc.MethodDescriptor 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 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 getRenameTagTemplateFieldMethod() { - io.grpc.MethodDescriptor 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 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 getRenameTagTemplateFieldEnumValueMethod() { - io.grpc.MethodDescriptor 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 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 getDeleteTagTemplateFieldMethod() { - io.grpc.MethodDescriptor 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 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 getCreateTagMethod() { - io.grpc.MethodDescriptor 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 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 getUpdateTagMethod() { - io.grpc.MethodDescriptor 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 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 getDeleteTagMethod() { - io.grpc.MethodDescriptor 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 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 getListTagsMethod() { - io.grpc.MethodDescriptor 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 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 getReconcileTagsMethod() { - io.grpc.MethodDescriptor 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 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 getStarEntryMethod() { - io.grpc.MethodDescriptor 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 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 getUnstarEntryMethod() { - io.grpc.MethodDescriptor 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 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 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 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 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 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 getTestIamPermissionsMethod() { - io.grpc.MethodDescriptor 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 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 getImportEntriesMethod() { - io.grpc.MethodDescriptor 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; - } - - /** - * 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 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); - } - - /** - *
-   * Data Catalog API service allows you to discover, understand, and manage
-   * your data.
-   * 
- */ - 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).
-     * 
- */ - 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).
-     * 
- */ - 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.
-     * 
- */ - 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).
-     * 
- */ - 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).
-     * 
- */ - 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.
-     * 
- */ - 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.
-     * 
- */ - 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).
-     * 
- */ - 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).
-     * 
- */ - 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.
-     * 
- */ - 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.
-     * 
- */ - 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].
-     * 
- */ - 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.
-     * 
- */ - 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.
-     * 
- */ - 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).
-     * 
- */ - 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.
-     * 
- */ - 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).
-     * 
- */ - 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).
-     * 
- */ - 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).
-     * 
- */ - 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).
-     * 
- */ - 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).
-     * 
- */ - 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.
-     * 
- */ - 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).
-     * 
- */ - 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.
-     * 
- */ - 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.
-     * 
- */ - 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.
-     * 
- */ - 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.
-     * 
- */ - 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.
-     * 
- */ - 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.
-     * 
- */ - 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.
-     * 
- */ - 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.
-     * 
- */ - 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.
-     * 
- */ - 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.
-     * 
- */ - 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.
-     * 
- */ - default void importEntries(com.google.cloud.datacatalog.v1.ImportEntriesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getImportEntriesMethod(), responseObserver); - } - } - - /** - * Base class for the server implementation of the service DataCatalog. - *
-   * Data Catalog API service allows you to discover, understand, and manage
-   * your data.
-   * 
- */ - public static abstract 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. - *
-   * Data Catalog API service allows you to discover, understand, and manage
-   * your data.
-   * 
- */ - 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).
-     * 
- */ - 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).
-     * 
- */ - 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.
-     * 
- */ - 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).
-     * 
- */ - 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).
-     * 
- */ - 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.
-     * 
- */ - 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.
-     * 
- */ - 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).
-     * 
- */ - 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).
-     * 
- */ - 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.
-     * 
- */ - 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.
-     * 
- */ - 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].
-     * 
- */ - 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.
-     * 
- */ - 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.
-     * 
- */ - 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).
-     * 
- */ - 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.
-     * 
- */ - 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).
-     * 
- */ - 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).
-     * 
- */ - 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).
-     * 
- */ - 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).
-     * 
- */ - 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).
-     * 
- */ - 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.
-     * 
- */ - 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).
-     * 
- */ - 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.
-     * 
- */ - 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.
-     * 
- */ - 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.
-     * 
- */ - 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.
-     * 
- */ - 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.
-     * 
- */ - 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.
-     * 
- */ - 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.
-     * 
- */ - 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.
-     * 
- */ - 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.
-     * 
- */ - 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.
-     * 
- */ - 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.
-     * 
- */ - 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); - } - } - - /** - * A stub to allow clients to do synchronous rpc calls to service DataCatalog. - *
-   * Data Catalog API service allows you to discover, understand, and manage
-   * your data.
-   * 
- */ - 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).
-     * 
- */ - 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).
-     * 
- */ - 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.
-     * 
- */ - 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).
-     * 
- */ - 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).
-     * 
- */ - 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.
-     * 
- */ - 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.
-     * 
- */ - 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).
-     * 
- */ - 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).
-     * 
- */ - 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.
-     * 
- */ - 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.
-     * 
- */ - 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].
-     * 
- */ - 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.
-     * 
- */ - 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.
-     * 
- */ - 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).
-     * 
- */ - 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.
-     * 
- */ - 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).
-     * 
- */ - 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).
-     * 
- */ - 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).
-     * 
- */ - 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).
-     * 
- */ - 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).
-     * 
- */ - 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.
-     * 
- */ - 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).
-     * 
- */ - 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.
-     * 
- */ - 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.
-     * 
- */ - 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.
-     * 
- */ - 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.
-     * 
- */ - 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.
-     * 
- */ - 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.
-     * 
- */ - 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.
-     * 
- */ - 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.
-     * 
- */ - 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.
-     * 
- */ - 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.
-     * 
- */ - 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.
-     * 
- */ - public com.google.longrunning.Operation importEntries(com.google.cloud.datacatalog.v1.ImportEntriesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getImportEntriesMethod(), getCallOptions(), request); - } - } - - /** - * A stub to allow clients to do ListenableFuture-style rpc calls to service DataCatalog. - *
-   * Data Catalog API service allows you to discover, understand, and manage
-   * your data.
-   * 
- */ - 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).
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture 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).
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createEntryGroup( - com.google.cloud.datacatalog.v1.CreateEntryGroupRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateEntryGroupMethod(), getCallOptions()), request); - } - - /** - *
-     * Gets an entry group.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture 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).
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture 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).
-     * 
- */ - 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.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture 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.
-     * 
- */ - 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).
-     * 
- */ - 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).
-     * 
- */ - 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.
-     * 
- */ - 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.
-     * 
- */ - 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].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture 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.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture 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.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture 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).
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createTagTemplate( - com.google.cloud.datacatalog.v1.CreateTagTemplateRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateTagTemplateMethod(), getCallOptions()), request); - } - - /** - *
-     * Gets a tag template.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture 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).
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture 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).
-     * 
- */ - 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).
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture 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).
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture 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).
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture 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.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture 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).
-     * 
- */ - 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.
-     * 
- */ - 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.
-     * 
- */ - 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.
-     * 
- */ - 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.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture 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.
-     * 
- */ - 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.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture 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.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture 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.
-     * 
- */ - 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.
-     * 
- */ - 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.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture 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.
-     * 
- */ - 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); - } - } - - 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 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; - 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< - com.google.iam.v1.SetIamPolicyRequest, - com.google.iam.v1.Policy>( - service, METHODID_SET_IAM_POLICY))) - .addMethod( - getGetIamPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.v1.GetIamPolicyRequest, - com.google.iam.v1.Policy>( - 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))) - .build(); - } - - private static abstract 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()) - .build(); - } - } - } - return result; - } -} diff --git a/owl-bot-staging/java-datacatalog/v1/grpc-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/PolicyTagManagerGrpc.java b/owl-bot-staging/java-datacatalog/v1/grpc-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/PolicyTagManagerGrpc.java deleted file mode 100644 index 64c0d67655b2..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/grpc-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/PolicyTagManagerGrpc.java +++ /dev/null @@ -1,1423 +0,0 @@ -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.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/datacatalog/v1/policytagmanager.proto") -@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 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 getCreateTaxonomyMethod() { - io.grpc.MethodDescriptor 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 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 getDeleteTaxonomyMethod() { - io.grpc.MethodDescriptor 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 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 getUpdateTaxonomyMethod() { - io.grpc.MethodDescriptor 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 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 getListTaxonomiesMethod() { - io.grpc.MethodDescriptor 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 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 getGetTaxonomyMethod() { - io.grpc.MethodDescriptor 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 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 getCreatePolicyTagMethod() { - io.grpc.MethodDescriptor 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 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 getDeletePolicyTagMethod() { - io.grpc.MethodDescriptor 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 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 getUpdatePolicyTagMethod() { - io.grpc.MethodDescriptor 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 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 getListPolicyTagsMethod() { - io.grpc.MethodDescriptor 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 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 getGetPolicyTagMethod() { - io.grpc.MethodDescriptor 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 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 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 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 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 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 getTestIamPermissionsMethod() { - io.grpc.MethodDescriptor 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 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 static abstract 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 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 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 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 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 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 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 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 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 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 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< - com.google.iam.v1.GetIamPolicyRequest, - com.google.iam.v1.Policy>( - service, METHODID_GET_IAM_POLICY))) - .addMethod( - getSetIamPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.v1.SetIamPolicyRequest, - com.google.iam.v1.Policy>( - 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 static abstract 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/owl-bot-staging/java-datacatalog/v1/grpc-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/PolicyTagManagerSerializationGrpc.java b/owl-bot-staging/java-datacatalog/v1/grpc-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/PolicyTagManagerSerializationGrpc.java deleted file mode 100644 index 5c9c28b28b57..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/grpc-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/PolicyTagManagerSerializationGrpc.java +++ /dev/null @@ -1,579 +0,0 @@ -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.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/datacatalog/v1/policytagmanagerserialization.proto") -@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 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 getReplaceTaxonomyMethod() { - io.grpc.MethodDescriptor 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 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 getImportTaxonomiesMethod() { - io.grpc.MethodDescriptor 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 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 getExportTaxonomiesMethod() { - io.grpc.MethodDescriptor 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 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 static abstract 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 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 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 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 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) responseObserver); - break; - case METHODID_EXPORT_TAXONOMIES: - serviceImpl.exportTaxonomies((com.google.cloud.datacatalog.v1.ExportTaxonomiesRequest) 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( - 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 static abstract 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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/BigQueryConnectionSpec.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/BigQueryConnectionSpec.java deleted file mode 100644 index 2258ef69b730..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/BigQueryConnectionSpec.java +++ /dev/null @@ -1,1081 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/bigquery.proto - -package com.google.cloud.datacatalog.v1; - -/** - *
- * Specification for the BigQuery connection.
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.BigQueryConnectionSpec} - */ -public final class BigQueryConnectionSpec extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.BigQueryConnectionSpec) - BigQueryConnectionSpecOrBuilder { -private static final long serialVersionUID = 0L; - // Use BigQueryConnectionSpec.newBuilder() to construct. - private BigQueryConnectionSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private BigQueryConnectionSpec() { - connectionType_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new BigQueryConnectionSpec(); - } - - 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.GeneratedMessageV3.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), - ; - - /** - *
-     * 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< - ConnectionType> 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 final 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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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( - getCloudSqlFieldBuilder().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.SingleFieldBuilderV3< - 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 getCloudSqlFieldBuilder().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.SingleFieldBuilderV3< - com.google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec, com.google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec.Builder, com.google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpecOrBuilder> - getCloudSqlFieldBuilder() { - if (cloudSqlBuilder_ == null) { - if (!(connectionSpecCase_ == 2)) { - connectionSpec_ = com.google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec.getDefaultInstance(); - } - cloudSqlBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - 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; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/BigQueryConnectionSpecOrBuilder.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/BigQueryConnectionSpecOrBuilder.java deleted file mode 100644 index 2fed25b3eb18..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/BigQueryConnectionSpecOrBuilder.java +++ /dev/null @@ -1,68 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/bigquery.proto - -package com.google.cloud.datacatalog.v1; - -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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/BigQueryDateShardedSpec.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/BigQueryDateShardedSpec.java deleted file mode 100644 index 7f9dcabba262..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/BigQueryDateShardedSpec.java +++ /dev/null @@ -1,1045 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/table_spec.proto - -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} - */ -public final class BigQueryDateShardedSpec extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.BigQueryDateShardedSpec) - BigQueryDateShardedSpecOrBuilder { -private static final long serialVersionUID = 0L; - // Use BigQueryDateShardedSpec.newBuilder() to construct. - private BigQueryDateShardedSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private BigQueryDateShardedSpec() { - dataset_ = ""; - tablePrefix_ = ""; - latestShardResource_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new BigQueryDateShardedSpec(); - } - - 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(dataset_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, dataset_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tablePrefix_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, tablePrefix_); - } - if (shardCount_ != 0L) { - output.writeInt64(3, shardCount_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(latestShardResource_)) { - com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(dataset_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, dataset_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tablePrefix_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, tablePrefix_); - } - if (shardCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(3, shardCount_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(latestShardResource_)) { - size += com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/BigQueryDateShardedSpecOrBuilder.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/BigQueryDateShardedSpecOrBuilder.java deleted file mode 100644 index 83243c3d4690..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/BigQueryDateShardedSpecOrBuilder.java +++ /dev/null @@ -1,93 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/table_spec.proto - -package com.google.cloud.datacatalog.v1; - -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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/BigQueryProto.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/BigQueryProto.java deleted file mode 100644 index 792635caa25b..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/BigQueryProto.java +++ /dev/null @@ -1,93 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/bigquery.proto - -package com.google.cloud.datacatalog.v1; - -public final class BigQueryProto { - private 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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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\325\001\n\037com.google.cl" + - "oud.datacatalog.v1B\rBigQueryProtoP\001ZAclo" + - "ud.google.com/go/datacatalog/apiv1/datac" + - "atalogpb;datacatalogpb\370\001\001\252\002\033Google.Cloud" + - ".DataCatalog.V1\312\002\033Google\\Cloud\\DataCatal" + - "og\\V1\352\002\036Google::Cloud::DataCatalog::V1b\006" + - "proto3" - }; - 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().getMessageTypes().get(0); - internal_static_google_cloud_datacatalog_v1_BigQueryConnectionSpec_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.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().getMessageTypes().get(1); - internal_static_google_cloud_datacatalog_v1_CloudSqlBigQueryConnectionSpec_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.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().getMessageTypes().get(2); - internal_static_google_cloud_datacatalog_v1_BigQueryRoutineSpec_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_BigQueryRoutineSpec_descriptor, - new java.lang.String[] { "ImportedLibraries", }); - com.google.api.FieldBehaviorProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/BigQueryRoutineSpec.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/BigQueryRoutineSpec.java deleted file mode 100644 index 3a228e889e65..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/BigQueryRoutineSpec.java +++ /dev/null @@ -1,654 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/bigquery.proto - -package com.google.cloud.datacatalog.v1; - -/** - *
- * Fields specific for BigQuery routines.
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.BigQueryRoutineSpec} - */ -public final class BigQueryRoutineSpec extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.BigQueryRoutineSpec) - BigQueryRoutineSpecOrBuilder { -private static final long serialVersionUID = 0L; - // Use BigQueryRoutineSpec.newBuilder() to construct. - private BigQueryRoutineSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private BigQueryRoutineSpec() { - importedLibraries_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new BigQueryRoutineSpec(); - } - - 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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/BigQueryRoutineSpecOrBuilder.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/BigQueryRoutineSpecOrBuilder.java deleted file mode 100644 index 4a099b760569..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/BigQueryRoutineSpecOrBuilder.java +++ /dev/null @@ -1,50 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/bigquery.proto - -package com.google.cloud.datacatalog.v1; - -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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/BigQueryTableSpec.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/BigQueryTableSpec.java deleted file mode 100644 index 57c080a1e571..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/BigQueryTableSpec.java +++ /dev/null @@ -1,1146 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/table_spec.proto - -package com.google.cloud.datacatalog.v1; - -/** - *
- * Describes a BigQuery table.
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.BigQueryTableSpec} - */ -public final class BigQueryTableSpec extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.BigQueryTableSpec) - BigQueryTableSpecOrBuilder { -private static final long serialVersionUID = 0L; - // Use BigQueryTableSpec.newBuilder() to construct. - private BigQueryTableSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private BigQueryTableSpec() { - tableSourceType_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new BigQueryTableSpec(); - } - - 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.GeneratedMessageV3.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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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( - getViewSpecFieldBuilder().getBuilder(), - extensionRegistry); - typeSpecCase_ = 2; - break; - } // case 18 - case 26: { - input.readMessage( - getTableSpecFieldBuilder().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.SingleFieldBuilderV3< - 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 getViewSpecFieldBuilder().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.SingleFieldBuilderV3< - com.google.cloud.datacatalog.v1.ViewSpec, com.google.cloud.datacatalog.v1.ViewSpec.Builder, com.google.cloud.datacatalog.v1.ViewSpecOrBuilder> - getViewSpecFieldBuilder() { - if (viewSpecBuilder_ == null) { - if (!(typeSpecCase_ == 2)) { - typeSpec_ = com.google.cloud.datacatalog.v1.ViewSpec.getDefaultInstance(); - } - viewSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - 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.SingleFieldBuilderV3< - 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 getTableSpecFieldBuilder().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.SingleFieldBuilderV3< - com.google.cloud.datacatalog.v1.TableSpec, com.google.cloud.datacatalog.v1.TableSpec.Builder, com.google.cloud.datacatalog.v1.TableSpecOrBuilder> - getTableSpecFieldBuilder() { - if (tableSpecBuilder_ == null) { - if (!(typeSpecCase_ == 3)) { - typeSpec_ = com.google.cloud.datacatalog.v1.TableSpec.getDefaultInstance(); - } - tableSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - 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_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/BigQueryTableSpecOrBuilder.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/BigQueryTableSpecOrBuilder.java deleted file mode 100644 index 55cf067e9d94..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/BigQueryTableSpecOrBuilder.java +++ /dev/null @@ -1,90 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/table_spec.proto - -package com.google.cloud.datacatalog.v1; - -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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/BusinessContext.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/BusinessContext.java deleted file mode 100644 index 02c771a006ac..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/BusinessContext.java +++ /dev/null @@ -1,871 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/datacatalog.proto - -package com.google.cloud.datacatalog.v1; - -/** - *
- * Business Context of the entry.
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.BusinessContext} - */ -public final class BusinessContext extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.BusinessContext) - BusinessContextOrBuilder { -private static final long serialVersionUID = 0L; - // Use BusinessContext.newBuilder() to construct. - private BusinessContext(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private BusinessContext() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.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); - } - - 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 entryOverview_ != null; - } - /** - *
-   * 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 contacts_ != null; - } - /** - *
-   * 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 (entryOverview_ != null) { - output.writeMessage(1, getEntryOverview()); - } - if (contacts_ != null) { - output.writeMessage(2, getContacts()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (entryOverview_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getEntryOverview()); - } - if (contacts_ != null) { - 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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @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_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.entryOverview_ = entryOverviewBuilder_ == null - ? entryOverview_ - : entryOverviewBuilder_.build(); - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.contacts_ = contactsBuilder_ == null - ? contacts_ - : contactsBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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( - getEntryOverviewFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getContactsFieldBuilder().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.SingleFieldBuilderV3< - 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); - } - 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 getEntryOverviewFieldBuilder().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.SingleFieldBuilderV3< - com.google.cloud.datacatalog.v1.EntryOverview, com.google.cloud.datacatalog.v1.EntryOverview.Builder, com.google.cloud.datacatalog.v1.EntryOverviewOrBuilder> - getEntryOverviewFieldBuilder() { - if (entryOverviewBuilder_ == null) { - entryOverviewBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - 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.SingleFieldBuilderV3< - 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); - } - 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 getContactsFieldBuilder().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.SingleFieldBuilderV3< - com.google.cloud.datacatalog.v1.Contacts, com.google.cloud.datacatalog.v1.Contacts.Builder, com.google.cloud.datacatalog.v1.ContactsOrBuilder> - getContactsFieldBuilder() { - if (contactsBuilder_ == null) { - contactsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - 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_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/BusinessContextOrBuilder.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/BusinessContextOrBuilder.java deleted file mode 100644 index 417c73f282d1..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/BusinessContextOrBuilder.java +++ /dev/null @@ -1,63 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/datacatalog.proto - -package com.google.cloud.datacatalog.v1; - -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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CloudBigtableInstanceSpec.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CloudBigtableInstanceSpec.java deleted file mode 100644 index 3eef24dfbd48..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CloudBigtableInstanceSpec.java +++ /dev/null @@ -1,2011 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/datacatalog.proto - -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} - */ -public final class CloudBigtableInstanceSpec extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.CloudBigtableInstanceSpec) - CloudBigtableInstanceSpecOrBuilder { -private static final long serialVersionUID = 0L; - // Use CloudBigtableInstanceSpec.newBuilder() to construct. - private CloudBigtableInstanceSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CloudBigtableInstanceSpec() { - cloudBigtableClusterSpecs_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new CloudBigtableInstanceSpec(); - } - - 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.GeneratedMessageV3.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.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.CloudBigtableInstanceSpec.CloudBigtableClusterSpec) - CloudBigtableClusterSpecOrBuilder { - private static final long serialVersionUID = 0L; - // Use CloudBigtableClusterSpec.newBuilder() to construct. - private CloudBigtableClusterSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CloudBigtableClusterSpec() { - displayName_ = ""; - location_ = ""; - type_ = ""; - linkedResource_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new CloudBigtableClusterSpec(); - } - - 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(displayName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, displayName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(location_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, location_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, type_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(linkedResource_)) { - com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(displayName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, displayName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(location_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, location_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, type_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(linkedResource_)) { - size += com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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 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 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 - 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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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.GeneratedMessageV3.alwaysUseFieldBuilders ? - getCloudBigtableClusterSpecsFieldBuilder() : 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 cloudBigtableClusterSpecs_ = - java.util.Collections.emptyList(); - private void ensureCloudBigtableClusterSpecsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - cloudBigtableClusterSpecs_ = new java.util.ArrayList(cloudBigtableClusterSpecs_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - 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 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 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 getCloudBigtableClusterSpecsFieldBuilder().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 - 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 getCloudBigtableClusterSpecsFieldBuilder().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 getCloudBigtableClusterSpecsFieldBuilder().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 - getCloudBigtableClusterSpecsBuilderList() { - return getCloudBigtableClusterSpecsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec.CloudBigtableClusterSpec, com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec.CloudBigtableClusterSpec.Builder, com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec.CloudBigtableClusterSpecOrBuilder> - getCloudBigtableClusterSpecsFieldBuilder() { - if (cloudBigtableClusterSpecsBuilder_ == null) { - cloudBigtableClusterSpecsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - 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_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CloudBigtableInstanceSpecOrBuilder.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CloudBigtableInstanceSpecOrBuilder.java deleted file mode 100644 index 2cd9842229b8..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CloudBigtableInstanceSpecOrBuilder.java +++ /dev/null @@ -1,53 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/datacatalog.proto - -package com.google.cloud.datacatalog.v1; - -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 - 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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CloudBigtableSystemSpec.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CloudBigtableSystemSpec.java deleted file mode 100644 index 06728fd8588b..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CloudBigtableSystemSpec.java +++ /dev/null @@ -1,588 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/datacatalog.proto - -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} - */ -public final class CloudBigtableSystemSpec extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.CloudBigtableSystemSpec) - CloudBigtableSystemSpecOrBuilder { -private static final long serialVersionUID = 0L; - // Use CloudBigtableSystemSpec.newBuilder() to construct. - private CloudBigtableSystemSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CloudBigtableSystemSpec() { - instanceDisplayName_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new CloudBigtableSystemSpec(); - } - - 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(instanceDisplayName_)) { - com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(instanceDisplayName_)) { - size += com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CloudBigtableSystemSpecOrBuilder.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CloudBigtableSystemSpecOrBuilder.java deleted file mode 100644 index 337d21e00d86..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CloudBigtableSystemSpecOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/datacatalog.proto - -package com.google.cloud.datacatalog.v1; - -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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CloudSqlBigQueryConnectionSpec.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CloudSqlBigQueryConnectionSpec.java deleted file mode 100644 index ef3dd02005d4..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CloudSqlBigQueryConnectionSpec.java +++ /dev/null @@ -1,1008 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/bigquery.proto - -package com.google.cloud.datacatalog.v1; - -/** - *
- * Specification for the BigQuery connection to a Cloud SQL instance.
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec} - */ -public final class CloudSqlBigQueryConnectionSpec extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec) - CloudSqlBigQueryConnectionSpecOrBuilder { -private static final long serialVersionUID = 0L; - // Use CloudSqlBigQueryConnectionSpec.newBuilder() to construct. - private CloudSqlBigQueryConnectionSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CloudSqlBigQueryConnectionSpec() { - instanceId_ = ""; - database_ = ""; - type_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new CloudSqlBigQueryConnectionSpec(); - } - - 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.GeneratedMessageV3.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), - ; - - /** - *
-     * 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< - DatabaseType> 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 final 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.GeneratedMessageV3.isStringEmpty(instanceId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, instanceId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(database_)) { - com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(instanceId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, instanceId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(database_)) { - size += com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CloudSqlBigQueryConnectionSpecOrBuilder.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CloudSqlBigQueryConnectionSpecOrBuilder.java deleted file mode 100644 index 6215b3a0c169..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CloudSqlBigQueryConnectionSpecOrBuilder.java +++ /dev/null @@ -1,68 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/bigquery.proto - -package com.google.cloud.datacatalog.v1; - -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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ColumnSchema.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ColumnSchema.java deleted file mode 100644 index e235fd658331..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ColumnSchema.java +++ /dev/null @@ -1,3422 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/schema.proto - -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} - */ -public final class ColumnSchema extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.ColumnSchema) - ColumnSchemaOrBuilder { -private static final long serialVersionUID = 0L; - // Use ColumnSchema.newBuilder() to construct. - private ColumnSchema(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ColumnSchema() { - column_ = ""; - type_ = ""; - description_ = ""; - mode_ = ""; - defaultValue_ = ""; - highestIndexingType_ = 0; - subcolumns_ = java.util.Collections.emptyList(); - gcRule_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ColumnSchema(); - } - - 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.GeneratedMessageV3.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), - ; - - /** - *
-     * 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< - IndexingType> 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 final 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.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.ColumnSchema.LookerColumnSpec) - LookerColumnSpecOrBuilder { - private static final long serialVersionUID = 0L; - // Use LookerColumnSpec.newBuilder() to construct. - private LookerColumnSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private LookerColumnSpec() { - type_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new LookerColumnSpec(); - } - - 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.GeneratedMessageV3.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), - ; - - /** - *
-       * 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< - LookerColumnType> 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 final 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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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; - } - - } - - 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 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.GeneratedMessageV3.isStringEmpty(type_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, type_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mode_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, mode_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(column_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, column_); - } - for (int i = 0; i < subcolumns_.size(); i++) { - output.writeMessage(7, subcolumns_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(defaultValue_)) { - com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(gcRule_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 11, gcRule_); - } - if (systemSpecCase_ == 18) { - output.writeMessage(18, (com.google.cloud.datacatalog.v1.ColumnSchema.LookerColumnSpec) systemSpec_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, type_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mode_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, mode_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(column_)) { - size += com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(defaultValue_)) { - size += com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(gcRule_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, gcRule_); - } - if (systemSpecCase_ == 18) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(18, (com.google.cloud.datacatalog.v1.ColumnSchema.LookerColumnSpec) 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.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 (!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(); - } - 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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @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(); - } - 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_; - } - if (((from_bitField0_ & 0x00000200) != 0)) { - result.gcRule_ = gcRule_; - } - } - - 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 clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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.GeneratedMessageV3.alwaysUseFieldBuilders ? - getSubcolumnsFieldBuilder() : null; - } else { - subcolumnsBuilder_.addAllMessages(other.subcolumns_); - } - } - } - if (!other.getGcRule().isEmpty()) { - gcRule_ = other.gcRule_; - bitField0_ |= 0x00000200; - 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_ |= 0x00000200; - break; - } // case 90 - case 146: { - input.readMessage( - getLookerColumnSpecFieldBuilder().getBuilder(), - extensionRegistry); - systemSpecCase_ = 18; - break; - } // case 146 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int 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.RepeatedFieldBuilderV3< - 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 getSubcolumnsFieldBuilder().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 getSubcolumnsFieldBuilder().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 getSubcolumnsFieldBuilder().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 getSubcolumnsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datacatalog.v1.ColumnSchema, com.google.cloud.datacatalog.v1.ColumnSchema.Builder, com.google.cloud.datacatalog.v1.ColumnSchemaOrBuilder> - getSubcolumnsFieldBuilder() { - if (subcolumnsBuilder_ == null) { - subcolumnsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - 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.SingleFieldBuilderV3< - 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 getLookerColumnSpecFieldBuilder().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.SingleFieldBuilderV3< - com.google.cloud.datacatalog.v1.ColumnSchema.LookerColumnSpec, com.google.cloud.datacatalog.v1.ColumnSchema.LookerColumnSpec.Builder, com.google.cloud.datacatalog.v1.ColumnSchema.LookerColumnSpecOrBuilder> - getLookerColumnSpecFieldBuilder() { - if (lookerColumnSpecBuilder_ == null) { - if (!(systemSpecCase_ == 18)) { - systemSpec_ = com.google.cloud.datacatalog.v1.ColumnSchema.LookerColumnSpec.getDefaultInstance(); - } - lookerColumnSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - 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 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_ |= 0x00000200; - 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_ & ~0x00000200); - 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_ |= 0x00000200; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ColumnSchemaOrBuilder.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ColumnSchemaOrBuilder.java deleted file mode 100644 index 9c1633597687..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ColumnSchemaOrBuilder.java +++ /dev/null @@ -1,262 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/schema.proto - -package com.google.cloud.datacatalog.v1; - -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. 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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/Common.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/Common.java deleted file mode 100644 index 626e85cdda88..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/Common.java +++ /dev/null @@ -1,65 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/common.proto - -package com.google.cloud.datacatalog.v1; - -public final class Common { - private 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.GeneratedMessageV3.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\017PersonalDeta" + - "ils\022\017\n\007starred\030\001 \001(\010\022-\n\tstar_time\030\002 \001(\0132" + - "\032.google.protobuf.Timestamp*\314\001\n\020Integrat" + - "edSystem\022!\n\035INTEGRATED_SYSTEM_UNSPECIFIE" + - "D\020\000\022\014\n\010BIGQUERY\020\001\022\020\n\014CLOUD_PUBSUB\020\002\022\026\n\022D" + - "ATAPROC_METASTORE\020\003\022\014\n\010DATAPLEX\020\004\022\021\n\rCLO" + - "UD_SPANNER\020\006\022\022\n\016CLOUD_BIGTABLE\020\007\022\r\n\tCLOU" + - "D_SQL\020\010\022\n\n\006LOOKER\020\t\022\r\n\tVERTEX_AI\020\n*j\n\016Ma" + - "nagingSystem\022\037\n\033MANAGING_SYSTEM_UNSPECIF" + - "IED\020\000\022\034\n\030MANAGING_SYSTEM_DATAPLEX\020\001\022\031\n\025M" + - "ANAGING_SYSTEM_OTHER\020\002B\306\001\n\037com.google.cl" + - "oud.datacatalog.v1P\001ZAcloud.google.com/g" + - "o/datacatalog/apiv1/datacatalogpb;dataca" + - "talogpb\370\001\001\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.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_datacatalog_v1_PersonalDetails_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_datacatalog_v1_PersonalDetails_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_PersonalDetails_descriptor, - new java.lang.String[] { "Starred", "StarTime", }); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CommonUsageStats.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CommonUsageStats.java deleted file mode 100644 index 4fd54d42ff2d..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CommonUsageStats.java +++ /dev/null @@ -1,533 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/usage.proto - -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} - */ -public final class CommonUsageStats extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.CommonUsageStats) - CommonUsageStatsOrBuilder { -private static final long serialVersionUID = 0L; - // Use CommonUsageStats.newBuilder() to construct. - private CommonUsageStats(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CommonUsageStats() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CommonUsageStatsOrBuilder.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CommonUsageStatsOrBuilder.java deleted file mode 100644 index 8f67f2150144..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CommonUsageStatsOrBuilder.java +++ /dev/null @@ -1,28 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/usage.proto - -package com.google.cloud.datacatalog.v1; - -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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/Contacts.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/Contacts.java deleted file mode 100644 index 4152bad2e853..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/Contacts.java +++ /dev/null @@ -1,1648 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/datacatalog.proto - -package com.google.cloud.datacatalog.v1; - -/** - *
- * Contact people for the entry.
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.Contacts} - */ -public final class Contacts extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.Contacts) - ContactsOrBuilder { -private static final long serialVersionUID = 0L; - // Use Contacts.newBuilder() to construct. - private Contacts(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Contacts() { - people_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Contacts(); - } - - 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.GeneratedMessageV3.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.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.Contacts.Person) - PersonOrBuilder { - private static final long serialVersionUID = 0L; - // Use Person.newBuilder() to construct. - private Person(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Person() { - designation_ = ""; - email_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Person(); - } - - 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(designation_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, designation_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(email_)) { - com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(designation_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, designation_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(email_)) { - size += com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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.GeneratedMessageV3.alwaysUseFieldBuilders ? - getPeopleFieldBuilder() : 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.RepeatedFieldBuilderV3< - 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 getPeopleFieldBuilder().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 getPeopleFieldBuilder().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 getPeopleFieldBuilder().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 getPeopleFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datacatalog.v1.Contacts.Person, com.google.cloud.datacatalog.v1.Contacts.Person.Builder, com.google.cloud.datacatalog.v1.Contacts.PersonOrBuilder> - getPeopleFieldBuilder() { - if (peopleBuilder_ == null) { - peopleBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - 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_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ContactsOrBuilder.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ContactsOrBuilder.java deleted file mode 100644 index 119af210ddb6..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ContactsOrBuilder.java +++ /dev/null @@ -1,53 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/datacatalog.proto - -package com.google.cloud.datacatalog.v1; - -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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CreateEntryGroupRequest.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CreateEntryGroupRequest.java deleted file mode 100644 index 29db7ba26e9d..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CreateEntryGroupRequest.java +++ /dev/null @@ -1,1028 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/datacatalog.proto - -package com.google.cloud.datacatalog.v1; - -/** - *
- * Request message for
- * [CreateEntryGroup][google.cloud.datacatalog.v1.DataCatalog.CreateEntryGroup].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.CreateEntryGroupRequest} - */ -public final class CreateEntryGroupRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.CreateEntryGroupRequest) - CreateEntryGroupRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use CreateEntryGroupRequest.newBuilder() to construct. - private CreateEntryGroupRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CreateEntryGroupRequest() { - parent_ = ""; - entryGroupId_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new CreateEntryGroupRequest(); - } - - 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.GeneratedMessageV3.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); - } - - 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 entryGroup_ != null; - } - /** - *
-   * 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.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - if (entryGroup_ != null) { - output.writeMessage(2, getEntryGroup()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entryGroupId_)) { - com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - if (entryGroup_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getEntryGroup()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entryGroupId_)) { - size += com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @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_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.entryGroup_ = entryGroupBuilder_ == null - ? entryGroup_ - : entryGroupBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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( - getEntryGroupFieldBuilder().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.SingleFieldBuilderV3< - 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); - } - 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 getEntryGroupFieldBuilder().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.SingleFieldBuilderV3< - com.google.cloud.datacatalog.v1.EntryGroup, com.google.cloud.datacatalog.v1.EntryGroup.Builder, com.google.cloud.datacatalog.v1.EntryGroupOrBuilder> - getEntryGroupFieldBuilder() { - if (entryGroupBuilder_ == null) { - entryGroupBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - 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_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CreateEntryGroupRequestOrBuilder.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CreateEntryGroupRequestOrBuilder.java deleted file mode 100644 index 8d2672824e34..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CreateEntryGroupRequestOrBuilder.java +++ /dev/null @@ -1,92 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/datacatalog.proto - -package com.google.cloud.datacatalog.v1; - -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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CreateEntryRequest.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CreateEntryRequest.java deleted file mode 100644 index 188f106adf97..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CreateEntryRequest.java +++ /dev/null @@ -1,1021 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/datacatalog.proto - -package com.google.cloud.datacatalog.v1; - -/** - *
- * Request message for
- * [CreateEntry][google.cloud.datacatalog.v1.DataCatalog.CreateEntry].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.CreateEntryRequest} - */ -public final class CreateEntryRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.CreateEntryRequest) - CreateEntryRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use CreateEntryRequest.newBuilder() to construct. - private CreateEntryRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CreateEntryRequest() { - parent_ = ""; - entryId_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new CreateEntryRequest(); - } - - 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.GeneratedMessageV3.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); - } - - 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 entry_ != null; - } - /** - *
-   * 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.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - if (entry_ != null) { - output.writeMessage(2, getEntry()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entryId_)) { - com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - if (entry_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getEntry()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entryId_)) { - size += com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @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_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.entry_ = entryBuilder_ == null - ? entry_ - : entryBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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( - getEntryFieldBuilder().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.SingleFieldBuilderV3< - 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); - } - 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 getEntryFieldBuilder().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.SingleFieldBuilderV3< - com.google.cloud.datacatalog.v1.Entry, com.google.cloud.datacatalog.v1.Entry.Builder, com.google.cloud.datacatalog.v1.EntryOrBuilder> - getEntryFieldBuilder() { - if (entryBuilder_ == null) { - entryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - 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_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CreateEntryRequestOrBuilder.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CreateEntryRequestOrBuilder.java deleted file mode 100644 index faa9b0f774b6..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CreateEntryRequestOrBuilder.java +++ /dev/null @@ -1,90 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/datacatalog.proto - -package com.google.cloud.datacatalog.v1; - -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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CreatePolicyTagRequest.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CreatePolicyTagRequest.java deleted file mode 100644 index 1cd25e298403..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CreatePolicyTagRequest.java +++ /dev/null @@ -1,808 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/policytagmanager.proto - -package com.google.cloud.datacatalog.v1; - -/** - *
- * Request message for
- * [CreatePolicyTag][google.cloud.datacatalog.v1.PolicyTagManager.CreatePolicyTag].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.CreatePolicyTagRequest} - */ -public final class CreatePolicyTagRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.CreatePolicyTagRequest) - CreatePolicyTagRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use CreatePolicyTagRequest.newBuilder() to construct. - private CreatePolicyTagRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CreatePolicyTagRequest() { - parent_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new CreatePolicyTagRequest(); - } - - 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.GeneratedMessageV3.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); - } - - 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 policyTag_ != null; - } - /** - *
-   * 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.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - if (policyTag_ != null) { - 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.GeneratedMessageV3.isStringEmpty(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - if (policyTag_ != null) { - 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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @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_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.policyTag_ = policyTagBuilder_ == null - ? policyTag_ - : policyTagBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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( - getPolicyTagFieldBuilder().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.SingleFieldBuilderV3< - 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); - } - 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 getPolicyTagFieldBuilder().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.SingleFieldBuilderV3< - com.google.cloud.datacatalog.v1.PolicyTag, com.google.cloud.datacatalog.v1.PolicyTag.Builder, com.google.cloud.datacatalog.v1.PolicyTagOrBuilder> - getPolicyTagFieldBuilder() { - if (policyTagBuilder_ == null) { - policyTagBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - 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_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CreatePolicyTagRequestOrBuilder.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CreatePolicyTagRequestOrBuilder.java deleted file mode 100644 index f890c148e316..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CreatePolicyTagRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/policytagmanager.proto - -package com.google.cloud.datacatalog.v1; - -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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CreateTagRequest.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CreateTagRequest.java deleted file mode 100644 index d5f88dfebf61..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CreateTagRequest.java +++ /dev/null @@ -1,850 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/datacatalog.proto - -package com.google.cloud.datacatalog.v1; - -/** - *
- * Request message for
- * [CreateTag][google.cloud.datacatalog.v1.DataCatalog.CreateTag].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.CreateTagRequest} - */ -public final class CreateTagRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.CreateTagRequest) - CreateTagRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use CreateTagRequest.newBuilder() to construct. - private CreateTagRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CreateTagRequest() { - parent_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new CreateTagRequest(); - } - - 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.GeneratedMessageV3.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); - } - - 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 tag_ != null; - } - /** - *
-   * 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.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - if (tag_ != null) { - 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.GeneratedMessageV3.isStringEmpty(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - if (tag_ != null) { - 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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @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_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.tag_ = tagBuilder_ == null - ? tag_ - : tagBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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( - getTagFieldBuilder().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.SingleFieldBuilderV3< - 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); - } - 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 getTagFieldBuilder().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.SingleFieldBuilderV3< - com.google.cloud.datacatalog.v1.Tag, com.google.cloud.datacatalog.v1.Tag.Builder, com.google.cloud.datacatalog.v1.TagOrBuilder> - getTagFieldBuilder() { - if (tagBuilder_ == null) { - tagBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - 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_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CreateTagRequestOrBuilder.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CreateTagRequestOrBuilder.java deleted file mode 100644 index dfe40ffaf269..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CreateTagRequestOrBuilder.java +++ /dev/null @@ -1,68 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/datacatalog.proto - -package com.google.cloud.datacatalog.v1; - -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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CreateTagTemplateFieldRequest.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CreateTagTemplateFieldRequest.java deleted file mode 100644 index c4a4cc93a9b2..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CreateTagTemplateFieldRequest.java +++ /dev/null @@ -1,1028 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/datacatalog.proto - -package com.google.cloud.datacatalog.v1; - -/** - *
- * Request message for
- * [CreateTagTemplateField][google.cloud.datacatalog.v1.DataCatalog.CreateTagTemplateField].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.CreateTagTemplateFieldRequest} - */ -public final class CreateTagTemplateFieldRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.CreateTagTemplateFieldRequest) - CreateTagTemplateFieldRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use CreateTagTemplateFieldRequest.newBuilder() to construct. - private CreateTagTemplateFieldRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CreateTagTemplateFieldRequest() { - parent_ = ""; - tagTemplateFieldId_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new CreateTagTemplateFieldRequest(); - } - - 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.GeneratedMessageV3.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); - } - - 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 tagTemplateField_ != null; - } - /** - *
-   * 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.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tagTemplateFieldId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, tagTemplateFieldId_); - } - if (tagTemplateField_ != null) { - 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.GeneratedMessageV3.isStringEmpty(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tagTemplateFieldId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, tagTemplateFieldId_); - } - if (tagTemplateField_ != null) { - 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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @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_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.tagTemplateField_ = tagTemplateFieldBuilder_ == null - ? tagTemplateField_ - : tagTemplateFieldBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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( - getTagTemplateFieldFieldBuilder().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.SingleFieldBuilderV3< - 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); - } - 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 getTagTemplateFieldFieldBuilder().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.SingleFieldBuilderV3< - com.google.cloud.datacatalog.v1.TagTemplateField, com.google.cloud.datacatalog.v1.TagTemplateField.Builder, com.google.cloud.datacatalog.v1.TagTemplateFieldOrBuilder> - getTagTemplateFieldFieldBuilder() { - if (tagTemplateFieldBuilder_ == null) { - tagTemplateFieldBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - 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_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CreateTagTemplateFieldRequestOrBuilder.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CreateTagTemplateFieldRequestOrBuilder.java deleted file mode 100644 index 2379c1d89e7e..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CreateTagTemplateFieldRequestOrBuilder.java +++ /dev/null @@ -1,92 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/datacatalog.proto - -package com.google.cloud.datacatalog.v1; - -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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CreateTagTemplateRequest.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CreateTagTemplateRequest.java deleted file mode 100644 index 7694de299e2f..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CreateTagTemplateRequest.java +++ /dev/null @@ -1,1007 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/datacatalog.proto - -package com.google.cloud.datacatalog.v1; - -/** - *
- * Request message for
- * [CreateTagTemplate][google.cloud.datacatalog.v1.DataCatalog.CreateTagTemplate].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.CreateTagTemplateRequest} - */ -public final class CreateTagTemplateRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.CreateTagTemplateRequest) - CreateTagTemplateRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use CreateTagTemplateRequest.newBuilder() to construct. - private CreateTagTemplateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CreateTagTemplateRequest() { - parent_ = ""; - tagTemplateId_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new CreateTagTemplateRequest(); - } - - 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.GeneratedMessageV3.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); - } - - 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 tagTemplate_ != null; - } - /** - *
-   * 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.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - if (tagTemplate_ != null) { - output.writeMessage(2, getTagTemplate()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tagTemplateId_)) { - com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - if (tagTemplate_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getTagTemplate()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tagTemplateId_)) { - size += com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @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_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.tagTemplate_ = tagTemplateBuilder_ == null - ? tagTemplate_ - : tagTemplateBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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( - getTagTemplateFieldBuilder().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.SingleFieldBuilderV3< - 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); - } - 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 getTagTemplateFieldBuilder().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.SingleFieldBuilderV3< - com.google.cloud.datacatalog.v1.TagTemplate, com.google.cloud.datacatalog.v1.TagTemplate.Builder, com.google.cloud.datacatalog.v1.TagTemplateOrBuilder> - getTagTemplateFieldBuilder() { - if (tagTemplateBuilder_ == null) { - tagTemplateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - 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_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CreateTagTemplateRequestOrBuilder.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CreateTagTemplateRequestOrBuilder.java deleted file mode 100644 index 79e8142181be..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CreateTagTemplateRequestOrBuilder.java +++ /dev/null @@ -1,86 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/datacatalog.proto - -package com.google.cloud.datacatalog.v1; - -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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CreateTaxonomyRequest.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CreateTaxonomyRequest.java deleted file mode 100644 index 399152b1f82e..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CreateTaxonomyRequest.java +++ /dev/null @@ -1,808 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/policytagmanager.proto - -package com.google.cloud.datacatalog.v1; - -/** - *
- * Request message for
- * [CreateTaxonomy][google.cloud.datacatalog.v1.PolicyTagManager.CreateTaxonomy].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.CreateTaxonomyRequest} - */ -public final class CreateTaxonomyRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.CreateTaxonomyRequest) - CreateTaxonomyRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use CreateTaxonomyRequest.newBuilder() to construct. - private CreateTaxonomyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CreateTaxonomyRequest() { - parent_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new CreateTaxonomyRequest(); - } - - 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.GeneratedMessageV3.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); - } - - 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 taxonomy_ != null; - } - /** - *
-   * 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.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - if (taxonomy_ != null) { - 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.GeneratedMessageV3.isStringEmpty(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - if (taxonomy_ != null) { - 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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @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_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.taxonomy_ = taxonomyBuilder_ == null - ? taxonomy_ - : taxonomyBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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( - getTaxonomyFieldBuilder().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.SingleFieldBuilderV3< - 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); - } - 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 getTaxonomyFieldBuilder().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.SingleFieldBuilderV3< - com.google.cloud.datacatalog.v1.Taxonomy, com.google.cloud.datacatalog.v1.Taxonomy.Builder, com.google.cloud.datacatalog.v1.TaxonomyOrBuilder> - getTaxonomyFieldBuilder() { - if (taxonomyBuilder_ == null) { - taxonomyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - 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_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CreateTaxonomyRequestOrBuilder.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CreateTaxonomyRequestOrBuilder.java deleted file mode 100644 index d0ab0ff65e86..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CreateTaxonomyRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/policytagmanager.proto - -package com.google.cloud.datacatalog.v1; - -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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CrossRegionalSource.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CrossRegionalSource.java deleted file mode 100644 index c3fc078d59d1..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CrossRegionalSource.java +++ /dev/null @@ -1,579 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/policytagmanagerserialization.proto - -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} - */ -public final class CrossRegionalSource extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.CrossRegionalSource) - CrossRegionalSourceOrBuilder { -private static final long serialVersionUID = 0L; - // Use CrossRegionalSource.newBuilder() to construct. - private CrossRegionalSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CrossRegionalSource() { - taxonomy_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new CrossRegionalSource(); - } - - 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(taxonomy_)) { - com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(taxonomy_)) { - size += com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CrossRegionalSourceOrBuilder.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CrossRegionalSourceOrBuilder.java deleted file mode 100644 index 79710282ddb0..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CrossRegionalSourceOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/policytagmanagerserialization.proto - -package com.google.cloud.datacatalog.v1; - -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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DataSource.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DataSource.java deleted file mode 100644 index 3ce07465cb99..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DataSource.java +++ /dev/null @@ -1,1353 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/data_source.proto - -package com.google.cloud.datacatalog.v1; - -/** - *
- * Physical location of an entry.
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.DataSource} - */ -public final class DataSource extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.DataSource) - DataSourceOrBuilder { -private static final long serialVersionUID = 0L; - // Use DataSource.newBuilder() to construct. - private DataSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DataSource() { - service_ = 0; - resource_ = ""; - sourceEntry_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new DataSource(); - } - - 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.GeneratedMessageV3.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), - ; - - /** - *
-     * 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< - Service> 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 final 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.GeneratedMessageV3.isStringEmpty(resource_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, resource_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceEntry_)) { - com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(resource_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, resource_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceEntry_)) { - size += com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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( - getStoragePropertiesFieldBuilder().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.SingleFieldBuilderV3< - 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 getStoragePropertiesFieldBuilder().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.SingleFieldBuilderV3< - com.google.cloud.datacatalog.v1.StorageProperties, com.google.cloud.datacatalog.v1.StorageProperties.Builder, com.google.cloud.datacatalog.v1.StoragePropertiesOrBuilder> - getStoragePropertiesFieldBuilder() { - if (storagePropertiesBuilder_ == null) { - if (!(propertiesCase_ == 4)) { - properties_ = com.google.cloud.datacatalog.v1.StorageProperties.getDefaultInstance(); - } - storagePropertiesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - 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_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DataSourceConnectionSpec.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DataSourceConnectionSpec.java deleted file mode 100644 index d3a40a71ff1d..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DataSourceConnectionSpec.java +++ /dev/null @@ -1,648 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/datacatalog.proto - -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} - */ -public final class DataSourceConnectionSpec extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.DataSourceConnectionSpec) - DataSourceConnectionSpecOrBuilder { -private static final long serialVersionUID = 0L; - // Use DataSourceConnectionSpec.newBuilder() to construct. - private DataSourceConnectionSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DataSourceConnectionSpec() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.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); - } - - 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 bigqueryConnectionSpec_ != null; - } - /** - *
-   * 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 (bigqueryConnectionSpec_ != null) { - output.writeMessage(1, getBigqueryConnectionSpec()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (bigqueryConnectionSpec_ != null) { - 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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @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_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.bigqueryConnectionSpec_ = bigqueryConnectionSpecBuilder_ == null - ? bigqueryConnectionSpec_ - : bigqueryConnectionSpecBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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( - getBigqueryConnectionSpecFieldBuilder().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.SingleFieldBuilderV3< - 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); - } - 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 getBigqueryConnectionSpecFieldBuilder().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.SingleFieldBuilderV3< - com.google.cloud.datacatalog.v1.BigQueryConnectionSpec, com.google.cloud.datacatalog.v1.BigQueryConnectionSpec.Builder, com.google.cloud.datacatalog.v1.BigQueryConnectionSpecOrBuilder> - getBigqueryConnectionSpecFieldBuilder() { - if (bigqueryConnectionSpecBuilder_ == null) { - bigqueryConnectionSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - 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_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DataSourceConnectionSpecOrBuilder.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DataSourceConnectionSpecOrBuilder.java deleted file mode 100644 index 7bdce6bdbaf7..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DataSourceConnectionSpecOrBuilder.java +++ /dev/null @@ -1,36 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/datacatalog.proto - -package com.google.cloud.datacatalog.v1; - -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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DataSourceProto.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DataSourceProto.java deleted file mode 100644 index adbbb7335bfe..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DataSourceProto.java +++ /dev/null @@ -1,81 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/data_source.proto - -package com.google.cloud.datacatalog.v1; - -public final class DataSourceProto { - private 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.GeneratedMessageV3.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.GeneratedMessageV3.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\"\235\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\032\n\014source_entry\030\003 \001(\tB\004\342A\001\003\022L\n\022" + - "storage_properties\030\004 \001(\0132..google.cloud." + - "datacatalog.v1.StoragePropertiesH\000\"C\n\007Se" + - "rvice\022\027\n\023SERVICE_UNSPECIFIED\020\000\022\021\n\rCLOUD_" + - "STORAGE\020\001\022\014\n\010BIGQUERY\020\002B\014\n\nproperties\"<\n" + - "\021StorageProperties\022\024\n\014file_pattern\030\001 \003(\t" + - "\022\021\n\tfile_type\030\002 \001(\tB\327\001\n\037com.google.cloud" + - ".datacatalog.v1B\017DataSourceProtoP\001ZAclou" + - "d.google.com/go/datacatalog/apiv1/dataca" + - "talogpb;datacatalogpb\370\001\001\252\002\033Google.Cloud." + - "DataCatalog.V1\312\002\033Google\\Cloud\\DataCatalo" + - "g\\V1\352\002\036Google::Cloud::DataCatalog::V1b\006p" + - "roto3" - }; - 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().getMessageTypes().get(0); - internal_static_google_cloud_datacatalog_v1_DataSource_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.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().getMessageTypes().get(1); - internal_static_google_cloud_datacatalog_v1_StorageProperties_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_StorageProperties_descriptor, - new java.lang.String[] { "FilePattern", "FileType", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DatabaseTableSpec.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DatabaseTableSpec.java deleted file mode 100644 index c2ebf9c0d14e..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DatabaseTableSpec.java +++ /dev/null @@ -1,2415 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/datacatalog.proto - -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} - */ -public final class DatabaseTableSpec extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.DatabaseTableSpec) - DatabaseTableSpecOrBuilder { -private static final long serialVersionUID = 0L; - // Use DatabaseTableSpec.newBuilder() to construct. - private DatabaseTableSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DatabaseTableSpec() { - type_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new DatabaseTableSpec(); - } - - 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.GeneratedMessageV3.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), - ; - - /** - *
-     * 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< - TableType> 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 final 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.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.DatabaseTableSpec.DatabaseViewSpec) - DatabaseViewSpecOrBuilder { - private static final long serialVersionUID = 0L; - // Use DatabaseViewSpec.newBuilder() to construct. - private DatabaseViewSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DatabaseViewSpec() { - viewType_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new DatabaseViewSpec(); - } - - 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.GeneratedMessageV3.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), - ; - - /** - *
-       * 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< - ViewType> 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 final 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.GeneratedMessageV3.writeString(output, 2, sourceDefinition_); - } - if (sourceDefinitionCase_ == 3) { - com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.computeStringSize(2, sourceDefinition_); - } - if (sourceDefinitionCase_ == 3) { - size += com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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; - } - - } - - 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 dataplexTable_ != null; - } - /** - *
-   * 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 aplies 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 databaseViewSpec_ != null; - } - /** - *
-   * Spec what aplies 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 aplies 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 (dataplexTable_ != null) { - output.writeMessage(2, getDataplexTable()); - } - if (databaseViewSpec_ != null) { - 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 (dataplexTable_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getDataplexTable()); - } - if (databaseViewSpec_ != null) { - 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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @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_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.dataplexTable_ = dataplexTableBuilder_ == null - ? dataplexTable_ - : dataplexTableBuilder_.build(); - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.databaseViewSpec_ = databaseViewSpecBuilder_ == null - ? databaseViewSpec_ - : databaseViewSpecBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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( - getDataplexTableFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - input.readMessage( - getDatabaseViewSpecFieldBuilder().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.SingleFieldBuilderV3< - 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); - } - 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 getDataplexTableFieldBuilder().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.SingleFieldBuilderV3< - com.google.cloud.datacatalog.v1.DataplexTableSpec, com.google.cloud.datacatalog.v1.DataplexTableSpec.Builder, com.google.cloud.datacatalog.v1.DataplexTableSpecOrBuilder> - getDataplexTableFieldBuilder() { - if (dataplexTableBuilder_ == null) { - dataplexTableBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - 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.SingleFieldBuilderV3< - 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 aplies 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 aplies 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 aplies 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 aplies 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 aplies 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); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-     * Spec what aplies 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 aplies 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 getDatabaseViewSpecFieldBuilder().getBuilder(); - } - /** - *
-     * Spec what aplies 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 aplies 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.SingleFieldBuilderV3< - com.google.cloud.datacatalog.v1.DatabaseTableSpec.DatabaseViewSpec, com.google.cloud.datacatalog.v1.DatabaseTableSpec.DatabaseViewSpec.Builder, com.google.cloud.datacatalog.v1.DatabaseTableSpec.DatabaseViewSpecOrBuilder> - getDatabaseViewSpecFieldBuilder() { - if (databaseViewSpecBuilder_ == null) { - databaseViewSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - 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_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DatabaseTableSpecOrBuilder.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DatabaseTableSpecOrBuilder.java deleted file mode 100644 index 86c8f233c95d..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DatabaseTableSpecOrBuilder.java +++ /dev/null @@ -1,88 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/datacatalog.proto - -package com.google.cloud.datacatalog.v1; - -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 aplies 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 aplies 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 aplies 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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/Datacatalog.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/Datacatalog.java deleted file mode 100644 index 311357013a18..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/Datacatalog.java +++ /dev/null @@ -1,1352 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/datacatalog.proto - -package com.google.cloud.datacatalog.v1; - -public final class Datacatalog { - private 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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1_ModelSpec_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1_BusinessContext_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1_ModifyEntryContactsRequest_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(goo" + - "gle/cloud/datacatalog/v1/common.proto\032-g" + - "oogle/cloud/datacatalog/v1/data_source.p" + - "roto\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/clou" + - "d/datacatalog/v1/search.proto\032,google/cl" + - "oud/datacatalog/v1/table_spec.proto\032&goo" + - "gle/cloud/datacatalog/v1/tags.proto\032,goo" + - "gle/cloud/datacatalog/v1/timestamps.prot" + - "o\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/emp" + - "ty.proto\032 google/protobuf/field_mask.pro" + - "to\032\027google/rpc/status.proto\"\247\003\n\024SearchCa" + - "talogRequest\022L\n\005scope\030\006 \001(\01327.google.clo" + - "ud.datacatalog.v1.SearchCatalogRequest.S" + - "copeB\004\342A\001\002\022\023\n\005query\030\001 \001(\tB\004\342A\001\001\022\021\n\tpage_" + - "size\030\002 \001(\005\022\030\n\npage_token\030\003 \001(\tB\004\342A\001\001\022\020\n\010" + - "order_by\030\005 \001(\t\022\032\n\014admin_search\030\021 \001(\010B\004\342A" + - "\001\001\032\320\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_gc" + - "p_public_datasets\030\007 \001(\010\022\"\n\024restricted_lo" + - "cations\030\020 \003(\tB\004\342A\001\001\022\032\n\014starred_only\030\022 \001(" + - "\010B\004\342A\001\001\022,\n\034include_public_tag_templates\030" + - "\023 \001(\010B\006\030\001\342A\001\001\"\234\001\n\025SearchCatalogResponse\022" + - "A\n\007results\030\001 \003(\01320.google.cloud.datacata" + - "log.v1.SearchCatalogResult\022\022\n\ntotal_size" + - "\030\002 \001(\005\022\027\n\017next_page_token\030\003 \001(\t\022\023\n\013unrea" + - "chable\030\006 \003(\t\"\265\001\n\027CreateEntryGroupRequest" + - "\022>\n\006parent\030\001 \001(\tB.\342A\001\002\372A\'\022%datacatalog.g" + - "oogleapis.com/EntryGroup\022\034\n\016entry_group_" + - "id\030\003 \001(\tB\004\342A\001\002\022<\n\013entry_group\030\002 \001(\0132\'.go" + - "ogle.cloud.datacatalog.v1.EntryGroup\"\216\001\n" + - "\027UpdateEntryGroupRequest\022B\n\013entry_group\030" + - "\001 \001(\0132\'.google.cloud.datacatalog.v1.Entr" + - "yGroupB\004\342A\001\002\022/\n\013update_mask\030\002 \001(\0132\032.goog" + - "le.protobuf.FieldMask\"\203\001\n\024GetEntryGroupR" + - "equest\022<\n\004name\030\001 \001(\tB.\342A\001\002\372A\'\n%datacatal" + - "og.googleapis.com/EntryGroup\022-\n\tread_mas" + - "k\030\002 \001(\0132\032.google.protobuf.FieldMask\"l\n\027D" + - "eleteEntryGroupRequest\022<\n\004name\030\001 \001(\tB.\342A" + - "\001\002\372A\'\n%datacatalog.googleapis.com/EntryG" + - "roup\022\023\n\005force\030\002 \001(\010B\004\342A\001\001\"\213\001\n\026ListEntryG" + - "roupsRequest\022>\n\006parent\030\001 \001(\tB.\342A\001\002\372A\'\022%d" + - "atacatalog.googleapis.com/EntryGroup\022\027\n\t" + - "page_size\030\002 \001(\005B\004\342A\001\001\022\030\n\npage_token\030\003 \001(" + - "\tB\004\342A\001\001\"q\n\027ListEntryGroupsResponse\022=\n\014en" + - "try_groups\030\001 \003(\0132\'.google.cloud.datacata" + - "log.v1.EntryGroup\022\027\n\017next_page_token\030\002 \001" + - "(\t\"\245\001\n\022CreateEntryRequest\022>\n\006parent\030\001 \001(" + - "\tB.\342A\001\002\372A\'\n%datacatalog.googleapis.com/E" + - "ntryGroup\022\026\n\010entry_id\030\003 \001(\tB\004\342A\001\002\0227\n\005ent" + - "ry\030\002 \001(\0132\".google.cloud.datacatalog.v1.E" + - "ntryB\004\342A\001\002\"~\n\022UpdateEntryRequest\0227\n\005entr" + - "y\030\001 \001(\0132\".google.cloud.datacatalog.v1.En" + - "tryB\004\342A\001\002\022/\n\013update_mask\030\002 \001(\0132\032.google." + - "protobuf.FieldMask\"M\n\022DeleteEntryRequest" + - "\0227\n\004name\030\001 \001(\tB)\342A\001\002\372A\"\n datacatalog.goo" + - "gleapis.com/Entry\"J\n\017GetEntryRequest\0227\n\004" + - "name\030\001 \001(\tB)\342A\001\002\372A\"\n datacatalog.googlea" + - "pis.com/Entry\"\231\001\n\022LookupEntryRequest\022\031\n\017" + - "linked_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\013ta" + - "rget_name\"\252\020\n\005Entry\022<\n\004name\030\001 \001(\tB.\342A\001\003\372" + - "A\'\n%datacatalog.googleapis.com/EntryGrou" + - "p\022\027\n\017linked_resource\030\t \001(\t\022\034\n\024fully_qual" + - "ified_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\022P\n\021integrated_sy" + - "stem\030\021 \001(\0162-.google.cloud.datacatalog.v1" + - ".IntegratedSystemB\004\342A\001\003H\001\022\037\n\025user_specif" + - "ied_system\030\022 \001(\tH\001\022V\n\030sql_database_syste" + - "m_spec\030\' \001(\01322.google.cloud.datacatalog." + - "v1.SqlDatabaseSystemSpecH\002\022K\n\022looker_sys" + - "tem_spec\030( \001(\0132-.google.cloud.datacatalo" + - "g.v1.LookerSystemSpecH\002\022Z\n\032cloud_bigtabl" + - "e_system_spec\030) \001(\01324.google.cloud.datac" + - "atalog.v1.CloudBigtableSystemSpecH\002\022G\n\020g" + - "cs_fileset_spec\030\006 \001(\0132+.google.cloud.dat" + - "acatalog.v1.GcsFilesetSpecH\003\022S\n\023bigquery" + - "_table_spec\030\014 \001(\0132..google.cloud.datacat" + - "alog.v1.BigQueryTableSpecB\004\342A\001\003H\003\022`\n\032big" + - "query_date_sharded_spec\030\017 \001(\01324.google.c" + - "loud.datacatalog.v1.BigQueryDateShardedS" + - "pecB\004\342A\001\003H\003\022M\n\023database_table_spec\030\030 \001(\013" + - "2..google.cloud.datacatalog.v1.DatabaseT" + - "ableSpecH\004\022\\\n\033data_source_connection_spe" + - "c\030\033 \001(\01325.google.cloud.datacatalog.v1.Da" + - "taSourceConnectionSpecH\004\022@\n\014routine_spec" + - "\030\034 \001(\0132(.google.cloud.datacatalog.v1.Rou" + - "tineSpecH\004\022@\n\014dataset_spec\030 \001(\0132(.googl" + - "e.cloud.datacatalog.v1.DatasetSpecH\004\022@\n\014" + - "fileset_spec\030! \001(\0132(.google.cloud.dataca" + - "talog.v1.FilesetSpecH\004\022@\n\014service_spec\030*" + - " \001(\0132(.google.cloud.datacatalog.v1.Servi" + - "ceSpecH\004\022<\n\nmodel_spec\030+ \001(\0132&.google.cl" + - "oud.datacatalog.v1.ModelSpecH\004\022\024\n\014displa" + - "y_name\030\003 \001(\t\022\023\n\013description\030\004 \001(\t\022F\n\020bus" + - "iness_context\030% \001(\0132,.google.cloud.datac" + - "atalog.v1.BusinessContext\0223\n\006schema\030\005 \001(" + - "\0132#.google.cloud.datacatalog.v1.Schema\022O" + - "\n\030source_system_timestamps\030\007 \001(\0132-.googl" + - "e.cloud.datacatalog.v1.SystemTimestamps\022" + - ">\n\014usage_signal\030\r \001(\0132(.google.cloud.dat" + - "acatalog.v1.UsageSignal\022>\n\006labels\030\016 \003(\0132" + - "..google.cloud.datacatalog.v1.Entry.Labe" + - "lsEntry\022B\n\013data_source\030\024 \001(\0132\'.google.cl" + - "oud.datacatalog.v1.DataSourceB\004\342A\001\003\022L\n\020p" + - "ersonal_details\030\032 \001(\0132,.google.cloud.dat" + - "acatalog.v1.PersonalDetailsB\004\342A\001\003\032-\n\013Lab" + - "elsEntry\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\022" + - "Qprojects/{project}/locations/{location}" + - "/entryGroups/{entry_group}/entries/{entr" + - "y}B\014\n\nentry_typeB\010\n\006systemB\r\n\013system_spe" + - "cB\013\n\ttype_specB\006\n\004spec\"\314\004\n\021DatabaseTable" + - "Spec\022F\n\004type\030\001 \001(\01628.google.cloud.dataca" + - "talog.v1.DatabaseTableSpec.TableType\022L\n\016" + - "dataplex_table\030\002 \001(\0132..google.cloud.data" + - "catalog.v1.DataplexTableSpecB\004\342A\001\003\022[\n\022da" + - "tabase_view_spec\030\003 \001(\0132?.google.cloud.da" + - "tacatalog.v1.DatabaseTableSpec.DatabaseV" + - "iewSpec\032\200\002\n\020DatabaseViewSpec\022[\n\tview_typ" + - "e\030\001 \001(\0162H.google.cloud.datacatalog.v1.Da" + - "tabaseTableSpec.DatabaseViewSpec.ViewTyp" + - "e\022\024\n\nbase_table\030\002 \001(\tH\000\022\023\n\tsql_query\030\003 \001" + - "(\tH\000\"O\n\010ViewType\022\031\n\025VIEW_TYPE_UNSPECIFIE" + - "D\020\000\022\021\n\rSTANDARD_VIEW\020\001\022\025\n\021MATERIALIZED_V" + - "IEW\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.datacatalo" + - "g.v1.DataplexFilesetSpec\"q\n\030DataSourceCo" + - "nnectionSpec\022U\n\030bigquery_connection_spec" + - "\030\001 \001(\01323.google.cloud.datacatalog.v1.Big" + - "QueryConnectionSpec\"\303\004\n\013RoutineSpec\022J\n\014r" + - "outine_type\030\001 \001(\01624.google.cloud.datacat" + - "alog.v1.RoutineSpec.RoutineType\022\020\n\010langu" + - "age\030\002 \001(\t\022L\n\021routine_arguments\030\003 \003(\01321.g" + - "oogle.cloud.datacatalog.v1.RoutineSpec.A" + - "rgument\022\023\n\013return_type\030\004 \001(\t\022\027\n\017definiti" + - "on_body\030\005 \001(\t\022Q\n\025bigquery_routine_spec\030\006" + - " \001(\01320.google.cloud.datacatalog.v1.BigQu" + - "eryRoutineSpecH\000\032\246\001\n\010Argument\022\014\n\004name\030\001 " + - "\001(\t\022D\n\004mode\030\002 \001(\01626.google.cloud.datacat" + - "alog.v1.RoutineSpec.Argument.Mode\022\014\n\004typ" + - "e\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_spe" + - "c\"k\n\013DatasetSpec\022M\n\023vertex_dataset_spec\030" + - "\002 \001(\0132..google.cloud.datacatalog.v1.Vert" + - "exDatasetSpecH\000B\r\n\013system_spec\"\\\n\025SqlDat" + - "abaseSystemSpec\022\022\n\nsql_engine\030\001 \001(\t\022\030\n\020d" + - "atabase_version\030\002 \001(\t\022\025\n\rinstance_host\030\003" + - " \001(\t\"\312\001\n\020LookerSystemSpec\022\032\n\022parent_inst" + - "ance_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\031" + - "parent_model_display_name\030\004 \001(\t\022\026\n\016paren" + - "t_view_id\030\005 \001(\t\022 \n\030parent_view_display_n" + - "ame\030\006 \001(\t\"8\n\027CloudBigtableSystemSpec\022\035\n\025" + - "instance_display_name\030\001 \001(\t\"\375\001\n\031CloudBig" + - "tableInstanceSpec\022u\n\034cloud_bigtable_clus" + - "ter_specs\030\001 \003(\0132O.google.cloud.datacatal" + - "og.v1.CloudBigtableInstanceSpec.CloudBig" + - "tableClusterSpec\032i\n\030CloudBigtableCluster" + - "Spec\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_ins" + - "tance_spec\030\001 \001(\01326.google.cloud.datacata" + - "log.v1.CloudBigtableInstanceSpecH\000B\r\n\013sy" + - "stem_spec\"\350\001\n\025VertexModelSourceInfo\022W\n\013s" + - "ource_type\030\001 \001(\0162B.google.cloud.datacata" + - "log.v1.VertexModelSourceInfo.ModelSource" + - "Type\022\014\n\004copy\030\002 \001(\010\"h\n\017ModelSourceType\022!\n" + - "\035MODEL_SOURCE_TYPE_UNSPECIFIED\020\000\022\n\n\006AUTO" + - "ML\020\001\022\n\n\006CUSTOM\020\002\022\010\n\004BQML\020\003\022\020\n\014MODEL_GARD" + - "EN\020\004\"\316\001\n\017VertexModelSpec\022\022\n\nversion_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_sourc" + - "e_info\030\004 \001(\01322.google.cloud.datacatalog." + - "v1.VertexModelSourceInfo\022\033\n\023container_im" + - "age_uri\030\005 \001(\t\"\344\002\n\021VertexDatasetSpec\022\027\n\017d" + - "ata_item_count\030\001 \001(\003\022J\n\tdata_type\030\002 \001(\0162" + - "7.google.cloud.datacatalog.v1.VertexData" + - "setSpec.DataType\"\351\001\n\010DataType\022\031\n\025DATA_TY" + - "PE_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_VISIO" + - "N\020\n\022\036\n\032ENTERPRISE_KNOWLEDGE_GRAPH\020\013\022\017\n\013T" + - "EXT_PROMPT\020\014\"e\n\tModelSpec\022I\n\021vertex_mode" + - "l_spec\030\001 \001(\0132,.google.cloud.datacatalog." + - "v1.VertexModelSpecH\000B\r\n\013system_spec\"\216\001\n\017" + - "BusinessContext\022B\n\016entry_overview\030\001 \001(\0132" + - "*.google.cloud.datacatalog.v1.EntryOverv" + - "iew\0227\n\010contacts\030\002 \001(\0132%.google.cloud.dat" + - "acatalog.v1.Contacts\"!\n\rEntryOverview\022\020\n" + - "\010overview\030\001 \001(\t\"v\n\010Contacts\022<\n\006people\030\001 " + - "\003(\0132,.google.cloud.datacatalog.v1.Contac" + - "ts.Person\032,\n\006Person\022\023\n\013designation\030\001 \001(\t" + - "\022\r\n\005email\030\002 \001(\t\"\212\002\n\nEntryGroup\022\014\n\004name\030\001" + - " \001(\t\022\024\n\014display_name\030\002 \001(\t\022\023\n\013descriptio" + - "n\030\003 \001(\t\022T\n\027data_catalog_timestamps\030\004 \001(\013" + - "2-.google.cloud.datacatalog.v1.SystemTim" + - "estampsB\004\342A\001\003:m\352Aj\n%datacatalog.googleap" + - "is.com/EntryGroup\022Aprojects/{project}/lo" + - "cations/{location}/entryGroups/{entry_gr" + - "oup}\"\300\001\n\030CreateTagTemplateRequest\022?\n\006par" + - "ent\030\001 \001(\tB/\342A\001\002\372A(\022&datacatalog.googleap" + - "is.com/TagTemplate\022\035\n\017tag_template_id\030\003 " + - "\001(\tB\004\342A\001\002\022D\n\014tag_template\030\002 \001(\0132(.google" + - ".cloud.datacatalog.v1.TagTemplateB\004\342A\001\002\"" + - "V\n\025GetTagTemplateRequest\022=\n\004name\030\001 \001(\tB/" + - "\342A\001\002\372A(\n&datacatalog.googleapis.com/TagT" + - "emplate\"\221\001\n\030UpdateTagTemplateRequest\022D\n\014" + - "tag_template\030\001 \001(\0132(.google.cloud.dataca" + - "talog.v1.TagTemplateB\004\342A\001\002\022/\n\013update_mas" + - "k\030\002 \001(\0132\032.google.protobuf.FieldMask\"n\n\030D" + - "eleteTagTemplateRequest\022=\n\004name\030\001 \001(\tB/\342" + - "A\001\002\372A(\n&datacatalog.googleapis.com/TagTe" + - "mplate\022\023\n\005force\030\002 \001(\010B\004\342A\001\002\"\200\001\n\020CreateTa" + - "gRequest\0227\n\006parent\030\001 \001(\tB\'\342A\001\002\372A \022\036datac" + - "atalog.googleapis.com/Tag\0223\n\003tag\030\002 \001(\0132 " + - ".google.cloud.datacatalog.v1.TagB\004\342A\001\002\"x" + - "\n\020UpdateTagRequest\0223\n\003tag\030\001 \001(\0132 .google" + - ".cloud.datacatalog.v1.TagB\004\342A\001\002\022/\n\013updat" + - "e_mask\030\002 \001(\0132\032.google.protobuf.FieldMask" + - "\"I\n\020DeleteTagRequest\0225\n\004name\030\001 \001(\tB\'\342A\001\002" + - "\372A \022\036datacatalog.googleapis.com/Tag\"\326\001\n\035" + - "CreateTagTemplateFieldRequest\022?\n\006parent\030" + - "\001 \001(\tB/\342A\001\002\372A(\n&datacatalog.googleapis.c" + - "om/TagTemplate\022#\n\025tag_template_field_id\030" + - "\002 \001(\tB\004\342A\001\002\022O\n\022tag_template_field\030\003 \001(\0132" + - "-.google.cloud.datacatalog.v1.TagTemplat" + - "eFieldB\004\342A\001\002\"\353\001\n\035UpdateTagTemplateFieldR" + - "equest\022B\n\004name\030\001 \001(\tB4\342A\001\002\372A-\n+datacatal" + - "og.googleapis.com/TagTemplateField\022O\n\022ta" + - "g_template_field\030\002 \001(\0132-.google.cloud.da" + - "tacatalog.v1.TagTemplateFieldB\004\342A\001\002\0225\n\013u" + - "pdate_mask\030\003 \001(\0132\032.google.protobuf.Field" + - "MaskB\004\342A\001\001\"\214\001\n\035RenameTagTemplateFieldReq" + - "uest\022B\n\004name\030\001 \001(\tB4\342A\001\002\372A-\n+datacatalog" + - ".googleapis.com/TagTemplateField\022\'\n\031new_" + - "tag_template_field_id\030\002 \001(\tB\004\342A\001\002\"\240\001\n&Re" + - "nameTagTemplateFieldEnumValueRequest\022K\n\004" + - "name\030\001 \001(\tB=\342A\001\002\372A6\n4datacatalog.googlea" + - "pis.com/TagTemplateFieldEnumValue\022)\n\033new" + - "_enum_value_display_name\030\002 \001(\tB\004\342A\001\002\"x\n\035" + - "DeleteTagTemplateFieldRequest\022B\n\004name\030\001 " + - "\001(\tB4\342A\001\002\372A-\n+datacatalog.googleapis.com" + - "/TagTemplateField\022\023\n\005force\030\002 \001(\010B\004\342A\001\002\"q" + - "\n\017ListTagsRequest\0227\n\006parent\030\001 \001(\tB\'\342A\001\002\372" + - "A \022\036datacatalog.googleapis.com/Tag\022\021\n\tpa" + - "ge_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"[\n\020Lis" + - "tTagsResponse\022.\n\004tags\030\001 \003(\0132 .google.clo" + - "ud.datacatalog.v1.Tag\022\027\n\017next_page_token" + - "\030\002 \001(\t\"\346\001\n\024ReconcileTagsRequest\0229\n\006paren" + - "t\030\001 \001(\tB)\342A\001\002\372A\"\n datacatalog.googleapis" + - ".com/Entry\022E\n\014tag_template\030\002 \001(\tB/\342A\001\002\372A" + - "(\n&datacatalog.googleapis.com/TagTemplat" + - "e\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\025Reconci" + - "leTagsMetadata\022U\n\005state\030\001 \001(\0162F.google.c" + - "loud.datacatalog.v1.ReconcileTagsMetadat" + - "a.ReconciliationState\022N\n\006errors\030\002 \003(\0132>." + - "google.cloud.datacatalog.v1.ReconcileTag" + - "sMetadata.ErrorsEntry\032A\n\013ErrorsEntry\022\013\n\003" + - "key\030\001 \001(\t\022!\n\005value\030\002 \001(\0132\022.google.rpc.St" + - "atus:\0028\001\"\217\001\n\023ReconciliationState\022$\n RECO" + - "NCILIATION_STATE_UNSPECIFIED\020\000\022\031\n\025RECONC" + - "ILIATION_QUEUED\020\001\022\036\n\032RECONCILIATION_IN_P" + - "ROGRESS\020\002\022\027\n\023RECONCILIATION_DONE\020\003\"\252\001\n\022L" + - "istEntriesRequest\022>\n\006parent\030\001 \001(\tB.\342A\001\002\372" + - "A\'\n%datacatalog.googleapis.com/EntryGrou" + - "p\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t" + - "\022-\n\tread_mask\030\004 \001(\0132\032.google.protobuf.Fi" + - "eldMask\"c\n\023ListEntriesResponse\0223\n\007entrie" + - "s\030\001 \003(\0132\".google.cloud.datacatalog.v1.En" + - "try\022\027\n\017next_page_token\030\002 \001(\t\"K\n\020StarEntr" + - "yRequest\0227\n\004name\030\001 \001(\tB)\342A\001\002\372A\"\n datacat" + - "alog.googleapis.com/Entry\"\023\n\021StarEntryRe" + - "sponse\"M\n\022UnstarEntryRequest\0227\n\004name\030\001 \001" + - "(\tB)\342A\001\002\372A\"\n datacatalog.googleapis.com/" + - "Entry\"\025\n\023UnstarEntryResponse\"\214\001\n\024ImportE" + - "ntriesRequest\0229\n\006parent\030\001 \001(\tB)\342A\001\002\372A\"\022 " + - "datacatalog.googleapis.com/Entry\022\031\n\017gcs_" + - "bucket_path\030\002 \001(\tH\000\022\024\n\006job_id\030\003 \001(\tB\004\342A\001" + - "\001B\010\n\006source\"\225\001\n\025ImportEntriesResponse\022#\n" + - "\026upserted_entries_count\030\005 \001(\003H\000\210\001\001\022\"\n\025de" + - "leted_entries_count\030\006 \001(\003H\001\210\001\001B\031\n\027_upser" + - "ted_entries_countB\030\n\026_deleted_entries_co" + - "unt\"\210\002\n\025ImportEntriesMetadata\022M\n\005state\030\001" + - " \001(\0162>.google.cloud.datacatalog.v1.Impor" + - "tEntriesMetadata.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\rIMPORT_" + - "QUEUED\020\001\022\026\n\022IMPORT_IN_PROGRESS\020\002\022\017\n\013IMPO" + - "RT_DONE\020\003\022\023\n\017IMPORT_OBSOLETE\020\004\"\237\001\n\032Modif" + - "yEntryOverviewRequest\0227\n\004name\030\001 \001(\tB)\342A\001" + - "\002\372A\"\n datacatalog.googleapis.com/Entry\022H" + - "\n\016entry_overview\030\002 \001(\0132*.google.cloud.da" + - "tacatalog.v1.EntryOverviewB\004\342A\001\002\"\224\001\n\032Mod" + - "ifyEntryContactsRequest\0227\n\004name\030\001 \001(\tB)\342" + - "A\001\002\372A\"\n datacatalog.googleapis.com/Entry" + - "\022=\n\010contacts\030\002 \001(\0132%.google.cloud.dataca" + - "talog.v1.ContactsB\004\342A\001\002*\373\001\n\tEntryType\022\032\n" + - "\026ENTRY_TYPE_UNSPECIFIED\020\000\022\t\n\005TABLE\020\002\022\t\n\005" + - "MODEL\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\004Z" + - "ONE\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\0222\300;" + - "\n\013DataCatalog\022\243\001\n\rSearchCatalog\0221.google" + - ".cloud.datacatalog.v1.SearchCatalogReque" + - "st\0322.google.cloud.datacatalog.v1.SearchC" + - "atalogResponse\"+\332A\013scope,query\202\323\344\223\002\027\"\022/v" + - "1/catalog:search:\001*\022\333\001\n\020CreateEntryGroup" + - "\0224.google.cloud.datacatalog.v1.CreateEnt" + - "ryGroupRequest\032\'.google.cloud.datacatalo" + - "g.v1.EntryGroup\"h\332A!parent,entry_group_i" + - "d,entry_group\202\323\344\223\002>\"//v1/{parent=project" + - "s/*/locations/*}/entryGroups:\013entry_grou" + - "p\022\274\001\n\rGetEntryGroup\0221.google.cloud.datac" + - "atalog.v1.GetEntryGroupRequest\032\'.google." + - "cloud.datacatalog.v1.EntryGroup\"O\332A\004name" + - "\332A\016name,read_mask\202\323\344\223\0021\022//v1/{name=proje" + - "cts/*/locations/*/entryGroups/*}\022\353\001\n\020Upd" + - "ateEntryGroup\0224.google.cloud.datacatalog" + - ".v1.UpdateEntryGroupRequest\032\'.google.clo" + - "ud.datacatalog.v1.EntryGroup\"x\332A\013entry_g" + - "roup\332A\027entry_group,update_mask\202\323\344\223\002J2;/v" + - "1/{entry_group.name=projects/*/locations" + - "/*/entryGroups/*}:\013entry_group\022\240\001\n\020Delet" + - "eEntryGroup\0224.google.cloud.datacatalog.v" + - "1.DeleteEntryGroupRequest\032\026.google.proto" + - "buf.Empty\">\332A\004name\202\323\344\223\0021*//v1/{name=proj" + - "ects/*/locations/*/entryGroups/*}\022\276\001\n\017Li" + - "stEntryGroups\0223.google.cloud.datacatalog" + - ".v1.ListEntryGroupsRequest\0324.google.clou" + - "d.datacatalog.v1.ListEntryGroupsResponse" + - "\"@\332A\006parent\202\323\344\223\0021\022//v1/{parent=projects/" + - "*/locations/*}/entryGroups\022\304\001\n\013CreateEnt" + - "ry\022/.google.cloud.datacatalog.v1.CreateE" + - "ntryRequest\032\".google.cloud.datacatalog.v" + - "1.Entry\"`\332A\025parent,entry_id,entry\202\323\344\223\002B\"" + - "9/v1/{parent=projects/*/locations/*/entr" + - "yGroups/*}/entries:\005entry\022\316\001\n\013UpdateEntr" + - "y\022/.google.cloud.datacatalog.v1.UpdateEn" + - "tryRequest\032\".google.cloud.datacatalog.v1" + - ".Entry\"j\332A\005entry\332A\021entry,update_mask\202\323\344\223" + - "\002H2?/v1/{entry.name=projects/*/locations" + - "/*/entryGroups/*/entries/*}:\005entry\022\240\001\n\013D" + - "eleteEntry\022/.google.cloud.datacatalog.v1" + - ".DeleteEntryRequest\032\026.google.protobuf.Em" + - "pty\"H\332A\004name\202\323\344\223\002;*9/v1/{name=projects/*" + - "/locations/*/entryGroups/*/entries/*}\022\246\001" + - "\n\010GetEntry\022,.google.cloud.datacatalog.v1" + - ".GetEntryRequest\032\".google.cloud.datacata" + - "log.v1.Entry\"H\332A\004name\202\323\344\223\002;\0229/v1/{name=p" + - "rojects/*/locations/*/entryGroups/*/entr" + - "ies/*}\022~\n\013LookupEntry\022/.google.cloud.dat" + - "acatalog.v1.LookupEntryRequest\032\".google." + - "cloud.datacatalog.v1.Entry\"\032\202\323\344\223\002\024\022\022/v1/" + - "entries:lookup\022\274\001\n\013ListEntries\022/.google." + - "cloud.datacatalog.v1.ListEntriesRequest\032" + - "0.google.cloud.datacatalog.v1.ListEntrie" + - "sResponse\"J\332A\006parent\202\323\344\223\002;\0229/v1/{parent=" + - "projects/*/locations/*/entryGroups/*}/en" + - "tries\022\324\001\n\023ModifyEntryOverview\0227.google.c" + - "loud.datacatalog.v1.ModifyEntryOverviewR" + - "equest\032*.google.cloud.datacatalog.v1.Ent" + - "ryOverview\"X\202\323\344\223\002R\"M/v1/{name=projects/*" + - "/locations/*/entryGroups/*/entries/*}:mo" + - "difyEntryOverview:\001*\022\317\001\n\023ModifyEntryCont" + - "acts\0227.google.cloud.datacatalog.v1.Modif" + - "yEntryContactsRequest\032%.google.cloud.dat" + - "acatalog.v1.Contacts\"X\202\323\344\223\002R\"M/v1/{name=" + - "projects/*/locations/*/entryGroups/*/ent" + - "ries/*}:modifyEntryContacts:\001*\022\342\001\n\021Creat" + - "eTagTemplate\0225.google.cloud.datacatalog." + - "v1.CreateTagTemplateRequest\032(.google.clo" + - "ud.datacatalog.v1.TagTemplate\"l\332A#parent" + - ",tag_template_id,tag_template\202\323\344\223\002@\"0/v1" + - "/{parent=projects/*/locations/*}/tagTemp" + - "lates:\014tag_template\022\257\001\n\016GetTagTemplate\0222" + - ".google.cloud.datacatalog.v1.GetTagTempl" + - "ateRequest\032(.google.cloud.datacatalog.v1", - ".TagTemplate\"?\332A\004name\202\323\344\223\0022\0220/v1/{name=p" + - "rojects/*/locations/*/tagTemplates/*}\022\363\001" + - "\n\021UpdateTagTemplate\0225.google.cloud.datac" + - "atalog.v1.UpdateTagTemplateRequest\032(.goo" + - "gle.cloud.datacatalog.v1.TagTemplate\"}\332A" + - "\014tag_template\332A\030tag_template,update_mask" + - "\202\323\344\223\002M2=/v1/{tag_template.name=projects/" + - "*/locations/*/tagTemplates/*}:\014tag_templ" + - "ate\022\251\001\n\021DeleteTagTemplate\0225.google.cloud" + - ".datacatalog.v1.DeleteTagTemplateRequest" + - "\032\026.google.protobuf.Empty\"E\332A\nname,force\202" + - "\323\344\223\0022*0/v1/{name=projects/*/locations/*/" + - "tagTemplates/*}\022\215\002\n\026CreateTagTemplateFie" + - "ld\022:.google.cloud.datacatalog.v1.CreateT" + - "agTemplateFieldRequest\032-.google.cloud.da" + - "tacatalog.v1.TagTemplateField\"\207\001\332A/paren" + - "t,tag_template_field_id,tag_template_fie" + - "ld\202\323\344\223\002O\"9/v1/{parent=projects/*/locatio" + - "ns/*/tagTemplates/*}/fields:\022tag_templat" + - "e_field\022\233\002\n\026UpdateTagTemplateField\022:.goo" + - "gle.cloud.datacatalog.v1.UpdateTagTempla" + - "teFieldRequest\032-.google.cloud.datacatalo" + - "g.v1.TagTemplateField\"\225\001\332A\027name,tag_temp" + - "late_field\332A#name,tag_template_field,upd" + - "ate_mask\202\323\344\223\002O29/v1/{name=projects/*/loc" + - "ations/*/tagTemplates/*/fields/*}:\022tag_t" + - "emplate_field\022\361\001\n\026RenameTagTemplateField" + - "\022:.google.cloud.datacatalog.v1.RenameTag" + - "TemplateFieldRequest\032-.google.cloud.data" + - "catalog.v1.TagTemplateField\"l\332A\036name,new" + - "_tag_template_field_id\202\323\344\223\002E\"@/v1/{name=" + - "projects/*/locations/*/tagTemplates/*/fi" + - "elds/*}:rename:\001*\022\222\002\n\037RenameTagTemplateF" + - "ieldEnumValue\022C.google.cloud.datacatalog" + - ".v1.RenameTagTemplateFieldEnumValueReque" + - "st\032-.google.cloud.datacatalog.v1.TagTemp" + - "lateField\"{\332A name,new_enum_value_displa" + - "y_name\202\323\344\223\002R\"M/v1/{name=projects/*/locat" + - "ions/*/tagTemplates/*/fields/*/enumValue" + - "s/*}:rename:\001*\022\274\001\n\026DeleteTagTemplateFiel" + - "d\022:.google.cloud.datacatalog.v1.DeleteTa" + - "gTemplateFieldRequest\032\026.google.protobuf." + - "Empty\"N\332A\nname,force\202\323\344\223\002;*9/v1/{name=pr" + - "ojects/*/locations/*/tagTemplates/*/fiel" + - "ds/*}\022\371\001\n\tCreateTag\022-.google.cloud.datac" + - "atalog.v1.CreateTagRequest\032 .google.clou" + - "d.datacatalog.v1.Tag\"\232\001\332A\nparent,tag\202\323\344\223" + - "\002\206\001\"@/v1/{parent=projects/*/locations/*/" + - "entryGroups/*/entries/*}/tags:\003tagZ=\"6/v" + - "1/{parent=projects/*/locations/*/entryGr" + - "oups/*}/tags:\003tag\022\214\002\n\tUpdateTag\022-.google" + - ".cloud.datacatalog.v1.UpdateTagRequest\032 " + - ".google.cloud.datacatalog.v1.Tag\"\255\001\332A\003ta" + - "g\332A\017tag,update_mask\202\323\344\223\002\216\0012D/v1/{tag.nam" + - "e=projects/*/locations/*/entryGroups/*/e" + - "ntries/*/tags/*}:\003tagZA2:/v1/{tag.name=p" + - "rojects/*/locations/*/entryGroups/*/tags" + - "/*}:\003tag\022\336\001\n\tDeleteTag\022-.google.cloud.da" + - "tacatalog.v1.DeleteTagRequest\032\026.google.p" + - "rotobuf.Empty\"\211\001\332A\004name\202\323\344\223\002|*@/v1/{name" + - "=projects/*/locations/*/entryGroups/*/en" + - "tries/*/tags/*}Z8*6/v1/{name=projects/*/" + - "locations/*/entryGroups/*/tags/*}\022\365\001\n\010Li" + - "stTags\022,.google.cloud.datacatalog.v1.Lis" + - "tTagsRequest\032-.google.cloud.datacatalog." + - "v1.ListTagsResponse\"\213\001\332A\006parent\202\323\344\223\002|\022@/" + - "v1/{parent=projects/*/locations/*/entryG" + - "roups/*/entries/*}/tagsZ8\0226/v1/{parent=p" + - "rojects/*/locations/*/entryGroups/*}/tag" + - "s\022\352\001\n\rReconcileTags\0221.google.cloud.datac" + - "atalog.v1.ReconcileTagsRequest\032\035.google." + - "longrunning.Operation\"\206\001\312A.\n\025ReconcileTa" + - "gsResponse\022\025ReconcileTagsMetadata\202\323\344\223\002O\"" + - "J/v1/{parent=projects/*/locations/*/entr" + - "yGroups/*/entries/*}/tags:reconcile:\001*\022\274" + - "\001\n\tStarEntry\022-.google.cloud.datacatalog." + - "v1.StarEntryRequest\032..google.cloud.datac" + - "atalog.v1.StarEntryResponse\"P\332A\004name\202\323\344\223" + - "\002C\">/v1/{name=projects/*/locations/*/ent" + - "ryGroups/*/entries/*}:star:\001*\022\304\001\n\013Unstar" + - "Entry\022/.google.cloud.datacatalog.v1.Unst" + - "arEntryRequest\0320.google.cloud.datacatalo" + - "g.v1.UnstarEntryResponse\"R\332A\004name\202\323\344\223\002E\"" + - "@/v1/{name=projects/*/locations/*/entryG" + - "roups/*/entries/*}:unstar:\001*\022\362\001\n\014SetIamP" + - "olicy\022\".google.iam.v1.SetIamPolicyReques" + - "t\032\025.google.iam.v1.Policy\"\246\001\332A\017resource,p" + - "olicy\202\323\344\223\002\215\001\"A/v1/{resource=projects/*/l" + - "ocations/*/tagTemplates/*}:setIamPolicy:" + - "\001*ZE\"@/v1/{resource=projects/*/locations" + - "/*/entryGroups/*}:setIamPolicy:\001*\022\274\002\n\014Ge" + - "tIamPolicy\022\".google.iam.v1.GetIamPolicyR" + - "equest\032\025.google.iam.v1.Policy\"\360\001\332A\010resou" + - "rce\202\323\344\223\002\336\001\"A/v1/{resource=projects/*/loc" + - "ations/*/tagTemplates/*}:getIamPolicy:\001*" + - "ZE\"@/v1/{resource=projects/*/locations/*" + - "/entryGroups/*}:getIamPolicy:\001*ZO\"J/v1/{" + - "resource=projects/*/locations/*/entryGro" + - "ups/*/entries/*}:getIamPolicy:\001*\022\343\002\n\022Tes" + - "tIamPermissions\022(.google.iam.v1.TestIamP" + - "ermissionsRequest\032).google.iam.v1.TestIa" + - "mPermissionsResponse\"\367\001\202\323\344\223\002\360\001\"G/v1/{res" + - "ource=projects/*/locations/*/tagTemplate" + - "s/*}:testIamPermissions:\001*ZK\"F/v1/{resou" + - "rce=projects/*/locations/*/entryGroups/*" + - "}:testIamPermissions:\001*ZU\"P/v1/{resource" + - "=projects/*/locations/*/entryGroups/*/en" + - "tries/*}:testIamPermissions:\001*\022\337\001\n\rImpor" + - "tEntries\0221.google.cloud.datacatalog.v1.I" + - "mportEntriesRequest\032\035.google.longrunning" + - ".Operation\"|\312A.\n\025ImportEntriesResponse\022\025" + - "ImportEntriesMetadata\202\323\344\223\002E\"@/v1/{parent" + - "=projects/*/locations/*/entryGroups/*}/e" + - "ntries:import:\001*\032N\312A\032datacatalog.googlea" + - "pis.com\322A.https://www.googleapis.com/aut" + - "h/cloud-platformB\212\003\n\037com.google.cloud.da" + - "tacatalog.v1P\001ZAcloud.google.com/go/data" + - "catalog/apiv1/datacatalogpb;datacatalogp" + - "b\370\001\001\252\002\033Google.Cloud.DataCatalog.V1\312\002\033Goo" + - "gle\\Cloud\\DataCatalog\\V1\352\002\036Google::Cloud" + - "::DataCatalog::V1\352A\300\001\n4datacatalog.googl" + - "eapis.com/TagTemplateFieldEnumValue\022\207\001pr" + - "ojects/{project}/locations/{location}/ta" + - "gTemplates/{tag_template}/fields/{tag_te" + - "mplate_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.rpc.StatusProto.getDescriptor(), - }); - internal_static_google_cloud_datacatalog_v1_SearchCatalogRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_datacatalog_v1_SearchCatalogRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.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.getNestedTypes().get(0); - internal_static_google_cloud_datacatalog_v1_SearchCatalogRequest_Scope_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.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().getMessageTypes().get(1); - internal_static_google_cloud_datacatalog_v1_SearchCatalogResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.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().getMessageTypes().get(2); - internal_static_google_cloud_datacatalog_v1_CreateEntryGroupRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.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().getMessageTypes().get(3); - internal_static_google_cloud_datacatalog_v1_UpdateEntryGroupRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_UpdateEntryGroupRequest_descriptor, - new java.lang.String[] { "EntryGroup", "UpdateMask", }); - internal_static_google_cloud_datacatalog_v1_GetEntryGroupRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_datacatalog_v1_GetEntryGroupRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_GetEntryGroupRequest_descriptor, - new java.lang.String[] { "Name", "ReadMask", }); - internal_static_google_cloud_datacatalog_v1_DeleteEntryGroupRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_datacatalog_v1_DeleteEntryGroupRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_DeleteEntryGroupRequest_descriptor, - new java.lang.String[] { "Name", "Force", }); - internal_static_google_cloud_datacatalog_v1_ListEntryGroupsRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_datacatalog_v1_ListEntryGroupsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.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().getMessageTypes().get(7); - internal_static_google_cloud_datacatalog_v1_ListEntryGroupsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_ListEntryGroupsResponse_descriptor, - new java.lang.String[] { "EntryGroups", "NextPageToken", }); - internal_static_google_cloud_datacatalog_v1_CreateEntryRequest_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_datacatalog_v1_CreateEntryRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.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().getMessageTypes().get(9); - internal_static_google_cloud_datacatalog_v1_UpdateEntryRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_UpdateEntryRequest_descriptor, - new java.lang.String[] { "Entry", "UpdateMask", }); - internal_static_google_cloud_datacatalog_v1_DeleteEntryRequest_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_datacatalog_v1_DeleteEntryRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_DeleteEntryRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_datacatalog_v1_GetEntryRequest_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_datacatalog_v1_GetEntryRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_GetEntryRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_datacatalog_v1_LookupEntryRequest_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_datacatalog_v1_LookupEntryRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.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().getMessageTypes().get(13); - internal_static_google_cloud_datacatalog_v1_Entry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.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", "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.getNestedTypes().get(0); - internal_static_google_cloud_datacatalog_v1_Entry_LabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.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().getMessageTypes().get(14); - internal_static_google_cloud_datacatalog_v1_DatabaseTableSpec_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.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.getNestedTypes().get(0); - internal_static_google_cloud_datacatalog_v1_DatabaseTableSpec_DatabaseViewSpec_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.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().getMessageTypes().get(15); - internal_static_google_cloud_datacatalog_v1_FilesetSpec_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_FilesetSpec_descriptor, - new java.lang.String[] { "DataplexFileset", }); - internal_static_google_cloud_datacatalog_v1_DataSourceConnectionSpec_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_cloud_datacatalog_v1_DataSourceConnectionSpec_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_DataSourceConnectionSpec_descriptor, - new java.lang.String[] { "BigqueryConnectionSpec", }); - internal_static_google_cloud_datacatalog_v1_RoutineSpec_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_cloud_datacatalog_v1_RoutineSpec_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.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.getNestedTypes().get(0); - internal_static_google_cloud_datacatalog_v1_RoutineSpec_Argument_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.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().getMessageTypes().get(18); - internal_static_google_cloud_datacatalog_v1_DatasetSpec_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_DatasetSpec_descriptor, - new java.lang.String[] { "VertexDatasetSpec", "SystemSpec", }); - internal_static_google_cloud_datacatalog_v1_SqlDatabaseSystemSpec_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_google_cloud_datacatalog_v1_SqlDatabaseSystemSpec_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.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().getMessageTypes().get(20); - internal_static_google_cloud_datacatalog_v1_LookerSystemSpec_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.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().getMessageTypes().get(21); - internal_static_google_cloud_datacatalog_v1_CloudBigtableSystemSpec_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_CloudBigtableSystemSpec_descriptor, - new java.lang.String[] { "InstanceDisplayName", }); - internal_static_google_cloud_datacatalog_v1_CloudBigtableInstanceSpec_descriptor = - getDescriptor().getMessageTypes().get(22); - internal_static_google_cloud_datacatalog_v1_CloudBigtableInstanceSpec_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.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.getNestedTypes().get(0); - internal_static_google_cloud_datacatalog_v1_CloudBigtableInstanceSpec_CloudBigtableClusterSpec_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.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().getMessageTypes().get(23); - internal_static_google_cloud_datacatalog_v1_ServiceSpec_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_ServiceSpec_descriptor, - new java.lang.String[] { "CloudBigtableInstanceSpec", "SystemSpec", }); - internal_static_google_cloud_datacatalog_v1_VertexModelSourceInfo_descriptor = - getDescriptor().getMessageTypes().get(24); - internal_static_google_cloud_datacatalog_v1_VertexModelSourceInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_VertexModelSourceInfo_descriptor, - new java.lang.String[] { "SourceType", "Copy", }); - internal_static_google_cloud_datacatalog_v1_VertexModelSpec_descriptor = - getDescriptor().getMessageTypes().get(25); - internal_static_google_cloud_datacatalog_v1_VertexModelSpec_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.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().getMessageTypes().get(26); - internal_static_google_cloud_datacatalog_v1_VertexDatasetSpec_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_VertexDatasetSpec_descriptor, - new java.lang.String[] { "DataItemCount", "DataType", }); - internal_static_google_cloud_datacatalog_v1_ModelSpec_descriptor = - getDescriptor().getMessageTypes().get(27); - internal_static_google_cloud_datacatalog_v1_ModelSpec_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_ModelSpec_descriptor, - new java.lang.String[] { "VertexModelSpec", "SystemSpec", }); - internal_static_google_cloud_datacatalog_v1_BusinessContext_descriptor = - getDescriptor().getMessageTypes().get(28); - internal_static_google_cloud_datacatalog_v1_BusinessContext_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_BusinessContext_descriptor, - new java.lang.String[] { "EntryOverview", "Contacts", }); - internal_static_google_cloud_datacatalog_v1_EntryOverview_descriptor = - getDescriptor().getMessageTypes().get(29); - internal_static_google_cloud_datacatalog_v1_EntryOverview_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_EntryOverview_descriptor, - new java.lang.String[] { "Overview", }); - internal_static_google_cloud_datacatalog_v1_Contacts_descriptor = - getDescriptor().getMessageTypes().get(30); - internal_static_google_cloud_datacatalog_v1_Contacts_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.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.getNestedTypes().get(0); - internal_static_google_cloud_datacatalog_v1_Contacts_Person_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.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().getMessageTypes().get(31); - internal_static_google_cloud_datacatalog_v1_EntryGroup_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_EntryGroup_descriptor, - new java.lang.String[] { "Name", "DisplayName", "Description", "DataCatalogTimestamps", }); - internal_static_google_cloud_datacatalog_v1_CreateTagTemplateRequest_descriptor = - getDescriptor().getMessageTypes().get(32); - internal_static_google_cloud_datacatalog_v1_CreateTagTemplateRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.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().getMessageTypes().get(33); - internal_static_google_cloud_datacatalog_v1_GetTagTemplateRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_GetTagTemplateRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_datacatalog_v1_UpdateTagTemplateRequest_descriptor = - getDescriptor().getMessageTypes().get(34); - internal_static_google_cloud_datacatalog_v1_UpdateTagTemplateRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_UpdateTagTemplateRequest_descriptor, - new java.lang.String[] { "TagTemplate", "UpdateMask", }); - internal_static_google_cloud_datacatalog_v1_DeleteTagTemplateRequest_descriptor = - getDescriptor().getMessageTypes().get(35); - internal_static_google_cloud_datacatalog_v1_DeleteTagTemplateRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_DeleteTagTemplateRequest_descriptor, - new java.lang.String[] { "Name", "Force", }); - internal_static_google_cloud_datacatalog_v1_CreateTagRequest_descriptor = - getDescriptor().getMessageTypes().get(36); - internal_static_google_cloud_datacatalog_v1_CreateTagRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_CreateTagRequest_descriptor, - new java.lang.String[] { "Parent", "Tag", }); - internal_static_google_cloud_datacatalog_v1_UpdateTagRequest_descriptor = - getDescriptor().getMessageTypes().get(37); - internal_static_google_cloud_datacatalog_v1_UpdateTagRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_UpdateTagRequest_descriptor, - new java.lang.String[] { "Tag", "UpdateMask", }); - internal_static_google_cloud_datacatalog_v1_DeleteTagRequest_descriptor = - getDescriptor().getMessageTypes().get(38); - internal_static_google_cloud_datacatalog_v1_DeleteTagRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_DeleteTagRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_datacatalog_v1_CreateTagTemplateFieldRequest_descriptor = - getDescriptor().getMessageTypes().get(39); - internal_static_google_cloud_datacatalog_v1_CreateTagTemplateFieldRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.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().getMessageTypes().get(40); - internal_static_google_cloud_datacatalog_v1_UpdateTagTemplateFieldRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.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().getMessageTypes().get(41); - internal_static_google_cloud_datacatalog_v1_RenameTagTemplateFieldRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_RenameTagTemplateFieldRequest_descriptor, - new java.lang.String[] { "Name", "NewTagTemplateFieldId", }); - internal_static_google_cloud_datacatalog_v1_RenameTagTemplateFieldEnumValueRequest_descriptor = - getDescriptor().getMessageTypes().get(42); - internal_static_google_cloud_datacatalog_v1_RenameTagTemplateFieldEnumValueRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_RenameTagTemplateFieldEnumValueRequest_descriptor, - new java.lang.String[] { "Name", "NewEnumValueDisplayName", }); - internal_static_google_cloud_datacatalog_v1_DeleteTagTemplateFieldRequest_descriptor = - getDescriptor().getMessageTypes().get(43); - internal_static_google_cloud_datacatalog_v1_DeleteTagTemplateFieldRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_DeleteTagTemplateFieldRequest_descriptor, - new java.lang.String[] { "Name", "Force", }); - internal_static_google_cloud_datacatalog_v1_ListTagsRequest_descriptor = - getDescriptor().getMessageTypes().get(44); - internal_static_google_cloud_datacatalog_v1_ListTagsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.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().getMessageTypes().get(45); - internal_static_google_cloud_datacatalog_v1_ListTagsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_ListTagsResponse_descriptor, - new java.lang.String[] { "Tags", "NextPageToken", }); - internal_static_google_cloud_datacatalog_v1_ReconcileTagsRequest_descriptor = - getDescriptor().getMessageTypes().get(46); - internal_static_google_cloud_datacatalog_v1_ReconcileTagsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.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().getMessageTypes().get(47); - internal_static_google_cloud_datacatalog_v1_ReconcileTagsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.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().getMessageTypes().get(48); - internal_static_google_cloud_datacatalog_v1_ReconcileTagsMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.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.getNestedTypes().get(0); - internal_static_google_cloud_datacatalog_v1_ReconcileTagsMetadata_ErrorsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.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().getMessageTypes().get(49); - internal_static_google_cloud_datacatalog_v1_ListEntriesRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.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().getMessageTypes().get(50); - internal_static_google_cloud_datacatalog_v1_ListEntriesResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_ListEntriesResponse_descriptor, - new java.lang.String[] { "Entries", "NextPageToken", }); - internal_static_google_cloud_datacatalog_v1_StarEntryRequest_descriptor = - getDescriptor().getMessageTypes().get(51); - internal_static_google_cloud_datacatalog_v1_StarEntryRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_StarEntryRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_datacatalog_v1_StarEntryResponse_descriptor = - getDescriptor().getMessageTypes().get(52); - internal_static_google_cloud_datacatalog_v1_StarEntryResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_StarEntryResponse_descriptor, - new java.lang.String[] { }); - internal_static_google_cloud_datacatalog_v1_UnstarEntryRequest_descriptor = - getDescriptor().getMessageTypes().get(53); - internal_static_google_cloud_datacatalog_v1_UnstarEntryRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_UnstarEntryRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_datacatalog_v1_UnstarEntryResponse_descriptor = - getDescriptor().getMessageTypes().get(54); - internal_static_google_cloud_datacatalog_v1_UnstarEntryResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_UnstarEntryResponse_descriptor, - new java.lang.String[] { }); - internal_static_google_cloud_datacatalog_v1_ImportEntriesRequest_descriptor = - getDescriptor().getMessageTypes().get(55); - internal_static_google_cloud_datacatalog_v1_ImportEntriesRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.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().getMessageTypes().get(56); - internal_static_google_cloud_datacatalog_v1_ImportEntriesResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_ImportEntriesResponse_descriptor, - new java.lang.String[] { "UpsertedEntriesCount", "DeletedEntriesCount", "UpsertedEntriesCount", "DeletedEntriesCount", }); - internal_static_google_cloud_datacatalog_v1_ImportEntriesMetadata_descriptor = - getDescriptor().getMessageTypes().get(57); - internal_static_google_cloud_datacatalog_v1_ImportEntriesMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_ImportEntriesMetadata_descriptor, - new java.lang.String[] { "State", "Errors", }); - internal_static_google_cloud_datacatalog_v1_ModifyEntryOverviewRequest_descriptor = - getDescriptor().getMessageTypes().get(58); - internal_static_google_cloud_datacatalog_v1_ModifyEntryOverviewRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_ModifyEntryOverviewRequest_descriptor, - new java.lang.String[] { "Name", "EntryOverview", }); - internal_static_google_cloud_datacatalog_v1_ModifyEntryContactsRequest_descriptor = - getDescriptor().getMessageTypes().get(59); - internal_static_google_cloud_datacatalog_v1_ModifyEntryContactsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_ModifyEntryContactsRequest_descriptor, - new java.lang.String[] { "Name", "Contacts", }); - 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); - 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.rpc.StatusProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DataplexExternalTable.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DataplexExternalTable.java deleted file mode 100644 index 7e00ab7973a3..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DataplexExternalTable.java +++ /dev/null @@ -1,1039 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/dataplex_spec.proto - -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} - */ -public final class DataplexExternalTable extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.DataplexExternalTable) - DataplexExternalTableOrBuilder { -private static final long serialVersionUID = 0L; - // Use DataplexExternalTable.newBuilder() to construct. - private DataplexExternalTable(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DataplexExternalTable() { - system_ = 0; - fullyQualifiedName_ = ""; - googleCloudResource_ = ""; - dataCatalogEntry_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new DataplexExternalTable(); - } - - 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(googleCloudResource_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, googleCloudResource_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dataCatalogEntry_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, dataCatalogEntry_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fullyQualifiedName_)) { - com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(googleCloudResource_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, googleCloudResource_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dataCatalogEntry_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, dataCatalogEntry_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fullyQualifiedName_)) { - size += com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DataplexExternalTableOrBuilder.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DataplexExternalTableOrBuilder.java deleted file mode 100644 index c1b9528d1c1d..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DataplexExternalTableOrBuilder.java +++ /dev/null @@ -1,88 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/dataplex_spec.proto - -package com.google.cloud.datacatalog.v1; - -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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DataplexFilesetSpec.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DataplexFilesetSpec.java deleted file mode 100644 index 69581c365827..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DataplexFilesetSpec.java +++ /dev/null @@ -1,642 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/dataplex_spec.proto - -package com.google.cloud.datacatalog.v1; - -/** - *
- * Entry specyfication for a Dataplex fileset.
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.DataplexFilesetSpec} - */ -public final class DataplexFilesetSpec extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.DataplexFilesetSpec) - DataplexFilesetSpecOrBuilder { -private static final long serialVersionUID = 0L; - // Use DataplexFilesetSpec.newBuilder() to construct. - private DataplexFilesetSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DataplexFilesetSpec() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.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); - } - - 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 dataplexSpec_ != null; - } - /** - *
-   * 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 (dataplexSpec_ != null) { - output.writeMessage(1, getDataplexSpec()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (dataplexSpec_ != null) { - 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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @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_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.dataplexSpec_ = dataplexSpecBuilder_ == null - ? dataplexSpec_ - : dataplexSpecBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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( - getDataplexSpecFieldBuilder().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.SingleFieldBuilderV3< - 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); - } - 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 getDataplexSpecFieldBuilder().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.SingleFieldBuilderV3< - com.google.cloud.datacatalog.v1.DataplexSpec, com.google.cloud.datacatalog.v1.DataplexSpec.Builder, com.google.cloud.datacatalog.v1.DataplexSpecOrBuilder> - getDataplexSpecFieldBuilder() { - if (dataplexSpecBuilder_ == null) { - dataplexSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - 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_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DataplexFilesetSpecOrBuilder.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DataplexFilesetSpecOrBuilder.java deleted file mode 100644 index 111c8a153491..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DataplexFilesetSpecOrBuilder.java +++ /dev/null @@ -1,36 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/dataplex_spec.proto - -package com.google.cloud.datacatalog.v1; - -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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DataplexSpec.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DataplexSpec.java deleted file mode 100644 index 55747646182e..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DataplexSpec.java +++ /dev/null @@ -1,1162 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/dataplex_spec.proto - -package com.google.cloud.datacatalog.v1; - -/** - *
- * Common Dataplex fields.
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.DataplexSpec} - */ -public final class DataplexSpec extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.DataplexSpec) - DataplexSpecOrBuilder { -private static final long serialVersionUID = 0L; - // Use DataplexSpec.newBuilder() to construct. - private DataplexSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DataplexSpec() { - asset_ = ""; - compressionFormat_ = ""; - projectId_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new DataplexSpec(); - } - - 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.GeneratedMessageV3.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); - } - - 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 dataFormat_ != null; - } - /** - *
-   * 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.GeneratedMessageV3.isStringEmpty(asset_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, asset_); - } - if (dataFormat_ != null) { - output.writeMessage(2, getDataFormat()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(compressionFormat_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, compressionFormat_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { - com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(asset_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, asset_); - } - if (dataFormat_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getDataFormat()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(compressionFormat_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, compressionFormat_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { - size += com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @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_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.dataFormat_ = dataFormatBuilder_ == null - ? dataFormat_ - : dataFormatBuilder_.build(); - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.compressionFormat_ = compressionFormat_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.projectId_ = projectId_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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( - getDataFormatFieldBuilder().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.SingleFieldBuilderV3< - 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); - } - 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 getDataFormatFieldBuilder().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.SingleFieldBuilderV3< - com.google.cloud.datacatalog.v1.PhysicalSchema, com.google.cloud.datacatalog.v1.PhysicalSchema.Builder, com.google.cloud.datacatalog.v1.PhysicalSchemaOrBuilder> - getDataFormatFieldBuilder() { - if (dataFormatBuilder_ == null) { - dataFormatBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - 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; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DataplexSpecOrBuilder.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DataplexSpecOrBuilder.java deleted file mode 100644 index cb2db7ffee4f..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DataplexSpecOrBuilder.java +++ /dev/null @@ -1,104 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/dataplex_spec.proto - -package com.google.cloud.datacatalog.v1; - -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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DataplexSpecProto.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DataplexSpecProto.java deleted file mode 100644 index fdd7835a088c..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DataplexSpecProto.java +++ /dev/null @@ -1,107 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/dataplex_spec.proto - -package com.google.cloud.datacatalog.v1; - -public final class DataplexSpecProto { - private 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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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\331\001\n\037com.google.cloud.datacat" + - "alog.v1B\021DataplexSpecProtoP\001ZAcloud.goog" + - "le.com/go/datacatalog/apiv1/datacatalogp" + - "b;datacatalogpb\370\001\001\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.cloud.datacatalog.v1.Common.getDescriptor(), - com.google.cloud.datacatalog.v1.PhysicalSchemaProto.getDescriptor(), - }); - internal_static_google_cloud_datacatalog_v1_DataplexSpec_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_datacatalog_v1_DataplexSpec_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.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().getMessageTypes().get(1); - internal_static_google_cloud_datacatalog_v1_DataplexFilesetSpec_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_DataplexFilesetSpec_descriptor, - new java.lang.String[] { "DataplexSpec", }); - internal_static_google_cloud_datacatalog_v1_DataplexTableSpec_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_datacatalog_v1_DataplexTableSpec_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.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().getMessageTypes().get(3); - internal_static_google_cloud_datacatalog_v1_DataplexExternalTable_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_DataplexExternalTable_descriptor, - new java.lang.String[] { "System", "FullyQualifiedName", "GoogleCloudResource", "DataCatalogEntry", }); - com.google.cloud.datacatalog.v1.Common.getDescriptor(); - com.google.cloud.datacatalog.v1.PhysicalSchemaProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DataplexTableSpec.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DataplexTableSpec.java deleted file mode 100644 index d6abc87373e1..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DataplexTableSpec.java +++ /dev/null @@ -1,1240 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/dataplex_spec.proto - -package com.google.cloud.datacatalog.v1; - -/** - *
- * Entry specification for a Dataplex table.
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.DataplexTableSpec} - */ -public final class DataplexTableSpec extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.DataplexTableSpec) - DataplexTableSpecOrBuilder { -private static final long serialVersionUID = 0L; - // Use DataplexTableSpec.newBuilder() to construct. - private DataplexTableSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DataplexTableSpec() { - externalTables_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new DataplexTableSpec(); - } - - 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.GeneratedMessageV3.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); - } - - 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 dataplexSpec_ != null; - } - /** - *
-   * 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 (dataplexSpec_ != null) { - 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 (dataplexSpec_ != null) { - 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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @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_; - if (((from_bitField0_ & 0x00000002) != 0)) { - result.dataplexSpec_ = dataplexSpecBuilder_ == null - ? dataplexSpec_ - : dataplexSpecBuilder_.build(); - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.userManaged_ = userManaged_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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.GeneratedMessageV3.alwaysUseFieldBuilders ? - getExternalTablesFieldBuilder() : 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( - getDataplexSpecFieldBuilder().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.RepeatedFieldBuilderV3< - 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 getExternalTablesFieldBuilder().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 getExternalTablesFieldBuilder().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 getExternalTablesFieldBuilder().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 getExternalTablesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datacatalog.v1.DataplexExternalTable, com.google.cloud.datacatalog.v1.DataplexExternalTable.Builder, com.google.cloud.datacatalog.v1.DataplexExternalTableOrBuilder> - getExternalTablesFieldBuilder() { - if (externalTablesBuilder_ == null) { - externalTablesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - 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.SingleFieldBuilderV3< - 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); - } - 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 getDataplexSpecFieldBuilder().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.SingleFieldBuilderV3< - com.google.cloud.datacatalog.v1.DataplexSpec, com.google.cloud.datacatalog.v1.DataplexSpec.Builder, com.google.cloud.datacatalog.v1.DataplexSpecOrBuilder> - getDataplexSpecFieldBuilder() { - if (dataplexSpecBuilder_ == null) { - dataplexSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - 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; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DatasetSpec.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DatasetSpec.java deleted file mode 100644 index 9fb83f0970ed..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DatasetSpec.java +++ /dev/null @@ -1,746 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/datacatalog.proto - -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} - */ -public final class DatasetSpec extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.DatasetSpec) - DatasetSpecOrBuilder { -private static final long serialVersionUID = 0L; - // Use DatasetSpec.newBuilder() to construct. - private DatasetSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DatasetSpec() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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( - getVertexDatasetSpecFieldBuilder().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.SingleFieldBuilderV3< - 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 getVertexDatasetSpecFieldBuilder().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.SingleFieldBuilderV3< - com.google.cloud.datacatalog.v1.VertexDatasetSpec, com.google.cloud.datacatalog.v1.VertexDatasetSpec.Builder, com.google.cloud.datacatalog.v1.VertexDatasetSpecOrBuilder> - getVertexDatasetSpecFieldBuilder() { - if (vertexDatasetSpecBuilder_ == null) { - if (!(systemSpecCase_ == 2)) { - systemSpec_ = com.google.cloud.datacatalog.v1.VertexDatasetSpec.getDefaultInstance(); - } - vertexDatasetSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - 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_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DatasetSpecOrBuilder.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DatasetSpecOrBuilder.java deleted file mode 100644 index 62ab8f63815a..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DatasetSpecOrBuilder.java +++ /dev/null @@ -1,38 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/datacatalog.proto - -package com.google.cloud.datacatalog.v1; - -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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DeleteEntryGroupRequest.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DeleteEntryGroupRequest.java deleted file mode 100644 index 1bd016cd6361..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DeleteEntryGroupRequest.java +++ /dev/null @@ -1,662 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/datacatalog.proto - -package com.google.cloud.datacatalog.v1; - -/** - *
- * Request message for
- * [DeleteEntryGroup][google.cloud.datacatalog.v1.DataCatalog.DeleteEntryGroup].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.DeleteEntryGroupRequest} - */ -public final class DeleteEntryGroupRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.DeleteEntryGroupRequest) - DeleteEntryGroupRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use DeleteEntryGroupRequest.newBuilder() to construct. - private DeleteEntryGroupRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DeleteEntryGroupRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new DeleteEntryGroupRequest(); - } - - 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DeleteEntryGroupRequestOrBuilder.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DeleteEntryGroupRequestOrBuilder.java deleted file mode 100644 index 1ec1cd1c36b2..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DeleteEntryGroupRequestOrBuilder.java +++ /dev/null @@ -1,39 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/datacatalog.proto - -package com.google.cloud.datacatalog.v1; - -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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DeleteEntryRequest.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DeleteEntryRequest.java deleted file mode 100644 index 742ae05d1f3c..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DeleteEntryRequest.java +++ /dev/null @@ -1,579 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/datacatalog.proto - -package com.google.cloud.datacatalog.v1; - -/** - *
- * Request message for
- * [DeleteEntry][google.cloud.datacatalog.v1.DataCatalog.DeleteEntry].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.DeleteEntryRequest} - */ -public final class DeleteEntryRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.DeleteEntryRequest) - DeleteEntryRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use DeleteEntryRequest.newBuilder() to construct. - private DeleteEntryRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DeleteEntryRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new DeleteEntryRequest(); - } - - 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.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 clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DeleteEntryRequestOrBuilder.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DeleteEntryRequestOrBuilder.java deleted file mode 100644 index 818295005fec..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DeleteEntryRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/datacatalog.proto - -package com.google.cloud.datacatalog.v1; - -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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DeletePolicyTagRequest.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DeletePolicyTagRequest.java deleted file mode 100644 index 16847015f3f4..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DeletePolicyTagRequest.java +++ /dev/null @@ -1,593 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/policytagmanager.proto - -package com.google.cloud.datacatalog.v1; - -/** - *
- * Request message for
- * [DeletePolicyTag][google.cloud.datacatalog.v1.PolicyTagManager.DeletePolicyTag].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.DeletePolicyTagRequest} - */ -public final class DeletePolicyTagRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.DeletePolicyTagRequest) - DeletePolicyTagRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use DeletePolicyTagRequest.newBuilder() to construct. - private DeletePolicyTagRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DeletePolicyTagRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new DeletePolicyTagRequest(); - } - - 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.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 clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DeletePolicyTagRequestOrBuilder.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DeletePolicyTagRequestOrBuilder.java deleted file mode 100644 index 5312a89e96cb..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DeletePolicyTagRequestOrBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/policytagmanager.proto - -package com.google.cloud.datacatalog.v1; - -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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DeleteTagRequest.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DeleteTagRequest.java deleted file mode 100644 index e8bce8875c0b..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DeleteTagRequest.java +++ /dev/null @@ -1,579 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/datacatalog.proto - -package com.google.cloud.datacatalog.v1; - -/** - *
- * Request message for
- * [DeleteTag][google.cloud.datacatalog.v1.DataCatalog.DeleteTag].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.DeleteTagRequest} - */ -public final class DeleteTagRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.DeleteTagRequest) - DeleteTagRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use DeleteTagRequest.newBuilder() to construct. - private DeleteTagRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DeleteTagRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new DeleteTagRequest(); - } - - 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.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 clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DeleteTagRequestOrBuilder.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DeleteTagRequestOrBuilder.java deleted file mode 100644 index e69f75434f99..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DeleteTagRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/datacatalog.proto - -package com.google.cloud.datacatalog.v1; - -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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DeleteTagTemplateFieldRequest.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DeleteTagTemplateFieldRequest.java deleted file mode 100644 index 879d8207d467..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DeleteTagTemplateFieldRequest.java +++ /dev/null @@ -1,670 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/datacatalog.proto - -package com.google.cloud.datacatalog.v1; - -/** - *
- * Request message for
- * [DeleteTagTemplateField][google.cloud.datacatalog.v1.DataCatalog.DeleteTagTemplateField].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.DeleteTagTemplateFieldRequest} - */ -public final class DeleteTagTemplateFieldRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.DeleteTagTemplateFieldRequest) - DeleteTagTemplateFieldRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use DeleteTagTemplateFieldRequest.newBuilder() to construct. - private DeleteTagTemplateFieldRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DeleteTagTemplateFieldRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new DeleteTagTemplateFieldRequest(); - } - - 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DeleteTagTemplateFieldRequestOrBuilder.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DeleteTagTemplateFieldRequestOrBuilder.java deleted file mode 100644 index 1d1a955c0bc9..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DeleteTagTemplateFieldRequestOrBuilder.java +++ /dev/null @@ -1,41 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/datacatalog.proto - -package com.google.cloud.datacatalog.v1; - -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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DeleteTagTemplateRequest.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DeleteTagTemplateRequest.java deleted file mode 100644 index aef6d51b3a4c..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DeleteTagTemplateRequest.java +++ /dev/null @@ -1,670 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/datacatalog.proto - -package com.google.cloud.datacatalog.v1; - -/** - *
- * Request message for
- * [DeleteTagTemplate][google.cloud.datacatalog.v1.DataCatalog.DeleteTagTemplate].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.DeleteTagTemplateRequest} - */ -public final class DeleteTagTemplateRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.DeleteTagTemplateRequest) - DeleteTagTemplateRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use DeleteTagTemplateRequest.newBuilder() to construct. - private DeleteTagTemplateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DeleteTagTemplateRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new DeleteTagTemplateRequest(); - } - - 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DeleteTagTemplateRequestOrBuilder.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DeleteTagTemplateRequestOrBuilder.java deleted file mode 100644 index 0053ddaf62b8..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DeleteTagTemplateRequestOrBuilder.java +++ /dev/null @@ -1,41 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/datacatalog.proto - -package com.google.cloud.datacatalog.v1; - -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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DeleteTaxonomyRequest.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DeleteTaxonomyRequest.java deleted file mode 100644 index 32fb9e2d5072..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DeleteTaxonomyRequest.java +++ /dev/null @@ -1,593 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/policytagmanager.proto - -package com.google.cloud.datacatalog.v1; - -/** - *
- * Request message for
- * [DeleteTaxonomy][google.cloud.datacatalog.v1.PolicyTagManager.DeleteTaxonomy].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.DeleteTaxonomyRequest} - */ -public final class DeleteTaxonomyRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.DeleteTaxonomyRequest) - DeleteTaxonomyRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use DeleteTaxonomyRequest.newBuilder() to construct. - private DeleteTaxonomyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DeleteTaxonomyRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new DeleteTaxonomyRequest(); - } - - 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.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 clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DeleteTaxonomyRequestOrBuilder.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DeleteTaxonomyRequestOrBuilder.java deleted file mode 100644 index 14b982735722..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DeleteTaxonomyRequestOrBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/policytagmanager.proto - -package com.google.cloud.datacatalog.v1; - -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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DumpContentProto.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DumpContentProto.java deleted file mode 100644 index a6e94c27c086..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DumpContentProto.java +++ /dev/null @@ -1,85 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/dump_content.proto - -package com.google.cloud.datacatalog.v1; - -public final class DumpContentProto { - private 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.GeneratedMessageV3.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.GeneratedMessageV3.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\"\311\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\004\342A\001\001\022;\n\013absent_tags\030\003 \003(\0132 .googl" + - "e.cloud.datacatalog.v1.TagB\004\342A\001\001B\007\n\005entr" + - "y\"T\n\010DumpItem\022@\n\014tagged_entry\030\001 \001(\0132(.go" + - "ogle.cloud.datacatalog.v1.TaggedEntryH\000B" + - "\006\n\004itemB\330\001\n\037com.google.cloud.datacatalog" + - ".v1B\020DumpContentProtoP\001ZAcloud.google.co" + - "m/go/datacatalog/apiv1/datacatalogpb;dat" + - "acatalogpb\370\001\001\252\002\033Google.Cloud.DataCatalog" + - ".V1\312\002\033Google\\Cloud\\DataCatalog\\V1\352\002\036Goog" + - "le::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.Datacatalog.getDescriptor(), - com.google.cloud.datacatalog.v1.Tags.getDescriptor(), - }); - internal_static_google_cloud_datacatalog_v1_TaggedEntry_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_datacatalog_v1_TaggedEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.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().getMessageTypes().get(1); - internal_static_google_cloud_datacatalog_v1_DumpItem_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_DumpItem_descriptor, - new java.lang.String[] { "TaggedEntry", "Item", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.cloud.datacatalog.v1.Datacatalog.getDescriptor(); - com.google.cloud.datacatalog.v1.Tags.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DumpItem.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DumpItem.java deleted file mode 100644 index 8f184d655d3c..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DumpItem.java +++ /dev/null @@ -1,744 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/dump_content.proto - -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} - */ -public final class DumpItem extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.DumpItem) - DumpItemOrBuilder { -private static final long serialVersionUID = 0L; - // Use DumpItem.newBuilder() to construct. - private DumpItem(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DumpItem() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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( - getTaggedEntryFieldBuilder().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.SingleFieldBuilderV3< - 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 getTaggedEntryFieldBuilder().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.SingleFieldBuilderV3< - com.google.cloud.datacatalog.v1.TaggedEntry, com.google.cloud.datacatalog.v1.TaggedEntry.Builder, com.google.cloud.datacatalog.v1.TaggedEntryOrBuilder> - getTaggedEntryFieldBuilder() { - if (taggedEntryBuilder_ == null) { - if (!(itemCase_ == 1)) { - item_ = com.google.cloud.datacatalog.v1.TaggedEntry.getDefaultInstance(); - } - taggedEntryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - 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_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DumpItemOrBuilder.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DumpItemOrBuilder.java deleted file mode 100644 index edba41a9ebed..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DumpItemOrBuilder.java +++ /dev/null @@ -1,38 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/dump_content.proto - -package com.google.cloud.datacatalog.v1; - -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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/Entry.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/Entry.java deleted file mode 100644 index af70f25fd62c..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/Entry.java +++ /dev/null @@ -1,8098 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/datacatalog.proto - -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} - */ -public final class Entry extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.Entry) - EntryOrBuilder { -private static final long serialVersionUID = 0L; - // Use Entry.newBuilder() to construct. - private Entry(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Entry() { - name_ = ""; - linkedResource_ = ""; - fullyQualifiedName_ = ""; - displayName_ = ""; - description_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Entry(); - } - - 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.MapField internalGetMapField( - int number) { - switch (number) { - case 14: - return internalGetLabels(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.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 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), - 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 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. 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.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. 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.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 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 businessContext_ != null; - } - /** - *
-   * 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 schema_ != null; - } - /** - *
-   * 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 sourceSystemTimestamps_ != null; - } - /** - *
-   * 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 usageSignal_ != null; - } - /** - *
-   * 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< - java.lang.String, java.lang.String> 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< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { - if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); - } - return labels_; - } - public int getLabelsCount() { - return internalGetLabels().getMap().size(); - } - /** - *
-   * 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 dataSource_ != null; - } - /** - *
-   * 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 personalDetails_ != null; - } - /** - *
-   * 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.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (entryTypeCase_ == 2) { - output.writeEnum(2, ((java.lang.Integer) entryType_)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, displayName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, description_); - } - if (schema_ != null) { - output.writeMessage(5, getSchema()); - } - if (typeSpecCase_ == 6) { - output.writeMessage(6, (com.google.cloud.datacatalog.v1.GcsFilesetSpec) typeSpec_); - } - if (sourceSystemTimestamps_ != null) { - output.writeMessage(7, getSourceSystemTimestamps()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(linkedResource_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 9, linkedResource_); - } - if (typeSpecCase_ == 12) { - output.writeMessage(12, (com.google.cloud.datacatalog.v1.BigQueryTableSpec) typeSpec_); - } - if (usageSignal_ != null) { - output.writeMessage(13, getUsageSignal()); - } - com.google.protobuf.GeneratedMessageV3 - .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.GeneratedMessageV3.writeString(output, 16, entryType_); - } - if (systemCase_ == 17) { - output.writeEnum(17, ((java.lang.Integer) system_)); - } - if (systemCase_ == 18) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 18, system_); - } - if (dataSource_ != null) { - output.writeMessage(20, getDataSource()); - } - if (specCase_ == 24) { - output.writeMessage(24, (com.google.cloud.datacatalog.v1.DatabaseTableSpec) spec_); - } - if (personalDetails_ != null) { - 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.GeneratedMessageV3.isStringEmpty(fullyQualifiedName_)) { - com.google.protobuf.GeneratedMessageV3.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 (businessContext_ != null) { - 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_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (entryTypeCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, ((java.lang.Integer) entryType_)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, displayName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, description_); - } - if (schema_ != null) { - 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 (sourceSystemTimestamps_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getSourceSystemTimestamps()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(linkedResource_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, linkedResource_); - } - if (typeSpecCase_ == 12) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(12, (com.google.cloud.datacatalog.v1.BigQueryTableSpec) typeSpec_); - } - if (usageSignal_ != null) { - 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.GeneratedMessageV3.computeStringSize(16, entryType_); - } - if (systemCase_ == 17) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(17, ((java.lang.Integer) system_)); - } - if (systemCase_ == 18) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(18, system_); - } - if (dataSource_ != null) { - 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 (personalDetails_ != null) { - 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.GeneratedMessageV3.isStringEmpty(fullyQualifiedName_)) { - size += com.google.protobuf.GeneratedMessageV3.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 (businessContext_ != null) { - 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_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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 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 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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.MapField internalGetMapField( - int number) { - switch (number) { - case 14: - return internalGetLabels(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 14: - return internalGetMutableLabels(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @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(); - } - 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_ & 0x00100000) != 0)) { - result.displayName_ = displayName_; - } - if (((from_bitField0_ & 0x00200000) != 0)) { - result.description_ = description_; - } - if (((from_bitField0_ & 0x00400000) != 0)) { - result.businessContext_ = businessContextBuilder_ == null - ? businessContext_ - : businessContextBuilder_.build(); - } - if (((from_bitField0_ & 0x00800000) != 0)) { - result.schema_ = schemaBuilder_ == null - ? schema_ - : schemaBuilder_.build(); - } - if (((from_bitField0_ & 0x01000000) != 0)) { - result.sourceSystemTimestamps_ = sourceSystemTimestampsBuilder_ == null - ? sourceSystemTimestamps_ - : sourceSystemTimestampsBuilder_.build(); - } - if (((from_bitField0_ & 0x02000000) != 0)) { - result.usageSignal_ = usageSignalBuilder_ == null - ? usageSignal_ - : usageSignalBuilder_.build(); - } - if (((from_bitField0_ & 0x04000000) != 0)) { - result.labels_ = internalGetLabels(); - result.labels_.makeImmutable(); - } - if (((from_bitField0_ & 0x08000000) != 0)) { - result.dataSource_ = dataSourceBuilder_ == null - ? dataSource_ - : dataSourceBuilder_.build(); - } - if (((from_bitField0_ & 0x10000000) != 0)) { - result.personalDetails_ = personalDetailsBuilder_ == null - ? personalDetails_ - : personalDetailsBuilder_.build(); - } - } - - 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(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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_ |= 0x00100000; - onChanged(); - } - if (!other.getDescription().isEmpty()) { - description_ = other.description_; - bitField0_ |= 0x00200000; - 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_ |= 0x04000000; - 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 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_ |= 0x00100000; - break; - } // case 26 - case 34: { - description_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00200000; - break; - } // case 34 - case 42: { - input.readMessage( - getSchemaFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00800000; - break; - } // case 42 - case 50: { - input.readMessage( - getGcsFilesetSpecFieldBuilder().getBuilder(), - extensionRegistry); - typeSpecCase_ = 6; - break; - } // case 50 - case 58: { - input.readMessage( - getSourceSystemTimestampsFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x01000000; - break; - } // case 58 - case 74: { - linkedResource_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 74 - case 98: { - input.readMessage( - getBigqueryTableSpecFieldBuilder().getBuilder(), - extensionRegistry); - typeSpecCase_ = 12; - break; - } // case 98 - case 106: { - input.readMessage( - getUsageSignalFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x02000000; - break; - } // case 106 - case 114: { - com.google.protobuf.MapEntry - labels__ = input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableLabels().getMutableMap().put( - labels__.getKey(), labels__.getValue()); - bitField0_ |= 0x04000000; - break; - } // case 114 - case 122: { - input.readMessage( - getBigqueryDateShardedSpecFieldBuilder().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( - getDataSourceFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x08000000; - break; - } // case 162 - case 194: { - input.readMessage( - getDatabaseTableSpecFieldBuilder().getBuilder(), - extensionRegistry); - specCase_ = 24; - break; - } // case 194 - case 210: { - input.readMessage( - getPersonalDetailsFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x10000000; - break; - } // case 210 - case 218: { - input.readMessage( - getDataSourceConnectionSpecFieldBuilder().getBuilder(), - extensionRegistry); - specCase_ = 27; - break; - } // case 218 - case 226: { - input.readMessage( - getRoutineSpecFieldBuilder().getBuilder(), - extensionRegistry); - specCase_ = 28; - break; - } // case 226 - case 234: { - fullyQualifiedName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 234 - case 258: { - input.readMessage( - getDatasetSpecFieldBuilder().getBuilder(), - extensionRegistry); - specCase_ = 32; - break; - } // case 258 - case 266: { - input.readMessage( - getFilesetSpecFieldBuilder().getBuilder(), - extensionRegistry); - specCase_ = 33; - break; - } // case 266 - case 298: { - input.readMessage( - getBusinessContextFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00400000; - break; - } // case 298 - case 314: { - input.readMessage( - getSqlDatabaseSystemSpecFieldBuilder().getBuilder(), - extensionRegistry); - systemSpecCase_ = 39; - break; - } // case 314 - case 322: { - input.readMessage( - getLookerSystemSpecFieldBuilder().getBuilder(), - extensionRegistry); - systemSpecCase_ = 40; - break; - } // case 322 - case 330: { - input.readMessage( - getCloudBigtableSystemSpecFieldBuilder().getBuilder(), - extensionRegistry); - systemSpecCase_ = 41; - break; - } // case 330 - case 338: { - input.readMessage( - getServiceSpecFieldBuilder().getBuilder(), - extensionRegistry); - specCase_ = 42; - break; - } // case 338 - case 346: { - input.readMessage( - getModelSpecFieldBuilder().getBuilder(), - extensionRegistry); - specCase_ = 43; - break; - } // case 346 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an 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. 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.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. 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.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. 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.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. 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.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Output only. 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.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.SingleFieldBuilderV3< - 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 getSqlDatabaseSystemSpecFieldBuilder().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.SingleFieldBuilderV3< - com.google.cloud.datacatalog.v1.SqlDatabaseSystemSpec, com.google.cloud.datacatalog.v1.SqlDatabaseSystemSpec.Builder, com.google.cloud.datacatalog.v1.SqlDatabaseSystemSpecOrBuilder> - getSqlDatabaseSystemSpecFieldBuilder() { - if (sqlDatabaseSystemSpecBuilder_ == null) { - if (!(systemSpecCase_ == 39)) { - systemSpec_ = com.google.cloud.datacatalog.v1.SqlDatabaseSystemSpec.getDefaultInstance(); - } - sqlDatabaseSystemSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - 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.SingleFieldBuilderV3< - 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 getLookerSystemSpecFieldBuilder().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.SingleFieldBuilderV3< - com.google.cloud.datacatalog.v1.LookerSystemSpec, com.google.cloud.datacatalog.v1.LookerSystemSpec.Builder, com.google.cloud.datacatalog.v1.LookerSystemSpecOrBuilder> - getLookerSystemSpecFieldBuilder() { - if (lookerSystemSpecBuilder_ == null) { - if (!(systemSpecCase_ == 40)) { - systemSpec_ = com.google.cloud.datacatalog.v1.LookerSystemSpec.getDefaultInstance(); - } - lookerSystemSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - 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.SingleFieldBuilderV3< - 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 getCloudBigtableSystemSpecFieldBuilder().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.SingleFieldBuilderV3< - com.google.cloud.datacatalog.v1.CloudBigtableSystemSpec, com.google.cloud.datacatalog.v1.CloudBigtableSystemSpec.Builder, com.google.cloud.datacatalog.v1.CloudBigtableSystemSpecOrBuilder> - getCloudBigtableSystemSpecFieldBuilder() { - if (cloudBigtableSystemSpecBuilder_ == null) { - if (!(systemSpecCase_ == 41)) { - systemSpec_ = com.google.cloud.datacatalog.v1.CloudBigtableSystemSpec.getDefaultInstance(); - } - cloudBigtableSystemSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - 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.SingleFieldBuilderV3< - 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 getGcsFilesetSpecFieldBuilder().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.SingleFieldBuilderV3< - com.google.cloud.datacatalog.v1.GcsFilesetSpec, com.google.cloud.datacatalog.v1.GcsFilesetSpec.Builder, com.google.cloud.datacatalog.v1.GcsFilesetSpecOrBuilder> - getGcsFilesetSpecFieldBuilder() { - if (gcsFilesetSpecBuilder_ == null) { - if (!(typeSpecCase_ == 6)) { - typeSpec_ = com.google.cloud.datacatalog.v1.GcsFilesetSpec.getDefaultInstance(); - } - gcsFilesetSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - 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.SingleFieldBuilderV3< - 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 getBigqueryTableSpecFieldBuilder().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.SingleFieldBuilderV3< - com.google.cloud.datacatalog.v1.BigQueryTableSpec, com.google.cloud.datacatalog.v1.BigQueryTableSpec.Builder, com.google.cloud.datacatalog.v1.BigQueryTableSpecOrBuilder> - getBigqueryTableSpecFieldBuilder() { - if (bigqueryTableSpecBuilder_ == null) { - if (!(typeSpecCase_ == 12)) { - typeSpec_ = com.google.cloud.datacatalog.v1.BigQueryTableSpec.getDefaultInstance(); - } - bigqueryTableSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - 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.SingleFieldBuilderV3< - 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 getBigqueryDateShardedSpecFieldBuilder().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.SingleFieldBuilderV3< - com.google.cloud.datacatalog.v1.BigQueryDateShardedSpec, com.google.cloud.datacatalog.v1.BigQueryDateShardedSpec.Builder, com.google.cloud.datacatalog.v1.BigQueryDateShardedSpecOrBuilder> - getBigqueryDateShardedSpecFieldBuilder() { - if (bigqueryDateShardedSpecBuilder_ == null) { - if (!(typeSpecCase_ == 15)) { - typeSpec_ = com.google.cloud.datacatalog.v1.BigQueryDateShardedSpec.getDefaultInstance(); - } - bigqueryDateShardedSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - 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.SingleFieldBuilderV3< - 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 getDatabaseTableSpecFieldBuilder().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.SingleFieldBuilderV3< - com.google.cloud.datacatalog.v1.DatabaseTableSpec, com.google.cloud.datacatalog.v1.DatabaseTableSpec.Builder, com.google.cloud.datacatalog.v1.DatabaseTableSpecOrBuilder> - getDatabaseTableSpecFieldBuilder() { - if (databaseTableSpecBuilder_ == null) { - if (!(specCase_ == 24)) { - spec_ = com.google.cloud.datacatalog.v1.DatabaseTableSpec.getDefaultInstance(); - } - databaseTableSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - 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.SingleFieldBuilderV3< - 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 getDataSourceConnectionSpecFieldBuilder().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.SingleFieldBuilderV3< - com.google.cloud.datacatalog.v1.DataSourceConnectionSpec, com.google.cloud.datacatalog.v1.DataSourceConnectionSpec.Builder, com.google.cloud.datacatalog.v1.DataSourceConnectionSpecOrBuilder> - getDataSourceConnectionSpecFieldBuilder() { - if (dataSourceConnectionSpecBuilder_ == null) { - if (!(specCase_ == 27)) { - spec_ = com.google.cloud.datacatalog.v1.DataSourceConnectionSpec.getDefaultInstance(); - } - dataSourceConnectionSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - 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.SingleFieldBuilderV3< - 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 getRoutineSpecFieldBuilder().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.SingleFieldBuilderV3< - com.google.cloud.datacatalog.v1.RoutineSpec, com.google.cloud.datacatalog.v1.RoutineSpec.Builder, com.google.cloud.datacatalog.v1.RoutineSpecOrBuilder> - getRoutineSpecFieldBuilder() { - if (routineSpecBuilder_ == null) { - if (!(specCase_ == 28)) { - spec_ = com.google.cloud.datacatalog.v1.RoutineSpec.getDefaultInstance(); - } - routineSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - 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.SingleFieldBuilderV3< - 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 getDatasetSpecFieldBuilder().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.SingleFieldBuilderV3< - com.google.cloud.datacatalog.v1.DatasetSpec, com.google.cloud.datacatalog.v1.DatasetSpec.Builder, com.google.cloud.datacatalog.v1.DatasetSpecOrBuilder> - getDatasetSpecFieldBuilder() { - if (datasetSpecBuilder_ == null) { - if (!(specCase_ == 32)) { - spec_ = com.google.cloud.datacatalog.v1.DatasetSpec.getDefaultInstance(); - } - datasetSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - 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.SingleFieldBuilderV3< - 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 getFilesetSpecFieldBuilder().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.SingleFieldBuilderV3< - com.google.cloud.datacatalog.v1.FilesetSpec, com.google.cloud.datacatalog.v1.FilesetSpec.Builder, com.google.cloud.datacatalog.v1.FilesetSpecOrBuilder> - getFilesetSpecFieldBuilder() { - if (filesetSpecBuilder_ == null) { - if (!(specCase_ == 33)) { - spec_ = com.google.cloud.datacatalog.v1.FilesetSpec.getDefaultInstance(); - } - filesetSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - 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.SingleFieldBuilderV3< - 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 getServiceSpecFieldBuilder().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.SingleFieldBuilderV3< - com.google.cloud.datacatalog.v1.ServiceSpec, com.google.cloud.datacatalog.v1.ServiceSpec.Builder, com.google.cloud.datacatalog.v1.ServiceSpecOrBuilder> - getServiceSpecFieldBuilder() { - if (serviceSpecBuilder_ == null) { - if (!(specCase_ == 42)) { - spec_ = com.google.cloud.datacatalog.v1.ServiceSpec.getDefaultInstance(); - } - serviceSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - 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.SingleFieldBuilderV3< - 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 getModelSpecFieldBuilder().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.SingleFieldBuilderV3< - com.google.cloud.datacatalog.v1.ModelSpec, com.google.cloud.datacatalog.v1.ModelSpec.Builder, com.google.cloud.datacatalog.v1.ModelSpecOrBuilder> - getModelSpecFieldBuilder() { - if (modelSpecBuilder_ == null) { - if (!(specCase_ == 43)) { - spec_ = com.google.cloud.datacatalog.v1.ModelSpec.getDefaultInstance(); - } - modelSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - 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 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_ |= 0x00100000; - 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_ & ~0x00100000); - 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_ |= 0x00100000; - 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_ |= 0x00200000; - 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_ & ~0x00200000); - 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_ |= 0x00200000; - onChanged(); - return this; - } - - private com.google.cloud.datacatalog.v1.BusinessContext businessContext_; - private com.google.protobuf.SingleFieldBuilderV3< - 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_ & 0x00400000) != 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_ |= 0x00400000; - 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_ |= 0x00400000; - 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_ & 0x00400000) != 0) && - businessContext_ != null && - businessContext_ != com.google.cloud.datacatalog.v1.BusinessContext.getDefaultInstance()) { - getBusinessContextBuilder().mergeFrom(value); - } else { - businessContext_ = value; - } - } else { - businessContextBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00400000; - 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_ & ~0x00400000); - 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_ |= 0x00400000; - onChanged(); - return getBusinessContextFieldBuilder().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.SingleFieldBuilderV3< - com.google.cloud.datacatalog.v1.BusinessContext, com.google.cloud.datacatalog.v1.BusinessContext.Builder, com.google.cloud.datacatalog.v1.BusinessContextOrBuilder> - getBusinessContextFieldBuilder() { - if (businessContextBuilder_ == null) { - businessContextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - 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.SingleFieldBuilderV3< - 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_ & 0x00800000) != 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_ |= 0x00800000; - 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_ |= 0x00800000; - 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_ & 0x00800000) != 0) && - schema_ != null && - schema_ != com.google.cloud.datacatalog.v1.Schema.getDefaultInstance()) { - getSchemaBuilder().mergeFrom(value); - } else { - schema_ = value; - } - } else { - schemaBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00800000; - 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_ & ~0x00800000); - 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_ |= 0x00800000; - onChanged(); - return getSchemaFieldBuilder().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.SingleFieldBuilderV3< - com.google.cloud.datacatalog.v1.Schema, com.google.cloud.datacatalog.v1.Schema.Builder, com.google.cloud.datacatalog.v1.SchemaOrBuilder> - getSchemaFieldBuilder() { - if (schemaBuilder_ == null) { - schemaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - 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.SingleFieldBuilderV3< - 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_ & 0x01000000) != 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_ |= 0x01000000; - 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_ |= 0x01000000; - 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_ & 0x01000000) != 0) && - sourceSystemTimestamps_ != null && - sourceSystemTimestamps_ != com.google.cloud.datacatalog.v1.SystemTimestamps.getDefaultInstance()) { - getSourceSystemTimestampsBuilder().mergeFrom(value); - } else { - sourceSystemTimestamps_ = value; - } - } else { - sourceSystemTimestampsBuilder_.mergeFrom(value); - } - bitField0_ |= 0x01000000; - 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_ & ~0x01000000); - 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_ |= 0x01000000; - onChanged(); - return getSourceSystemTimestampsFieldBuilder().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.SingleFieldBuilderV3< - com.google.cloud.datacatalog.v1.SystemTimestamps, com.google.cloud.datacatalog.v1.SystemTimestamps.Builder, com.google.cloud.datacatalog.v1.SystemTimestampsOrBuilder> - getSourceSystemTimestampsFieldBuilder() { - if (sourceSystemTimestampsBuilder_ == null) { - sourceSystemTimestampsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - 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.SingleFieldBuilderV3< - 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_ & 0x02000000) != 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_ |= 0x02000000; - 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_ |= 0x02000000; - 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_ & 0x02000000) != 0) && - usageSignal_ != null && - usageSignal_ != com.google.cloud.datacatalog.v1.UsageSignal.getDefaultInstance()) { - getUsageSignalBuilder().mergeFrom(value); - } else { - usageSignal_ = value; - } - } else { - usageSignalBuilder_.mergeFrom(value); - } - bitField0_ |= 0x02000000; - onChanged(); - return this; - } - /** - *
-     * Resource usage statistics.
-     * 
- * - * .google.cloud.datacatalog.v1.UsageSignal usage_signal = 13; - */ - public Builder clearUsageSignal() { - bitField0_ = (bitField0_ & ~0x02000000); - 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_ |= 0x02000000; - onChanged(); - return getUsageSignalFieldBuilder().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.SingleFieldBuilderV3< - com.google.cloud.datacatalog.v1.UsageSignal, com.google.cloud.datacatalog.v1.UsageSignal.Builder, com.google.cloud.datacatalog.v1.UsageSignalOrBuilder> - getUsageSignalFieldBuilder() { - if (usageSignalBuilder_ == null) { - usageSignalBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - 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< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { - if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); - } - return labels_; - } - private com.google.protobuf.MapField - internalGetMutableLabels() { - if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); - } - if (!labels_.isMutable()) { - labels_ = labels_.copy(); - } - bitField0_ |= 0x04000000; - 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_ & ~0x04000000); - 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_ |= 0x04000000; - 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_ |= 0x04000000; - 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_ |= 0x04000000; - return this; - } - - private com.google.cloud.datacatalog.v1.DataSource dataSource_; - private com.google.protobuf.SingleFieldBuilderV3< - 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_ & 0x08000000) != 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_ |= 0x08000000; - 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_ |= 0x08000000; - 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_ & 0x08000000) != 0) && - dataSource_ != null && - dataSource_ != com.google.cloud.datacatalog.v1.DataSource.getDefaultInstance()) { - getDataSourceBuilder().mergeFrom(value); - } else { - dataSource_ = value; - } - } else { - dataSourceBuilder_.mergeFrom(value); - } - bitField0_ |= 0x08000000; - 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_ & ~0x08000000); - 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_ |= 0x08000000; - onChanged(); - return getDataSourceFieldBuilder().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.SingleFieldBuilderV3< - com.google.cloud.datacatalog.v1.DataSource, com.google.cloud.datacatalog.v1.DataSource.Builder, com.google.cloud.datacatalog.v1.DataSourceOrBuilder> - getDataSourceFieldBuilder() { - if (dataSourceBuilder_ == null) { - dataSourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - 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.SingleFieldBuilderV3< - 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_ & 0x10000000) != 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_ |= 0x10000000; - 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_ |= 0x10000000; - 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_ & 0x10000000) != 0) && - personalDetails_ != null && - personalDetails_ != com.google.cloud.datacatalog.v1.PersonalDetails.getDefaultInstance()) { - getPersonalDetailsBuilder().mergeFrom(value); - } else { - personalDetails_ = value; - } - } else { - personalDetailsBuilder_.mergeFrom(value); - } - bitField0_ |= 0x10000000; - 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_ & ~0x10000000); - 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_ |= 0x10000000; - onChanged(); - return getPersonalDetailsFieldBuilder().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.SingleFieldBuilderV3< - com.google.cloud.datacatalog.v1.PersonalDetails, com.google.cloud.datacatalog.v1.PersonalDetails.Builder, com.google.cloud.datacatalog.v1.PersonalDetailsOrBuilder> - getPersonalDetailsFieldBuilder() { - if (personalDetailsBuilder_ == null) { - personalDetailsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - 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_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/EntryGroup.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/EntryGroup.java deleted file mode 100644 index 51435e1079dc..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/EntryGroup.java +++ /dev/null @@ -1,1182 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/datacatalog.proto - -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} - */ -public final class EntryGroup extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.EntryGroup) - EntryGroupOrBuilder { -private static final long serialVersionUID = 0L; - // Use EntryGroup.newBuilder() to construct. - private EntryGroup(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private EntryGroup() { - name_ = ""; - displayName_ = ""; - description_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new EntryGroup(); - } - - 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.GeneratedMessageV3.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); - } - - public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - *
-   * 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; - * @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 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; - * @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 dataCatalogTimestamps_ != null; - } - /** - *
-   * 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_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_); - } - if (dataCatalogTimestamps_ != null) { - 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.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); - } - if (dataCatalogTimestamps_ != null) { - 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.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 (!getUnknownFields().equals(other.getUnknownFields())) return false; - 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.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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @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.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_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.dataCatalogTimestamps_ = dataCatalogTimestampsBuilder_ == null - ? dataCatalogTimestamps_ - : dataCatalogTimestampsBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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( - getDataCatalogTimestampsFieldBuilder().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_ = ""; - /** - *
-     * 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; - * @return The name. - */ - public java.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 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; - * @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 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; - * @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 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; - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * 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; - * @param value The 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.SingleFieldBuilderV3< - 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); - } - 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 getDataCatalogTimestampsFieldBuilder().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.SingleFieldBuilderV3< - com.google.cloud.datacatalog.v1.SystemTimestamps, com.google.cloud.datacatalog.v1.SystemTimestamps.Builder, com.google.cloud.datacatalog.v1.SystemTimestampsOrBuilder> - getDataCatalogTimestampsFieldBuilder() { - if (dataCatalogTimestampsBuilder_ == null) { - dataCatalogTimestampsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - 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_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/EntryGroupOrBuilder.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/EntryGroupOrBuilder.java deleted file mode 100644 index 8316977fdd30..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/EntryGroupOrBuilder.java +++ /dev/null @@ -1,108 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/datacatalog.proto - -package com.google.cloud.datacatalog.v1; - -public interface EntryGroupOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.EntryGroup) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * 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; - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * 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; - * @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(); -} diff --git a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/EntryOrBuilder.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/EntryOrBuilder.java deleted file mode 100644 index 9ff71bd278ab..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/EntryOrBuilder.java +++ /dev/null @@ -1,1014 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/datacatalog.proto - -package com.google.cloud.datacatalog.v1; - -public interface EntryOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.Entry) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Output only. 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.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Output only. 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.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(); - - /** - *
-   * 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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/EntryOverview.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/EntryOverview.java deleted file mode 100644 index 10d5cb351144..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/EntryOverview.java +++ /dev/null @@ -1,619 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/datacatalog.proto - -package com.google.cloud.datacatalog.v1; - -/** - *
- * Entry overview fields for rich text descriptions of entries.
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.EntryOverview} - */ -public final class EntryOverview extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.EntryOverview) - EntryOverviewOrBuilder { -private static final long serialVersionUID = 0L; - // Use EntryOverview.newBuilder() to construct. - private EntryOverview(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private EntryOverview() { - overview_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new EntryOverview(); - } - - 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(overview_)) { - com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(overview_)) { - size += com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/EntryOverviewOrBuilder.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/EntryOverviewOrBuilder.java deleted file mode 100644 index e66201e8d9ec..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/EntryOverviewOrBuilder.java +++ /dev/null @@ -1,41 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/datacatalog.proto - -package com.google.cloud.datacatalog.v1; - -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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/EntryType.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/EntryType.java deleted file mode 100644 index 8869e1fc3d37..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/EntryType.java +++ /dev/null @@ -1,406 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/datacatalog.proto - -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} - */ -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), - UNRECOGNIZED(-1), - ; - - /** - *
-   * 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; - - - 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; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - EntryType> 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 final 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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ExportTaxonomiesRequest.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ExportTaxonomiesRequest.java deleted file mode 100644 index 7f38a3d9369f..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ExportTaxonomiesRequest.java +++ /dev/null @@ -1,1024 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/policytagmanagerserialization.proto - -package com.google.cloud.datacatalog.v1; - -/** - *
- * Request message for
- * [ExportTaxonomies][google.cloud.datacatalog.v1.PolicyTagManagerSerialization.ExportTaxonomies].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.ExportTaxonomiesRequest} - */ -public final class ExportTaxonomiesRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.ExportTaxonomiesRequest) - ExportTaxonomiesRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use ExportTaxonomiesRequest.newBuilder() to construct. - private ExportTaxonomiesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ExportTaxonomiesRequest() { - parent_ = ""; - taxonomies_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ExportTaxonomiesRequest(); - } - - 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - for (int i = 0; i < taxonomies_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ExportTaxonomiesRequestOrBuilder.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ExportTaxonomiesRequestOrBuilder.java deleted file mode 100644 index 094e777b7133..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ExportTaxonomiesRequestOrBuilder.java +++ /dev/null @@ -1,95 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/policytagmanagerserialization.proto - -package com.google.cloud.datacatalog.v1; - -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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ExportTaxonomiesResponse.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ExportTaxonomiesResponse.java deleted file mode 100644 index b30b2e5927cf..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ExportTaxonomiesResponse.java +++ /dev/null @@ -1,861 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/policytagmanagerserialization.proto - -package com.google.cloud.datacatalog.v1; - -/** - *
- * Response message for
- * [ExportTaxonomies][google.cloud.datacatalog.v1.PolicyTagManagerSerialization.ExportTaxonomies].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.ExportTaxonomiesResponse} - */ -public final class ExportTaxonomiesResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.ExportTaxonomiesResponse) - ExportTaxonomiesResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use ExportTaxonomiesResponse.newBuilder() to construct. - private ExportTaxonomiesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ExportTaxonomiesResponse() { - taxonomies_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ExportTaxonomiesResponse(); - } - - 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.GeneratedMessageV3.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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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.GeneratedMessageV3.alwaysUseFieldBuilders ? - getTaxonomiesFieldBuilder() : 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.RepeatedFieldBuilderV3< - 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 getTaxonomiesFieldBuilder().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 getTaxonomiesFieldBuilder().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 getTaxonomiesFieldBuilder().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 getTaxonomiesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datacatalog.v1.SerializedTaxonomy, com.google.cloud.datacatalog.v1.SerializedTaxonomy.Builder, com.google.cloud.datacatalog.v1.SerializedTaxonomyOrBuilder> - getTaxonomiesFieldBuilder() { - if (taxonomiesBuilder_ == null) { - taxonomiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - 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_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ExportTaxonomiesResponseOrBuilder.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ExportTaxonomiesResponseOrBuilder.java deleted file mode 100644 index 74c938677ccf..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ExportTaxonomiesResponseOrBuilder.java +++ /dev/null @@ -1,53 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/policytagmanagerserialization.proto - -package com.google.cloud.datacatalog.v1; - -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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/FieldType.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/FieldType.java deleted file mode 100644 index cd54e15cff36..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/FieldType.java +++ /dev/null @@ -1,2843 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/tags.proto - -package com.google.cloud.datacatalog.v1; - -/** - * Protobuf type {@code google.cloud.datacatalog.v1.FieldType} - */ -public final class FieldType extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.FieldType) - FieldTypeOrBuilder { -private static final long serialVersionUID = 0L; - // Use FieldType.newBuilder() to construct. - private FieldType(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private FieldType() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.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), - ; - - /** - *
-     * 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< - PrimitiveType> 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 final 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.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.FieldType.EnumType) - EnumTypeOrBuilder { - private static final long serialVersionUID = 0L; - // Use EnumType.newBuilder() to construct. - private EnumType(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private EnumType() { - allowedValues_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new EnumType(); - } - - 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.GeneratedMessageV3.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.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.FieldType.EnumType.EnumValue) - EnumValueOrBuilder { - private static final long serialVersionUID = 0L; - // Use EnumValue.newBuilder() to construct. - private EnumValue(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private EnumValue() { - displayName_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new EnumValue(); - } - - 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(displayName_)) { - com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(displayName_)) { - size += com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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 - 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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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.GeneratedMessageV3.alwaysUseFieldBuilders ? - getAllowedValuesFieldBuilder() : 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.RepeatedFieldBuilderV3< - 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 getAllowedValuesFieldBuilder().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 - 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 getAllowedValuesFieldBuilder().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 getAllowedValuesFieldBuilder().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 getAllowedValuesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - 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> - getAllowedValuesFieldBuilder() { - if (allowedValuesBuilder_ == null) { - allowedValuesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - 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_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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( - getEnumTypeFieldBuilder().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.SingleFieldBuilderV3< - 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 getEnumTypeFieldBuilder().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.SingleFieldBuilderV3< - com.google.cloud.datacatalog.v1.FieldType.EnumType, com.google.cloud.datacatalog.v1.FieldType.EnumType.Builder, com.google.cloud.datacatalog.v1.FieldType.EnumTypeOrBuilder> - getEnumTypeFieldBuilder() { - if (enumTypeBuilder_ == null) { - if (!(typeDeclCase_ == 2)) { - typeDecl_ = com.google.cloud.datacatalog.v1.FieldType.EnumType.getDefaultInstance(); - } - enumTypeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - 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_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/FieldTypeOrBuilder.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/FieldTypeOrBuilder.java deleted file mode 100644 index aabcf24892f1..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/FieldTypeOrBuilder.java +++ /dev/null @@ -1,66 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/tags.proto - -package com.google.cloud.datacatalog.v1; - -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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/FilesetSpec.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/FilesetSpec.java deleted file mode 100644 index ef17e8f4e85e..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/FilesetSpec.java +++ /dev/null @@ -1,656 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/datacatalog.proto - -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} - */ -public final class FilesetSpec extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.FilesetSpec) - FilesetSpecOrBuilder { -private static final long serialVersionUID = 0L; - // Use FilesetSpec.newBuilder() to construct. - private FilesetSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private FilesetSpec() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.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); - } - - 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 dataplexFileset_ != null; - } - /** - *
-   * 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 (dataplexFileset_ != null) { - output.writeMessage(1, getDataplexFileset()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (dataplexFileset_ != null) { - 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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @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_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.dataplexFileset_ = dataplexFilesetBuilder_ == null - ? dataplexFileset_ - : dataplexFilesetBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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( - getDataplexFilesetFieldBuilder().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.SingleFieldBuilderV3< - 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); - } - 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 getDataplexFilesetFieldBuilder().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.SingleFieldBuilderV3< - com.google.cloud.datacatalog.v1.DataplexFilesetSpec, com.google.cloud.datacatalog.v1.DataplexFilesetSpec.Builder, com.google.cloud.datacatalog.v1.DataplexFilesetSpecOrBuilder> - getDataplexFilesetFieldBuilder() { - if (dataplexFilesetBuilder_ == null) { - dataplexFilesetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - 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_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/FilesetSpecOrBuilder.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/FilesetSpecOrBuilder.java deleted file mode 100644 index 897a46af28aa..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/FilesetSpecOrBuilder.java +++ /dev/null @@ -1,39 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/datacatalog.proto - -package com.google.cloud.datacatalog.v1; - -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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/GcsFileSpec.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/GcsFileSpec.java deleted file mode 100644 index 72140dd88d6b..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/GcsFileSpec.java +++ /dev/null @@ -1,901 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/gcs_fileset_spec.proto - -package com.google.cloud.datacatalog.v1; - -/** - *
- * Specification of a single file in Cloud Storage.
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.GcsFileSpec} - */ -public final class GcsFileSpec extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.GcsFileSpec) - GcsFileSpecOrBuilder { -private static final long serialVersionUID = 0L; - // Use GcsFileSpec.newBuilder() to construct. - private GcsFileSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GcsFileSpec() { - filePath_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GcsFileSpec(); - } - - 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.GeneratedMessageV3.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); - } - - 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 gcsTimestamps_ != null; - } - /** - *
-   * 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.GeneratedMessageV3.isStringEmpty(filePath_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, filePath_); - } - if (gcsTimestamps_ != null) { - 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.GeneratedMessageV3.isStringEmpty(filePath_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, filePath_); - } - if (gcsTimestamps_ != null) { - 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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @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_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.gcsTimestamps_ = gcsTimestampsBuilder_ == null - ? gcsTimestamps_ - : gcsTimestampsBuilder_.build(); - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.sizeBytes_ = sizeBytes_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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( - getGcsTimestampsFieldBuilder().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.SingleFieldBuilderV3< - 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); - } - 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 getGcsTimestampsFieldBuilder().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.SingleFieldBuilderV3< - com.google.cloud.datacatalog.v1.SystemTimestamps, com.google.cloud.datacatalog.v1.SystemTimestamps.Builder, com.google.cloud.datacatalog.v1.SystemTimestampsOrBuilder> - getGcsTimestampsFieldBuilder() { - if (gcsTimestampsBuilder_ == null) { - gcsTimestampsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - 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; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/GcsFileSpecOrBuilder.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/GcsFileSpecOrBuilder.java deleted file mode 100644 index 4a97a08a6a08..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/GcsFileSpecOrBuilder.java +++ /dev/null @@ -1,69 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/gcs_fileset_spec.proto - -package com.google.cloud.datacatalog.v1; - -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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/GcsFilesetSpec.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/GcsFilesetSpec.java deleted file mode 100644 index a270b9ef2105..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/GcsFilesetSpec.java +++ /dev/null @@ -1,1487 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/gcs_fileset_spec.proto - -package com.google.cloud.datacatalog.v1; - -/** - *
- * Describes a Cloud Storage fileset entry.
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.GcsFilesetSpec} - */ -public final class GcsFilesetSpec extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.GcsFilesetSpec) - GcsFilesetSpecOrBuilder { -private static final long serialVersionUID = 0L; - // Use GcsFilesetSpec.newBuilder() to construct. - private GcsFilesetSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GcsFilesetSpec() { - filePatterns_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - sampleGcsFileSpecs_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GcsFilesetSpec(); - } - - 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.GeneratedMessageV3.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/gsutil/addlhelp/WildcardNames).
-   *
-   * 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/gsutil/addlhelp/WildcardNames).
-   *
-   * 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/gsutil/addlhelp/WildcardNames).
-   *
-   * 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/gsutil/addlhelp/WildcardNames).
-   *
-   * 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.GeneratedMessageV3.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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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.GeneratedMessageV3.alwaysUseFieldBuilders ? - getSampleGcsFileSpecsFieldBuilder() : 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/gsutil/addlhelp/WildcardNames).
-     *
-     * 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/gsutil/addlhelp/WildcardNames).
-     *
-     * 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/gsutil/addlhelp/WildcardNames).
-     *
-     * 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/gsutil/addlhelp/WildcardNames).
-     *
-     * 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/gsutil/addlhelp/WildcardNames).
-     *
-     * 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/gsutil/addlhelp/WildcardNames).
-     *
-     * 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/gsutil/addlhelp/WildcardNames).
-     *
-     * 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/gsutil/addlhelp/WildcardNames).
-     *
-     * 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/gsutil/addlhelp/WildcardNames).
-     *
-     * 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.RepeatedFieldBuilderV3< - 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 getSampleGcsFileSpecsFieldBuilder().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 getSampleGcsFileSpecsFieldBuilder().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 getSampleGcsFileSpecsFieldBuilder().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 getSampleGcsFileSpecsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datacatalog.v1.GcsFileSpec, com.google.cloud.datacatalog.v1.GcsFileSpec.Builder, com.google.cloud.datacatalog.v1.GcsFileSpecOrBuilder> - getSampleGcsFileSpecsFieldBuilder() { - if (sampleGcsFileSpecsBuilder_ == null) { - sampleGcsFileSpecsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - 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_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/GcsFilesetSpecOrBuilder.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/GcsFilesetSpecOrBuilder.java deleted file mode 100644 index a0925605aff9..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/GcsFilesetSpecOrBuilder.java +++ /dev/null @@ -1,211 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/gcs_fileset_spec.proto - -package com.google.cloud.datacatalog.v1; - -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/gsutil/addlhelp/WildcardNames).
-   *
-   * 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/gsutil/addlhelp/WildcardNames).
-   *
-   * 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/gsutil/addlhelp/WildcardNames).
-   *
-   * 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/gsutil/addlhelp/WildcardNames).
-   *
-   * 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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/GcsFilesetSpecOuterClass.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/GcsFilesetSpecOuterClass.java deleted file mode 100644 index ff39fda5c9a9..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/GcsFilesetSpecOuterClass.java +++ /dev/null @@ -1,81 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/gcs_fileset_spec.proto - -package com.google.cloud.datacatalog.v1; - -public final class GcsFilesetSpecOuterClass { - private 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.GeneratedMessageV3.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.GeneratedMessageV3.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" + - "\"|\n\016GcsFilesetSpec\022\033\n\rfile_patterns\030\001 \003(" + - "\tB\004\342A\001\002\022M\n\025sample_gcs_file_specs\030\002 \003(\0132(" + - ".google.cloud.datacatalog.v1.GcsFileSpec" + - "B\004\342A\001\003\"\215\001\n\013GcsFileSpec\022\027\n\tfile_path\030\001 \001(" + - "\tB\004\342A\001\002\022K\n\016gcs_timestamps\030\002 \001(\0132-.google" + - ".cloud.datacatalog.v1.SystemTimestampsB\004" + - "\342A\001\003\022\030\n\nsize_bytes\030\004 \001(\003B\004\342A\001\003B\306\001\n\037com.g" + - "oogle.cloud.datacatalog.v1P\001ZAcloud.goog" + - "le.com/go/datacatalog/apiv1/datacatalogp" + - "b;datacatalogpb\370\001\001\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.FieldBehaviorProto.getDescriptor(), - com.google.cloud.datacatalog.v1.Timestamps.getDescriptor(), - }); - internal_static_google_cloud_datacatalog_v1_GcsFilesetSpec_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_datacatalog_v1_GcsFilesetSpec_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_GcsFilesetSpec_descriptor, - new java.lang.String[] { "FilePatterns", "SampleGcsFileSpecs", }); - internal_static_google_cloud_datacatalog_v1_GcsFileSpec_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_datacatalog_v1_GcsFileSpec_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_GcsFileSpec_descriptor, - new java.lang.String[] { "FilePath", "GcsTimestamps", "SizeBytes", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.cloud.datacatalog.v1.Timestamps.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/GetEntryGroupRequest.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/GetEntryGroupRequest.java deleted file mode 100644 index 0416eaa694e1..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/GetEntryGroupRequest.java +++ /dev/null @@ -1,808 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/datacatalog.proto - -package com.google.cloud.datacatalog.v1; - -/** - *
- * Request message for
- * [GetEntryGroup][google.cloud.datacatalog.v1.DataCatalog.GetEntryGroup].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.GetEntryGroupRequest} - */ -public final class GetEntryGroupRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.GetEntryGroupRequest) - GetEntryGroupRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use GetEntryGroupRequest.newBuilder() to construct. - private GetEntryGroupRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetEntryGroupRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetEntryGroupRequest(); - } - - 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.GeneratedMessageV3.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); - } - - 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 readMask_ != null; - } - /** - *
-   * 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.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (readMask_ != null) { - 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.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (readMask_ != null) { - 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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @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_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.readMask_ = readMaskBuilder_ == null - ? readMask_ - : readMaskBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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( - getReadMaskFieldBuilder().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.SingleFieldBuilderV3< - 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); - } - 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 getReadMaskFieldBuilder().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.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> - getReadMaskFieldBuilder() { - if (readMaskBuilder_ == null) { - readMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( - getReadMask(), - getParentForChildren(), - isClean()); - readMask_ = null; - } - return readMaskBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/GetEntryGroupRequestOrBuilder.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/GetEntryGroupRequestOrBuilder.java deleted file mode 100644 index 580920d70316..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/GetEntryGroupRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/datacatalog.proto - -package com.google.cloud.datacatalog.v1; - -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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/GetEntryRequest.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/GetEntryRequest.java deleted file mode 100644 index d0ec140a1a60..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/GetEntryRequest.java +++ /dev/null @@ -1,579 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/datacatalog.proto - -package com.google.cloud.datacatalog.v1; - -/** - *
- * Request message for
- * [GetEntry][google.cloud.datacatalog.v1.DataCatalog.GetEntry].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.GetEntryRequest} - */ -public final class GetEntryRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.GetEntryRequest) - GetEntryRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use GetEntryRequest.newBuilder() to construct. - private GetEntryRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetEntryRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetEntryRequest(); - } - - 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.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 clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/GetEntryRequestOrBuilder.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/GetEntryRequestOrBuilder.java deleted file mode 100644 index 5f7d02f02b58..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/GetEntryRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/datacatalog.proto - -package com.google.cloud.datacatalog.v1; - -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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/GetPolicyTagRequest.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/GetPolicyTagRequest.java deleted file mode 100644 index c6ecbcb8fceb..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/GetPolicyTagRequest.java +++ /dev/null @@ -1,579 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/policytagmanager.proto - -package com.google.cloud.datacatalog.v1; - -/** - *
- * Request message for
- * [GetPolicyTag][google.cloud.datacatalog.v1.PolicyTagManager.GetPolicyTag].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.GetPolicyTagRequest} - */ -public final class GetPolicyTagRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.GetPolicyTagRequest) - GetPolicyTagRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use GetPolicyTagRequest.newBuilder() to construct. - private GetPolicyTagRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetPolicyTagRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetPolicyTagRequest(); - } - - 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.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 clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/GetPolicyTagRequestOrBuilder.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/GetPolicyTagRequestOrBuilder.java deleted file mode 100644 index 390bf76f337d..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/GetPolicyTagRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/policytagmanager.proto - -package com.google.cloud.datacatalog.v1; - -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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/GetTagTemplateRequest.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/GetTagTemplateRequest.java deleted file mode 100644 index 6ec1d6cc3b44..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/GetTagTemplateRequest.java +++ /dev/null @@ -1,579 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/datacatalog.proto - -package com.google.cloud.datacatalog.v1; - -/** - *
- * Request message for
- * [GetTagTemplate][google.cloud.datacatalog.v1.DataCatalog.GetTagTemplate].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.GetTagTemplateRequest} - */ -public final class GetTagTemplateRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.GetTagTemplateRequest) - GetTagTemplateRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use GetTagTemplateRequest.newBuilder() to construct. - private GetTagTemplateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetTagTemplateRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetTagTemplateRequest(); - } - - 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.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 clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/GetTagTemplateRequestOrBuilder.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/GetTagTemplateRequestOrBuilder.java deleted file mode 100644 index a686c82f7dee..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/GetTagTemplateRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/datacatalog.proto - -package com.google.cloud.datacatalog.v1; - -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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/GetTaxonomyRequest.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/GetTaxonomyRequest.java deleted file mode 100644 index b31dc1f28db2..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/GetTaxonomyRequest.java +++ /dev/null @@ -1,579 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/policytagmanager.proto - -package com.google.cloud.datacatalog.v1; - -/** - *
- * Request message for
- * [GetTaxonomy][google.cloud.datacatalog.v1.PolicyTagManager.GetTaxonomy].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.GetTaxonomyRequest} - */ -public final class GetTaxonomyRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.GetTaxonomyRequest) - GetTaxonomyRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use GetTaxonomyRequest.newBuilder() to construct. - private GetTaxonomyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetTaxonomyRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetTaxonomyRequest(); - } - - 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.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 clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/GetTaxonomyRequestOrBuilder.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/GetTaxonomyRequestOrBuilder.java deleted file mode 100644 index 57f7380e97cb..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/GetTaxonomyRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/policytagmanager.proto - -package com.google.cloud.datacatalog.v1; - -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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ImportEntriesMetadata.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ImportEntriesMetadata.java deleted file mode 100644 index 2d5f2563e12f..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ImportEntriesMetadata.java +++ /dev/null @@ -1,1233 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/datacatalog.proto - -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} - */ -public final class ImportEntriesMetadata extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.ImportEntriesMetadata) - ImportEntriesMetadataOrBuilder { -private static final long serialVersionUID = 0L; - // Use ImportEntriesMetadata.newBuilder() to construct. - private ImportEntriesMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ImportEntriesMetadata() { - state_ = 0; - errors_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ImportEntriesMetadata(); - } - - 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.GeneratedMessageV3.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), - ; - - /** - *
-     * 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< - ImportState> 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 final 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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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.GeneratedMessageV3.alwaysUseFieldBuilders ? - getErrorsFieldBuilder() : 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.RepeatedFieldBuilderV3< - 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 getErrorsFieldBuilder().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 getErrorsFieldBuilder().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 getErrorsFieldBuilder().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 getErrorsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> - getErrorsFieldBuilder() { - if (errorsBuilder_ == null) { - errorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>( - errors_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - errors_ = null; - } - return errorsBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ImportEntriesMetadataOrBuilder.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ImportEntriesMetadataOrBuilder.java deleted file mode 100644 index e229a74d117e..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ImportEntriesMetadataOrBuilder.java +++ /dev/null @@ -1,87 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/datacatalog.proto - -package com.google.cloud.datacatalog.v1; - -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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ImportEntriesRequest.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ImportEntriesRequest.java deleted file mode 100644 index f0066e0a1652..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ImportEntriesRequest.java +++ /dev/null @@ -1,1036 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/datacatalog.proto - -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} - */ -public final class ImportEntriesRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.ImportEntriesRequest) - ImportEntriesRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use ImportEntriesRequest.newBuilder() to construct. - private ImportEntriesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ImportEntriesRequest() { - parent_ = ""; - jobId_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ImportEntriesRequest(); - } - - 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - if (sourceCase_ == 2) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, source_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(jobId_)) { - com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - if (sourceCase_ == 2) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, source_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(jobId_)) { - size += com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ImportEntriesRequestOrBuilder.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ImportEntriesRequestOrBuilder.java deleted file mode 100644 index cbcc1c1deef8..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ImportEntriesRequestOrBuilder.java +++ /dev/null @@ -1,82 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/datacatalog.proto - -package com.google.cloud.datacatalog.v1; - -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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ImportEntriesResponse.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ImportEntriesResponse.java deleted file mode 100644 index b2ae625bd951..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ImportEntriesResponse.java +++ /dev/null @@ -1,652 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/datacatalog.proto - -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} - */ -public final class ImportEntriesResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.ImportEntriesResponse) - ImportEntriesResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use ImportEntriesResponse.newBuilder() to construct. - private ImportEntriesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ImportEntriesResponse() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ImportEntriesResponseOrBuilder.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ImportEntriesResponseOrBuilder.java deleted file mode 100644 index cd875f5eab6c..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ImportEntriesResponseOrBuilder.java +++ /dev/null @@ -1,49 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/datacatalog.proto - -package com.google.cloud.datacatalog.v1; - -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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ImportTaxonomiesRequest.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ImportTaxonomiesRequest.java deleted file mode 100644 index de46e48df81a..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ImportTaxonomiesRequest.java +++ /dev/null @@ -1,1173 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/policytagmanagerserialization.proto - -package com.google.cloud.datacatalog.v1; - -/** - *
- * Request message for
- * [ImportTaxonomies][google.cloud.datacatalog.v1.PolicyTagManagerSerialization.ImportTaxonomies].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.ImportTaxonomiesRequest} - */ -public final class ImportTaxonomiesRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.ImportTaxonomiesRequest) - ImportTaxonomiesRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use ImportTaxonomiesRequest.newBuilder() to construct. - private ImportTaxonomiesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ImportTaxonomiesRequest() { - parent_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ImportTaxonomiesRequest(); - } - - 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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( - getInlineSourceFieldBuilder().getBuilder(), - extensionRegistry); - sourceCase_ = 2; - break; - } // case 18 - case 26: { - input.readMessage( - getCrossRegionalSourceFieldBuilder().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.SingleFieldBuilderV3< - 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 getInlineSourceFieldBuilder().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.SingleFieldBuilderV3< - com.google.cloud.datacatalog.v1.InlineSource, com.google.cloud.datacatalog.v1.InlineSource.Builder, com.google.cloud.datacatalog.v1.InlineSourceOrBuilder> - getInlineSourceFieldBuilder() { - if (inlineSourceBuilder_ == null) { - if (!(sourceCase_ == 2)) { - source_ = com.google.cloud.datacatalog.v1.InlineSource.getDefaultInstance(); - } - inlineSourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - 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.SingleFieldBuilderV3< - 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 getCrossRegionalSourceFieldBuilder().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.SingleFieldBuilderV3< - com.google.cloud.datacatalog.v1.CrossRegionalSource, com.google.cloud.datacatalog.v1.CrossRegionalSource.Builder, com.google.cloud.datacatalog.v1.CrossRegionalSourceOrBuilder> - getCrossRegionalSourceFieldBuilder() { - if (crossRegionalSourceBuilder_ == null) { - if (!(sourceCase_ == 3)) { - source_ = com.google.cloud.datacatalog.v1.CrossRegionalSource.getDefaultInstance(); - } - crossRegionalSourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - 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_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ImportTaxonomiesRequestOrBuilder.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ImportTaxonomiesRequestOrBuilder.java deleted file mode 100644 index 4ed92f09d014..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ImportTaxonomiesRequestOrBuilder.java +++ /dev/null @@ -1,87 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/policytagmanagerserialization.proto - -package com.google.cloud.datacatalog.v1; - -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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ImportTaxonomiesResponse.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ImportTaxonomiesResponse.java deleted file mode 100644 index 2568dc4d2f8f..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ImportTaxonomiesResponse.java +++ /dev/null @@ -1,861 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/policytagmanagerserialization.proto - -package com.google.cloud.datacatalog.v1; - -/** - *
- * Response message for
- * [ImportTaxonomies][google.cloud.datacatalog.v1.PolicyTagManagerSerialization.ImportTaxonomies].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.ImportTaxonomiesResponse} - */ -public final class ImportTaxonomiesResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.ImportTaxonomiesResponse) - ImportTaxonomiesResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use ImportTaxonomiesResponse.newBuilder() to construct. - private ImportTaxonomiesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ImportTaxonomiesResponse() { - taxonomies_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ImportTaxonomiesResponse(); - } - - 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.GeneratedMessageV3.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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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.GeneratedMessageV3.alwaysUseFieldBuilders ? - getTaxonomiesFieldBuilder() : 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.RepeatedFieldBuilderV3< - 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 getTaxonomiesFieldBuilder().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 getTaxonomiesFieldBuilder().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 getTaxonomiesFieldBuilder().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 getTaxonomiesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datacatalog.v1.Taxonomy, com.google.cloud.datacatalog.v1.Taxonomy.Builder, com.google.cloud.datacatalog.v1.TaxonomyOrBuilder> - getTaxonomiesFieldBuilder() { - if (taxonomiesBuilder_ == null) { - taxonomiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - 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_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ImportTaxonomiesResponseOrBuilder.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ImportTaxonomiesResponseOrBuilder.java deleted file mode 100644 index e9df0b81d75e..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ImportTaxonomiesResponseOrBuilder.java +++ /dev/null @@ -1,53 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/policytagmanagerserialization.proto - -package com.google.cloud.datacatalog.v1; - -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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/InlineSource.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/InlineSource.java deleted file mode 100644 index e9864bd1c705..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/InlineSource.java +++ /dev/null @@ -1,859 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/policytagmanagerserialization.proto - -package com.google.cloud.datacatalog.v1; - -/** - *
- * Inline source containing taxonomies to import.
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.InlineSource} - */ -public final class InlineSource extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.InlineSource) - InlineSourceOrBuilder { -private static final long serialVersionUID = 0L; - // Use InlineSource.newBuilder() to construct. - private InlineSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private InlineSource() { - taxonomies_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new InlineSource(); - } - - 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.GeneratedMessageV3.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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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.GeneratedMessageV3.alwaysUseFieldBuilders ? - getTaxonomiesFieldBuilder() : 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.RepeatedFieldBuilderV3< - 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 getTaxonomiesFieldBuilder().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 getTaxonomiesFieldBuilder().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 getTaxonomiesFieldBuilder().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 getTaxonomiesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datacatalog.v1.SerializedTaxonomy, com.google.cloud.datacatalog.v1.SerializedTaxonomy.Builder, com.google.cloud.datacatalog.v1.SerializedTaxonomyOrBuilder> - getTaxonomiesFieldBuilder() { - if (taxonomiesBuilder_ == null) { - taxonomiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - 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_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/InlineSourceOrBuilder.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/InlineSourceOrBuilder.java deleted file mode 100644 index 701e06a8ddd8..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/InlineSourceOrBuilder.java +++ /dev/null @@ -1,53 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/policytagmanagerserialization.proto - -package com.google.cloud.datacatalog.v1; - -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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/IntegratedSystem.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/IntegratedSystem.java deleted file mode 100644 index 4adb5fc66315..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/IntegratedSystem.java +++ /dev/null @@ -1,269 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/common.proto - -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} - */ -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), - ; - - /** - *
-   * 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< - IntegratedSystem> 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 final 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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListEntriesRequest.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListEntriesRequest.java deleted file mode 100644 index 67cf779d66de..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListEntriesRequest.java +++ /dev/null @@ -1,1127 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/datacatalog.proto - -package com.google.cloud.datacatalog.v1; - -/** - *
- * Request message for
- * [ListEntries][google.cloud.datacatalog.v1.DataCatalog.ListEntries].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.ListEntriesRequest} - */ -public final class ListEntriesRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.ListEntriesRequest) - ListEntriesRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use ListEntriesRequest.newBuilder() to construct. - private ListEntriesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ListEntriesRequest() { - parent_ = ""; - pageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ListEntriesRequest(); - } - - 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.GeneratedMessageV3.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); - } - - 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 readMask_ != null; - } - /** - *
-   * 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.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - if (pageSize_ != 0) { - output.writeInt32(2, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); - } - if (readMask_ != null) { - 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.GeneratedMessageV3.isStringEmpty(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); - } - if (readMask_ != null) { - 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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @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_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.readMask_ = readMaskBuilder_ == null - ? readMask_ - : readMaskBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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( - getReadMaskFieldBuilder().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.SingleFieldBuilderV3< - 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); - } - 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 getReadMaskFieldBuilder().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.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> - getReadMaskFieldBuilder() { - if (readMaskBuilder_ == null) { - readMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( - getReadMask(), - getParentForChildren(), - isClean()); - readMask_ = null; - } - return readMaskBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListEntriesRequestOrBuilder.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListEntriesRequestOrBuilder.java deleted file mode 100644 index 1c65f4a515e3..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListEntriesRequestOrBuilder.java +++ /dev/null @@ -1,105 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/datacatalog.proto - -package com.google.cloud.datacatalog.v1; - -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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListEntriesResponse.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListEntriesResponse.java deleted file mode 100644 index 42fedb24210e..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListEntriesResponse.java +++ /dev/null @@ -1,1032 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/datacatalog.proto - -package com.google.cloud.datacatalog.v1; - -/** - *
- * Response message for
- * [ListEntries][google.cloud.datacatalog.v1.DataCatalog.ListEntries].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.ListEntriesResponse} - */ -public final class ListEntriesResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.ListEntriesResponse) - ListEntriesResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use ListEntriesResponse.newBuilder() to construct. - private ListEntriesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ListEntriesResponse() { - entries_ = java.util.Collections.emptyList(); - nextPageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ListEntriesResponse(); - } - - 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < entries_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, entries_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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.GeneratedMessageV3.alwaysUseFieldBuilders ? - getEntriesFieldBuilder() : 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.RepeatedFieldBuilderV3< - 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 getEntriesFieldBuilder().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 getEntriesFieldBuilder().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 getEntriesFieldBuilder().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 getEntriesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datacatalog.v1.Entry, com.google.cloud.datacatalog.v1.Entry.Builder, com.google.cloud.datacatalog.v1.EntryOrBuilder> - getEntriesFieldBuilder() { - if (entriesBuilder_ == null) { - entriesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - 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; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListEntriesResponseOrBuilder.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListEntriesResponseOrBuilder.java deleted file mode 100644 index b4817e03f031..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListEntriesResponseOrBuilder.java +++ /dev/null @@ -1,75 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/datacatalog.proto - -package com.google.cloud.datacatalog.v1; - -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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListEntryGroupsRequest.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListEntryGroupsRequest.java deleted file mode 100644 index ee5190decc23..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListEntryGroupsRequest.java +++ /dev/null @@ -1,858 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/datacatalog.proto - -package com.google.cloud.datacatalog.v1; - -/** - *
- * Request message for
- * [ListEntryGroups][google.cloud.datacatalog.v1.DataCatalog.ListEntryGroups].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.ListEntryGroupsRequest} - */ -public final class ListEntryGroupsRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.ListEntryGroupsRequest) - ListEntryGroupsRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use ListEntryGroupsRequest.newBuilder() to construct. - private ListEntryGroupsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ListEntryGroupsRequest() { - parent_ = ""; - pageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ListEntryGroupsRequest(); - } - - 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - if (pageSize_ != 0) { - output.writeInt32(2, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - parent_ = ""; - pageSize_ = 0; - pageToken_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.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 clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListEntryGroupsRequestOrBuilder.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListEntryGroupsRequestOrBuilder.java deleted file mode 100644 index 6d0c060e1893..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListEntryGroupsRequestOrBuilder.java +++ /dev/null @@ -1,68 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/datacatalog.proto - -package com.google.cloud.datacatalog.v1; - -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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListEntryGroupsResponse.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListEntryGroupsResponse.java deleted file mode 100644 index e6e6748d5024..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListEntryGroupsResponse.java +++ /dev/null @@ -1,1032 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/datacatalog.proto - -package com.google.cloud.datacatalog.v1; - -/** - *
- * Response message for
- * [ListEntryGroups][google.cloud.datacatalog.v1.DataCatalog.ListEntryGroups].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.ListEntryGroupsResponse} - */ -public final class ListEntryGroupsResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.ListEntryGroupsResponse) - ListEntryGroupsResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use ListEntryGroupsResponse.newBuilder() to construct. - private ListEntryGroupsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ListEntryGroupsResponse() { - entryGroups_ = java.util.Collections.emptyList(); - nextPageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ListEntryGroupsResponse(); - } - - 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < entryGroups_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, entryGroups_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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.GeneratedMessageV3.alwaysUseFieldBuilders ? - getEntryGroupsFieldBuilder() : 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.RepeatedFieldBuilderV3< - 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 getEntryGroupsFieldBuilder().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 getEntryGroupsFieldBuilder().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 getEntryGroupsFieldBuilder().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 getEntryGroupsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datacatalog.v1.EntryGroup, com.google.cloud.datacatalog.v1.EntryGroup.Builder, com.google.cloud.datacatalog.v1.EntryGroupOrBuilder> - getEntryGroupsFieldBuilder() { - if (entryGroupsBuilder_ == null) { - entryGroupsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - 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; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListEntryGroupsResponseOrBuilder.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListEntryGroupsResponseOrBuilder.java deleted file mode 100644 index 7905abbf9d46..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListEntryGroupsResponseOrBuilder.java +++ /dev/null @@ -1,75 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/datacatalog.proto - -package com.google.cloud.datacatalog.v1; - -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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListPolicyTagsRequest.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListPolicyTagsRequest.java deleted file mode 100644 index d1e535368613..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListPolicyTagsRequest.java +++ /dev/null @@ -1,854 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/policytagmanager.proto - -package com.google.cloud.datacatalog.v1; - -/** - *
- * Request message for
- * [ListPolicyTags][google.cloud.datacatalog.v1.PolicyTagManager.ListPolicyTags].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.ListPolicyTagsRequest} - */ -public final class ListPolicyTagsRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.ListPolicyTagsRequest) - ListPolicyTagsRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use ListPolicyTagsRequest.newBuilder() to construct. - private ListPolicyTagsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ListPolicyTagsRequest() { - parent_ = ""; - pageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ListPolicyTagsRequest(); - } - - 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - if (pageSize_ != 0) { - output.writeInt32(2, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - parent_ = ""; - pageSize_ = 0; - pageToken_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.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 clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListPolicyTagsRequestOrBuilder.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListPolicyTagsRequestOrBuilder.java deleted file mode 100644 index b61b50eeb423..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListPolicyTagsRequestOrBuilder.java +++ /dev/null @@ -1,67 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/policytagmanager.proto - -package com.google.cloud.datacatalog.v1; - -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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListPolicyTagsResponse.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListPolicyTagsResponse.java deleted file mode 100644 index 751f3cb79e17..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListPolicyTagsResponse.java +++ /dev/null @@ -1,1032 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/policytagmanager.proto - -package com.google.cloud.datacatalog.v1; - -/** - *
- * Response message for
- * [ListPolicyTags][google.cloud.datacatalog.v1.PolicyTagManager.ListPolicyTags].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.ListPolicyTagsResponse} - */ -public final class ListPolicyTagsResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.ListPolicyTagsResponse) - ListPolicyTagsResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use ListPolicyTagsResponse.newBuilder() to construct. - private ListPolicyTagsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ListPolicyTagsResponse() { - policyTags_ = java.util.Collections.emptyList(); - nextPageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ListPolicyTagsResponse(); - } - - 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < policyTags_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, policyTags_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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.GeneratedMessageV3.alwaysUseFieldBuilders ? - getPolicyTagsFieldBuilder() : 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.RepeatedFieldBuilderV3< - 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 getPolicyTagsFieldBuilder().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 getPolicyTagsFieldBuilder().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 getPolicyTagsFieldBuilder().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 getPolicyTagsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datacatalog.v1.PolicyTag, com.google.cloud.datacatalog.v1.PolicyTag.Builder, com.google.cloud.datacatalog.v1.PolicyTagOrBuilder> - getPolicyTagsFieldBuilder() { - if (policyTagsBuilder_ == null) { - policyTagsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - 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; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListPolicyTagsResponseOrBuilder.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListPolicyTagsResponseOrBuilder.java deleted file mode 100644 index 99a5d4b0ff14..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListPolicyTagsResponseOrBuilder.java +++ /dev/null @@ -1,75 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/policytagmanager.proto - -package com.google.cloud.datacatalog.v1; - -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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListTagsRequest.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListTagsRequest.java deleted file mode 100644 index 38aa4a21ef1c..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListTagsRequest.java +++ /dev/null @@ -1,860 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/datacatalog.proto - -package com.google.cloud.datacatalog.v1; - -/** - *
- * Request message for
- * [ListTags][google.cloud.datacatalog.v1.DataCatalog.ListTags].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.ListTagsRequest} - */ -public final class ListTagsRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.ListTagsRequest) - ListTagsRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use ListTagsRequest.newBuilder() to construct. - private ListTagsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ListTagsRequest() { - parent_ = ""; - pageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ListTagsRequest(); - } - - 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - if (pageSize_ != 0) { - output.writeInt32(2, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - parent_ = ""; - pageSize_ = 0; - pageToken_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.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 clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListTagsRequestOrBuilder.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListTagsRequestOrBuilder.java deleted file mode 100644 index fb840d5c25e1..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListTagsRequestOrBuilder.java +++ /dev/null @@ -1,69 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/datacatalog.proto - -package com.google.cloud.datacatalog.v1; - -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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListTagsResponse.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListTagsResponse.java deleted file mode 100644 index 1156c6c87de5..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListTagsResponse.java +++ /dev/null @@ -1,1032 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/datacatalog.proto - -package com.google.cloud.datacatalog.v1; - -/** - *
- * Response message for
- * [ListTags][google.cloud.datacatalog.v1.DataCatalog.ListTags].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.ListTagsResponse} - */ -public final class ListTagsResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.ListTagsResponse) - ListTagsResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use ListTagsResponse.newBuilder() to construct. - private ListTagsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ListTagsResponse() { - tags_ = java.util.Collections.emptyList(); - nextPageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ListTagsResponse(); - } - - 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < tags_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, tags_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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.GeneratedMessageV3.alwaysUseFieldBuilders ? - getTagsFieldBuilder() : 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.RepeatedFieldBuilderV3< - 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 getTagsFieldBuilder().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 getTagsFieldBuilder().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 getTagsFieldBuilder().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 getTagsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datacatalog.v1.Tag, com.google.cloud.datacatalog.v1.Tag.Builder, com.google.cloud.datacatalog.v1.TagOrBuilder> - getTagsFieldBuilder() { - if (tagsBuilder_ == null) { - tagsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - 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; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListTagsResponseOrBuilder.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListTagsResponseOrBuilder.java deleted file mode 100644 index e2ec2d91bb5e..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListTagsResponseOrBuilder.java +++ /dev/null @@ -1,75 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/datacatalog.proto - -package com.google.cloud.datacatalog.v1; - -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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListTaxonomiesRequest.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListTaxonomiesRequest.java deleted file mode 100644 index eeaab757b7e9..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListTaxonomiesRequest.java +++ /dev/null @@ -1,1021 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/policytagmanager.proto - -package com.google.cloud.datacatalog.v1; - -/** - *
- * Request message for
- * [ListTaxonomies][google.cloud.datacatalog.v1.PolicyTagManager.ListTaxonomies].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.ListTaxonomiesRequest} - */ -public final class ListTaxonomiesRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.ListTaxonomiesRequest) - ListTaxonomiesRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use ListTaxonomiesRequest.newBuilder() to construct. - private ListTaxonomiesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ListTaxonomiesRequest() { - parent_ = ""; - pageToken_ = ""; - filter_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ListTaxonomiesRequest(); - } - - 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - if (pageSize_ != 0) { - output.writeInt32(2, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListTaxonomiesRequestOrBuilder.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListTaxonomiesRequestOrBuilder.java deleted file mode 100644 index 9d8042300e9f..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListTaxonomiesRequestOrBuilder.java +++ /dev/null @@ -1,88 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/policytagmanager.proto - -package com.google.cloud.datacatalog.v1; - -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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListTaxonomiesResponse.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListTaxonomiesResponse.java deleted file mode 100644 index a95acc83874a..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListTaxonomiesResponse.java +++ /dev/null @@ -1,1032 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/policytagmanager.proto - -package com.google.cloud.datacatalog.v1; - -/** - *
- * Response message for
- * [ListTaxonomies][google.cloud.datacatalog.v1.PolicyTagManager.ListTaxonomies].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.ListTaxonomiesResponse} - */ -public final class ListTaxonomiesResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.ListTaxonomiesResponse) - ListTaxonomiesResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use ListTaxonomiesResponse.newBuilder() to construct. - private ListTaxonomiesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ListTaxonomiesResponse() { - taxonomies_ = java.util.Collections.emptyList(); - nextPageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ListTaxonomiesResponse(); - } - - 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < taxonomies_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, taxonomies_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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.GeneratedMessageV3.alwaysUseFieldBuilders ? - getTaxonomiesFieldBuilder() : 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.RepeatedFieldBuilderV3< - 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 getTaxonomiesFieldBuilder().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 getTaxonomiesFieldBuilder().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 getTaxonomiesFieldBuilder().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 getTaxonomiesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datacatalog.v1.Taxonomy, com.google.cloud.datacatalog.v1.Taxonomy.Builder, com.google.cloud.datacatalog.v1.TaxonomyOrBuilder> - getTaxonomiesFieldBuilder() { - if (taxonomiesBuilder_ == null) { - taxonomiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - 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; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListTaxonomiesResponseOrBuilder.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListTaxonomiesResponseOrBuilder.java deleted file mode 100644 index 204cf994888d..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListTaxonomiesResponseOrBuilder.java +++ /dev/null @@ -1,75 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/policytagmanager.proto - -package com.google.cloud.datacatalog.v1; - -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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/LookerSystemSpec.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/LookerSystemSpec.java deleted file mode 100644 index 676bd3f674d1..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/LookerSystemSpec.java +++ /dev/null @@ -1,1408 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/datacatalog.proto - -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} - */ -public final class LookerSystemSpec extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.LookerSystemSpec) - LookerSystemSpecOrBuilder { -private static final long serialVersionUID = 0L; - // Use LookerSystemSpec.newBuilder() to construct. - private LookerSystemSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private LookerSystemSpec() { - parentInstanceId_ = ""; - parentInstanceDisplayName_ = ""; - parentModelId_ = ""; - parentModelDisplayName_ = ""; - parentViewId_ = ""; - parentViewDisplayName_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new LookerSystemSpec(); - } - - 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(parentInstanceId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parentInstanceId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parentInstanceDisplayName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, parentInstanceDisplayName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parentModelId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, parentModelId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parentModelDisplayName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, parentModelDisplayName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parentViewId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, parentViewId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parentViewDisplayName_)) { - com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(parentInstanceId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parentInstanceId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parentInstanceDisplayName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, parentInstanceDisplayName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parentModelId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, parentModelId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parentModelDisplayName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, parentModelDisplayName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parentViewId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, parentViewId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parentViewDisplayName_)) { - size += com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/LookerSystemSpecOrBuilder.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/LookerSystemSpecOrBuilder.java deleted file mode 100644 index dd194476deff..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/LookerSystemSpecOrBuilder.java +++ /dev/null @@ -1,131 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/datacatalog.proto - -package com.google.cloud.datacatalog.v1; - -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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/LookupEntryRequest.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/LookupEntryRequest.java deleted file mode 100644 index ce3c1a70d13d..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/LookupEntryRequest.java +++ /dev/null @@ -1,1788 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/datacatalog.proto - -package com.google.cloud.datacatalog.v1; - -/** - *
- * Request message for
- * [LookupEntry][google.cloud.datacatalog.v1.DataCatalog.LookupEntry].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.LookupEntryRequest} - */ -public final class LookupEntryRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.LookupEntryRequest) - LookupEntryRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use LookupEntryRequest.newBuilder() to construct. - private LookupEntryRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private LookupEntryRequest() { - project_ = ""; - location_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new LookupEntryRequest(); - } - - 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.GeneratedMessageV3.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 Standard SQL]
-   * (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 Standard SQL]
-   * (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 Standard SQL]
-   * (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.GeneratedMessageV3.writeString(output, 1, targetName_); - } - if (targetNameCase_ == 3) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, targetName_); - } - if (targetNameCase_ == 5) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, targetName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(project_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, project_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(location_)) { - com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.computeStringSize(1, targetName_); - } - if (targetNameCase_ == 3) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, targetName_); - } - if (targetNameCase_ == 5) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, targetName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(project_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, project_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(location_)) { - size += com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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 Standard SQL]
-     * (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 Standard SQL]
-     * (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 Standard SQL]
-     * (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 Standard SQL]
-     * (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 Standard SQL]
-     * (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 Standard SQL]
-     * (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; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/LookupEntryRequestOrBuilder.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/LookupEntryRequestOrBuilder.java deleted file mode 100644 index 8af4b83e1155..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/LookupEntryRequestOrBuilder.java +++ /dev/null @@ -1,251 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/datacatalog.proto - -package com.google.cloud.datacatalog.v1; - -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 Standard SQL]
-   * (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 Standard SQL]
-   * (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 Standard SQL]
-   * (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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ManagingSystem.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ManagingSystem.java deleted file mode 100644 index 95375a84f805..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ManagingSystem.java +++ /dev/null @@ -1,151 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/common.proto - -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} - */ -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), - ; - - /** - *
-   * 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< - ManagingSystem> 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 final 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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ModelSpec.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ModelSpec.java deleted file mode 100644 index 61f1fa2043ab..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ModelSpec.java +++ /dev/null @@ -1,746 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/datacatalog.proto - -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} - */ -public final class ModelSpec extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.ModelSpec) - ModelSpecOrBuilder { -private static final long serialVersionUID = 0L; - // Use ModelSpec.newBuilder() to construct. - private ModelSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ModelSpec() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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( - getVertexModelSpecFieldBuilder().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.SingleFieldBuilderV3< - 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 getVertexModelSpecFieldBuilder().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.SingleFieldBuilderV3< - com.google.cloud.datacatalog.v1.VertexModelSpec, com.google.cloud.datacatalog.v1.VertexModelSpec.Builder, com.google.cloud.datacatalog.v1.VertexModelSpecOrBuilder> - getVertexModelSpecFieldBuilder() { - if (vertexModelSpecBuilder_ == null) { - if (!(systemSpecCase_ == 1)) { - systemSpec_ = com.google.cloud.datacatalog.v1.VertexModelSpec.getDefaultInstance(); - } - vertexModelSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - 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_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ModelSpecOrBuilder.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ModelSpecOrBuilder.java deleted file mode 100644 index 238198dd5e71..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ModelSpecOrBuilder.java +++ /dev/null @@ -1,38 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/datacatalog.proto - -package com.google.cloud.datacatalog.v1; - -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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ModifyEntryContactsRequest.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ModifyEntryContactsRequest.java deleted file mode 100644 index 6ec55360aa81..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ModifyEntryContactsRequest.java +++ /dev/null @@ -1,808 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/datacatalog.proto - -package com.google.cloud.datacatalog.v1; - -/** - *
- * Request message for
- * [ModifyEntryContacts][google.cloud.datacatalog.v1.DataCatalog.ModifyEntryContacts].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.ModifyEntryContactsRequest} - */ -public final class ModifyEntryContactsRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.ModifyEntryContactsRequest) - ModifyEntryContactsRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use ModifyEntryContactsRequest.newBuilder() to construct. - private ModifyEntryContactsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ModifyEntryContactsRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ModifyEntryContactsRequest(); - } - - 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.GeneratedMessageV3.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); - } - - 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 contacts_ != null; - } - /** - *
-   * 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.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (contacts_ != null) { - 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.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (contacts_ != null) { - 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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @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_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.contacts_ = contactsBuilder_ == null - ? contacts_ - : contactsBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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( - getContactsFieldBuilder().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.SingleFieldBuilderV3< - 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); - } - 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 getContactsFieldBuilder().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.SingleFieldBuilderV3< - com.google.cloud.datacatalog.v1.Contacts, com.google.cloud.datacatalog.v1.Contacts.Builder, com.google.cloud.datacatalog.v1.ContactsOrBuilder> - getContactsFieldBuilder() { - if (contactsBuilder_ == null) { - contactsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - 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_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ModifyEntryContactsRequestOrBuilder.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ModifyEntryContactsRequestOrBuilder.java deleted file mode 100644 index edd16d24cae4..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ModifyEntryContactsRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/datacatalog.proto - -package com.google.cloud.datacatalog.v1; - -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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ModifyEntryOverviewRequest.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ModifyEntryOverviewRequest.java deleted file mode 100644 index a0dd9d9cca78..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ModifyEntryOverviewRequest.java +++ /dev/null @@ -1,808 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/datacatalog.proto - -package com.google.cloud.datacatalog.v1; - -/** - *
- * Request message for
- * [ModifyEntryOverview][google.cloud.datacatalog.v1.DataCatalog.ModifyEntryOverview].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.ModifyEntryOverviewRequest} - */ -public final class ModifyEntryOverviewRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.ModifyEntryOverviewRequest) - ModifyEntryOverviewRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use ModifyEntryOverviewRequest.newBuilder() to construct. - private ModifyEntryOverviewRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ModifyEntryOverviewRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ModifyEntryOverviewRequest(); - } - - 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.GeneratedMessageV3.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); - } - - 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 entryOverview_ != null; - } - /** - *
-   * 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.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (entryOverview_ != null) { - 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.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (entryOverview_ != null) { - 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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @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_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.entryOverview_ = entryOverviewBuilder_ == null - ? entryOverview_ - : entryOverviewBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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( - getEntryOverviewFieldBuilder().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.SingleFieldBuilderV3< - 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); - } - 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 getEntryOverviewFieldBuilder().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.SingleFieldBuilderV3< - com.google.cloud.datacatalog.v1.EntryOverview, com.google.cloud.datacatalog.v1.EntryOverview.Builder, com.google.cloud.datacatalog.v1.EntryOverviewOrBuilder> - getEntryOverviewFieldBuilder() { - if (entryOverviewBuilder_ == null) { - entryOverviewBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - 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_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ModifyEntryOverviewRequestOrBuilder.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ModifyEntryOverviewRequestOrBuilder.java deleted file mode 100644 index a4f07463bd57..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ModifyEntryOverviewRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/datacatalog.proto - -package com.google.cloud.datacatalog.v1; - -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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/PersonalDetails.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/PersonalDetails.java deleted file mode 100644 index 900adbaf098f..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/PersonalDetails.java +++ /dev/null @@ -1,725 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/common.proto - -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} - */ -public final class PersonalDetails extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.PersonalDetails) - PersonalDetailsOrBuilder { -private static final long serialVersionUID = 0L; - // Use PersonalDetails.newBuilder() to construct. - private PersonalDetails(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private PersonalDetails() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.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); - } - - 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 starTime_ != null; - } - /** - *
-   * 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 (starTime_ != null) { - 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 (starTime_ != null) { - 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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @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_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.starTime_ = starTimeBuilder_ == null - ? starTime_ - : starTimeBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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( - getStarTimeFieldBuilder().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.SingleFieldBuilderV3< - 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); - } - 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 getStarTimeFieldBuilder().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.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getStarTimeFieldBuilder() { - if (starTimeBuilder_ == null) { - starTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getStarTime(), - getParentForChildren(), - isClean()); - starTime_ = null; - } - return starTimeBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/PersonalDetailsOrBuilder.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/PersonalDetailsOrBuilder.java deleted file mode 100644 index 7cf11cbf4838..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/PersonalDetailsOrBuilder.java +++ /dev/null @@ -1,46 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/common.proto - -package com.google.cloud.datacatalog.v1; - -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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/PhysicalSchema.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/PhysicalSchema.java deleted file mode 100644 index 9ffdf3d66ea7..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/PhysicalSchema.java +++ /dev/null @@ -1,5029 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/physical_schema.proto - -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} - */ -public final class PhysicalSchema extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.PhysicalSchema) - PhysicalSchemaOrBuilder { -private static final long serialVersionUID = 0L; - // Use PhysicalSchema.newBuilder() to construct. - private PhysicalSchema(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private PhysicalSchema() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.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.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.PhysicalSchema.AvroSchema) - AvroSchemaOrBuilder { - private static final long serialVersionUID = 0L; - // Use AvroSchema.newBuilder() to construct. - private AvroSchema(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private AvroSchema() { - text_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AvroSchema(); - } - - 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(text_)) { - com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(text_)) { - size += com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema) - ThriftSchemaOrBuilder { - private static final long serialVersionUID = 0L; - // Use ThriftSchema.newBuilder() to construct. - private ThriftSchema(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ThriftSchema() { - text_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ThriftSchema(); - } - - 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(text_)) { - com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(text_)) { - size += com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchema) - ProtobufSchemaOrBuilder { - private static final long serialVersionUID = 0L; - // Use ProtobufSchema.newBuilder() to construct. - private ProtobufSchema(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ProtobufSchema() { - text_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ProtobufSchema(); - } - - 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(text_)) { - com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(text_)) { - size += com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema) - ParquetSchemaOrBuilder { - private static final long serialVersionUID = 0L; - // Use ParquetSchema.newBuilder() to construct. - private ParquetSchema(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ParquetSchema() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.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 clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.PhysicalSchema.OrcSchema) - OrcSchemaOrBuilder { - private static final long serialVersionUID = 0L; - // Use OrcSchema.newBuilder() to construct. - private OrcSchema(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private OrcSchema() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.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 clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.PhysicalSchema.CsvSchema) - CsvSchemaOrBuilder { - private static final long serialVersionUID = 0L; - // Use CsvSchema.newBuilder() to construct. - private CsvSchema(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CsvSchema() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.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 clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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( - getAvroFieldBuilder().getBuilder(), - extensionRegistry); - schemaCase_ = 1; - break; - } // case 10 - case 18: { - input.readMessage( - getThriftFieldBuilder().getBuilder(), - extensionRegistry); - schemaCase_ = 2; - break; - } // case 18 - case 26: { - input.readMessage( - getProtobufFieldBuilder().getBuilder(), - extensionRegistry); - schemaCase_ = 3; - break; - } // case 26 - case 34: { - input.readMessage( - getParquetFieldBuilder().getBuilder(), - extensionRegistry); - schemaCase_ = 4; - break; - } // case 34 - case 42: { - input.readMessage( - getOrcFieldBuilder().getBuilder(), - extensionRegistry); - schemaCase_ = 5; - break; - } // case 42 - case 50: { - input.readMessage( - getCsvFieldBuilder().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.SingleFieldBuilderV3< - 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 getAvroFieldBuilder().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.SingleFieldBuilderV3< - com.google.cloud.datacatalog.v1.PhysicalSchema.AvroSchema, com.google.cloud.datacatalog.v1.PhysicalSchema.AvroSchema.Builder, com.google.cloud.datacatalog.v1.PhysicalSchema.AvroSchemaOrBuilder> - getAvroFieldBuilder() { - if (avroBuilder_ == null) { - if (!(schemaCase_ == 1)) { - schema_ = com.google.cloud.datacatalog.v1.PhysicalSchema.AvroSchema.getDefaultInstance(); - } - avroBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - 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.SingleFieldBuilderV3< - 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 getThriftFieldBuilder().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.SingleFieldBuilderV3< - com.google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema, com.google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema.Builder, com.google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchemaOrBuilder> - getThriftFieldBuilder() { - if (thriftBuilder_ == null) { - if (!(schemaCase_ == 2)) { - schema_ = com.google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema.getDefaultInstance(); - } - thriftBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - 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.SingleFieldBuilderV3< - 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 getProtobufFieldBuilder().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.SingleFieldBuilderV3< - com.google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchema, com.google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchema.Builder, com.google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchemaOrBuilder> - getProtobufFieldBuilder() { - if (protobufBuilder_ == null) { - if (!(schemaCase_ == 3)) { - schema_ = com.google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchema.getDefaultInstance(); - } - protobufBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - 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.SingleFieldBuilderV3< - 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 getParquetFieldBuilder().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.SingleFieldBuilderV3< - com.google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema, com.google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema.Builder, com.google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchemaOrBuilder> - getParquetFieldBuilder() { - if (parquetBuilder_ == null) { - if (!(schemaCase_ == 4)) { - schema_ = com.google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema.getDefaultInstance(); - } - parquetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - 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.SingleFieldBuilderV3< - 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 getOrcFieldBuilder().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.SingleFieldBuilderV3< - com.google.cloud.datacatalog.v1.PhysicalSchema.OrcSchema, com.google.cloud.datacatalog.v1.PhysicalSchema.OrcSchema.Builder, com.google.cloud.datacatalog.v1.PhysicalSchema.OrcSchemaOrBuilder> - getOrcFieldBuilder() { - if (orcBuilder_ == null) { - if (!(schemaCase_ == 5)) { - schema_ = com.google.cloud.datacatalog.v1.PhysicalSchema.OrcSchema.getDefaultInstance(); - } - orcBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - 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.SingleFieldBuilderV3< - 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 getCsvFieldBuilder().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.SingleFieldBuilderV3< - com.google.cloud.datacatalog.v1.PhysicalSchema.CsvSchema, com.google.cloud.datacatalog.v1.PhysicalSchema.CsvSchema.Builder, com.google.cloud.datacatalog.v1.PhysicalSchema.CsvSchemaOrBuilder> - getCsvFieldBuilder() { - if (csvBuilder_ == null) { - if (!(schemaCase_ == 6)) { - schema_ = com.google.cloud.datacatalog.v1.PhysicalSchema.CsvSchema.getDefaultInstance(); - } - csvBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - 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_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/PhysicalSchemaProto.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/PhysicalSchemaProto.java deleted file mode 100644 index 6058b070ca0b..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/PhysicalSchemaProto.java +++ /dev/null @@ -1,134 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/physical_schema.proto - -package com.google.cloud.datacatalog.v1; - -public final class PhysicalSchemaProto { - private 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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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\333\001\n\037com.google.cloud.datacatalo" + - "g.v1B\023PhysicalSchemaProtoP\001ZAcloud.googl" + - "e.com/go/datacatalog/apiv1/datacatalogpb" + - ";datacatalogpb\370\001\001\252\002\033Google.Cloud.DataCat" + - "alog.V1\312\002\033Google\\Cloud\\DataCatalog\\V1\352\002\036" + - "Google::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().getMessageTypes().get(0); - internal_static_google_cloud_datacatalog_v1_PhysicalSchema_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.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.getNestedTypes().get(0); - internal_static_google_cloud_datacatalog_v1_PhysicalSchema_AvroSchema_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.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.getNestedTypes().get(1); - internal_static_google_cloud_datacatalog_v1_PhysicalSchema_ThriftSchema_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.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.getNestedTypes().get(2); - internal_static_google_cloud_datacatalog_v1_PhysicalSchema_ProtobufSchema_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.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.getNestedTypes().get(3); - internal_static_google_cloud_datacatalog_v1_PhysicalSchema_ParquetSchema_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.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.getNestedTypes().get(4); - internal_static_google_cloud_datacatalog_v1_PhysicalSchema_OrcSchema_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.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.getNestedTypes().get(5); - internal_static_google_cloud_datacatalog_v1_PhysicalSchema_CsvSchema_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_PhysicalSchema_CsvSchema_descriptor, - new java.lang.String[] { }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/PolicyTag.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/PolicyTag.java deleted file mode 100644 index baa93c88dd65..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/PolicyTag.java +++ /dev/null @@ -1,1437 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/policytagmanager.proto - -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} - */ -public final class PolicyTag extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.PolicyTag) - PolicyTagOrBuilder { -private static final long serialVersionUID = 0L; - // Use PolicyTag.newBuilder() to construct. - private PolicyTag(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private PolicyTag() { - name_ = ""; - displayName_ = ""; - description_ = ""; - parentPolicyTag_ = ""; - childPolicyTags_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new PolicyTag(); - } - - 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.GeneratedMessageV3.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_ = ""; - /** - *
-   * Output only. 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) = 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. 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) = 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 = 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.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parentPolicyTag_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, parentPolicyTag_); - } - for (int i = 0; i < childPolicyTags_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parentPolicyTag_)) { - size += com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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_ = ""; - /** - *
-     * Output only. 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) = 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. 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) = 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. 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) = 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. 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) = OUTPUT_ONLY]; - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Output only. 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) = 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_ = ""; - /** - *
-     * 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; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/PolicyTagManagerProto.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/PolicyTagManagerProto.java deleted file mode 100644 index fa20fc54d491..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/PolicyTagManagerProto.java +++ /dev/null @@ -1,373 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/policytagmanager.proto - -package com.google.cloud.datacatalog.v1; - -public final class PolicyTagManagerProto { - private 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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 = { - "\n2google/cloud/datacatalog/v1/policytagm" + - "anager.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/protobu" + - "f/empty.proto\032 google/protobuf/field_mas" + - "k.proto\"\362\004\n\010Taxonomy\022\022\n\004name\030\001 \001(\tB\004\342A\001\003" + - "\022\032\n\014display_name\030\002 \001(\tB\004\342A\001\002\022\031\n\013descript" + - "ion\030\003 \001(\tB\004\342A\001\001\022\036\n\020policy_tag_count\030\004 \001(" + - "\005B\004\342A\001\003\022P\n\023taxonomy_timestamps\030\005 \001(\0132-.g" + - "oogle.cloud.datacatalog.v1.SystemTimesta" + - "mpsB\004\342A\001\003\022V\n\026activated_policy_types\030\006 \003(" + - "\01620.google.cloud.datacatalog.v1.Taxonomy" + - ".PolicyTypeB\004\342A\001\001\022D\n\007service\030\007 \001(\0132-.goo" + - "gle.cloud.datacatalog.v1.Taxonomy.Servic" + - "eB\004\342A\001\003\032V\n\007Service\0229\n\004name\030\001 \001(\0162+.googl" + - "e.cloud.datacatalog.v1.ManagingSystem\022\020\n" + - "\010identity\030\002 \001(\t\"J\n\nPolicyType\022\033\n\027POLICY_" + - "TYPE_UNSPECIFIED\020\000\022\037\n\033FINE_GRAINED_ACCES" + - "S_CONTROL\020\001:g\352Ad\n#datacatalog.googleapis" + - ".com/Taxonomy\022=projects/{project}/locati" + - "ons/{location}/taxonomies/{taxonomy}\"\217\002\n" + - "\tPolicyTag\022\022\n\004name\030\001 \001(\tB\004\342A\001\003\022\032\n\014displa" + - "y_name\030\002 \001(\tB\004\342A\001\002\022\023\n\013description\030\003 \001(\t\022" + - "\031\n\021parent_policy_tag\030\004 \001(\t\022\037\n\021child_poli" + - "cy_tags\030\005 \003(\tB\004\342A\001\003:\200\001\352A}\n$datacatalog.g" + - "oogleapis.com/PolicyTag\022Uprojects/{proje" + - "ct}/locations/{location}/taxonomies/{tax" + - "onomy}/policyTags/{policy_tag}\"\216\001\n\025Creat" + - "eTaxonomyRequest\022<\n\006parent\030\001 \001(\tB,\342A\001\002\372A" + - "%\022#datacatalog.googleapis.com/Taxonomy\0227" + - "\n\010taxonomy\030\002 \001(\0132%.google.cloud.datacata" + - "log.v1.Taxonomy\"S\n\025DeleteTaxonomyRequest" + - "\022:\n\004name\030\001 \001(\tB,\342A\001\002\372A%\n#datacatalog.goo" + - "gleapis.com/Taxonomy\"\201\001\n\025UpdateTaxonomyR" + - "equest\0227\n\010taxonomy\030\001 \001(\0132%.google.cloud." + - "datacatalog.v1.Taxonomy\022/\n\013update_mask\030\002" + - " \001(\0132\032.google.protobuf.FieldMask\"\214\001\n\025Lis" + - "tTaxonomiesRequest\022<\n\006parent\030\001 \001(\tB,\342A\001\002" + - "\372A%\022#datacatalog.googleapis.com/Taxonomy" + - "\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022" + - "\016\n\006filter\030\004 \001(\t\"l\n\026ListTaxonomiesRespons" + - "e\0229\n\ntaxonomies\030\001 \003(\0132%.google.cloud.dat" + - "acatalog.v1.Taxonomy\022\027\n\017next_page_token\030" + - "\002 \001(\t\"P\n\022GetTaxonomyRequest\022:\n\004name\030\001 \001(" + - "\tB,\342A\001\002\372A%\n#datacatalog.googleapis.com/T" + - "axonomy\"\223\001\n\026CreatePolicyTagRequest\022=\n\006pa" + - "rent\030\001 \001(\tB-\342A\001\002\372A&\022$datacatalog.googlea" + - "pis.com/PolicyTag\022:\n\npolicy_tag\030\002 \001(\0132&." + - "google.cloud.datacatalog.v1.PolicyTag\"U\n" + - "\026DeletePolicyTagRequest\022;\n\004name\030\001 \001(\tB-\342" + - "A\001\002\372A&\n$datacatalog.googleapis.com/Polic" + - "yTag\"\205\001\n\026UpdatePolicyTagRequest\022:\n\npolic" + - "y_tag\030\001 \001(\0132&.google.cloud.datacatalog.v" + - "1.PolicyTag\022/\n\013update_mask\030\002 \001(\0132\032.googl" + - "e.protobuf.FieldMask\"}\n\025ListPolicyTagsRe" + - "quest\022=\n\006parent\030\001 \001(\tB-\342A\001\002\372A&\022$datacata" + - "log.googleapis.com/PolicyTag\022\021\n\tpage_siz" + - "e\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"n\n\026ListPolic" + - "yTagsResponse\022;\n\013policy_tags\030\001 \003(\0132&.goo" + - "gle.cloud.datacatalog.v1.PolicyTag\022\027\n\017ne" + - "xt_page_token\030\002 \001(\t\"R\n\023GetPolicyTagReque" + - "st\022;\n\004name\030\001 \001(\tB-\342A\001\002\372A&\n$datacatalog.g" + - "oogleapis.com/PolicyTag2\273\025\n\020PolicyTagMan" + - "ager\022\277\001\n\016CreateTaxonomy\0222.google.cloud.d" + - "atacatalog.v1.CreateTaxonomyRequest\032%.go" + - "ogle.cloud.datacatalog.v1.Taxonomy\"R\332A\017p" + - "arent,taxonomy\202\323\344\223\002:\"./v1/{parent=projec" + - "ts/*/locations/*}/taxonomies:\010taxonomy\022\233" + - "\001\n\016DeleteTaxonomy\0222.google.cloud.datacat" + - "alog.v1.DeleteTaxonomyRequest\032\026.google.p" + - "rotobuf.Empty\"=\332A\004name\202\323\344\223\0020*./v1/{name=" + - "projects/*/locations/*/taxonomies/*}\022\301\001\n" + - "\016UpdateTaxonomy\0222.google.cloud.datacatal" + - "og.v1.UpdateTaxonomyRequest\032%.google.clo" + - "ud.datacatalog.v1.Taxonomy\"T\332A\010taxonomy\202" + - "\323\344\223\002C27/v1/{taxonomy.name=projects/*/loc" + - "ations/*/taxonomies/*}:\010taxonomy\022\272\001\n\016Lis" + - "tTaxonomies\0222.google.cloud.datacatalog.v" + - "1.ListTaxonomiesRequest\0323.google.cloud.d" + - "atacatalog.v1.ListTaxonomiesResponse\"?\332A" + - "\006parent\202\323\344\223\0020\022./v1/{parent=projects/*/lo" + - "cations/*}/taxonomies\022\244\001\n\013GetTaxonomy\022/." + - "google.cloud.datacatalog.v1.GetTaxonomyR" + - "equest\032%.google.cloud.datacatalog.v1.Tax" + - "onomy\"=\332A\004name\202\323\344\223\0020\022./v1/{name=projects" + - "/*/locations/*/taxonomies/*}\022\323\001\n\017CreateP" + - "olicyTag\0223.google.cloud.datacatalog.v1.C" + - "reatePolicyTagRequest\032&.google.cloud.dat" + - "acatalog.v1.PolicyTag\"c\332A\021parent,policy_" + - "tag\202\323\344\223\002I\";/v1/{parent=projects/*/locati" + - "ons/*/taxonomies/*}/policyTags:\npolicy_t" + - "ag\022\252\001\n\017DeletePolicyTag\0223.google.cloud.da" + - "tacatalog.v1.DeletePolicyTagRequest\032\026.go" + - "ogle.protobuf.Empty\"J\332A\004name\202\323\344\223\002=*;/v1/" + - "{name=projects/*/locations/*/taxonomies/" + - "*/policyTags/*}\022\327\001\n\017UpdatePolicyTag\0223.go" + - "ogle.cloud.datacatalog.v1.UpdatePolicyTa" + - "gRequest\032&.google.cloud.datacatalog.v1.P" + - "olicyTag\"g\332A\npolicy_tag\202\323\344\223\002T2F/v1/{poli" + - "cy_tag.name=projects/*/locations/*/taxon" + - "omies/*/policyTags/*}:\npolicy_tag\022\307\001\n\016Li" + - "stPolicyTags\0222.google.cloud.datacatalog." + - "v1.ListPolicyTagsRequest\0323.google.cloud." + - "datacatalog.v1.ListPolicyTagsResponse\"L\332" + - "A\006parent\202\323\344\223\002=\022;/v1/{parent=projects/*/l" + - "ocations/*/taxonomies/*}/policyTags\022\264\001\n\014" + - "GetPolicyTag\0220.google.cloud.datacatalog." + - "v1.GetPolicyTagRequest\032&.google.cloud.da" + - "tacatalog.v1.PolicyTag\"J\332A\004name\202\323\344\223\002=\022;/" + - "v1/{name=projects/*/locations/*/taxonomi" + - "es/*/policyTags/*}\022\352\001\n\014GetIamPolicy\022\".go" + - "ogle.iam.v1.GetIamPolicyRequest\032\025.google" + - ".iam.v1.Policy\"\236\001\202\323\344\223\002\227\001\"?/v1/{resource=" + - "projects/*/locations/*/taxonomies/*}:get" + - "IamPolicy:\001*ZQ\"L/v1/{resource=projects/*" + - "/locations/*/taxonomies/*/policyTags/*}:" + - "getIamPolicy:\001*\022\352\001\n\014SetIamPolicy\022\".googl" + - "e.iam.v1.SetIamPolicyRequest\032\025.google.ia" + - "m.v1.Policy\"\236\001\202\323\344\223\002\227\001\"?/v1/{resource=pro" + - "jects/*/locations/*/taxonomies/*}:setIam" + - "Policy:\001*ZQ\"L/v1/{resource=projects/*/lo" + - "cations/*/taxonomies/*/policyTags/*}:set" + - "IamPolicy:\001*\022\226\002\n\022TestIamPermissions\022(.go" + - "ogle.iam.v1.TestIamPermissionsRequest\032)." + - "google.iam.v1.TestIamPermissionsResponse" + - "\"\252\001\202\323\344\223\002\243\001\"E/v1/{resource=projects/*/loc" + - "ations/*/taxonomies/*}:testIamPermission" + - "s:\001*ZW\"R/v1/{resource=projects/*/locatio" + - "ns/*/taxonomies/*/policyTags/*}:testIamP" + - "ermissions:\001*\032N\312A\032datacatalog.googleapis" + - ".com\322A.https://www.googleapis.com/auth/c" + - "loud-platformB\335\001\n\037com.google.cloud.datac" + - "atalog.v1B\025PolicyTagManagerProtoP\001ZAclou" + - "d.google.com/go/datacatalog/apiv1/dataca" + - "talogpb;datacatalogpb\370\001\001\252\002\033Google.Cloud." + - "DataCatalog.V1\312\002\033Google\\Cloud\\DataCatalo" + - "g\\V1\352\002\036Google::Cloud::DataCatalog::V1b\006p" + - "roto3" - }; - 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().getMessageTypes().get(0); - internal_static_google_cloud_datacatalog_v1_Taxonomy_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.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.getNestedTypes().get(0); - internal_static_google_cloud_datacatalog_v1_Taxonomy_Service_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.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().getMessageTypes().get(1); - internal_static_google_cloud_datacatalog_v1_PolicyTag_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.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().getMessageTypes().get(2); - internal_static_google_cloud_datacatalog_v1_CreateTaxonomyRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_CreateTaxonomyRequest_descriptor, - new java.lang.String[] { "Parent", "Taxonomy", }); - internal_static_google_cloud_datacatalog_v1_DeleteTaxonomyRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_datacatalog_v1_DeleteTaxonomyRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_DeleteTaxonomyRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_datacatalog_v1_UpdateTaxonomyRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_datacatalog_v1_UpdateTaxonomyRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_UpdateTaxonomyRequest_descriptor, - new java.lang.String[] { "Taxonomy", "UpdateMask", }); - internal_static_google_cloud_datacatalog_v1_ListTaxonomiesRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_datacatalog_v1_ListTaxonomiesRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.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().getMessageTypes().get(6); - internal_static_google_cloud_datacatalog_v1_ListTaxonomiesResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_ListTaxonomiesResponse_descriptor, - new java.lang.String[] { "Taxonomies", "NextPageToken", }); - internal_static_google_cloud_datacatalog_v1_GetTaxonomyRequest_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_datacatalog_v1_GetTaxonomyRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_GetTaxonomyRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_datacatalog_v1_CreatePolicyTagRequest_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_datacatalog_v1_CreatePolicyTagRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_CreatePolicyTagRequest_descriptor, - new java.lang.String[] { "Parent", "PolicyTag", }); - internal_static_google_cloud_datacatalog_v1_DeletePolicyTagRequest_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_datacatalog_v1_DeletePolicyTagRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_DeletePolicyTagRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_datacatalog_v1_UpdatePolicyTagRequest_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_datacatalog_v1_UpdatePolicyTagRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_UpdatePolicyTagRequest_descriptor, - new java.lang.String[] { "PolicyTag", "UpdateMask", }); - internal_static_google_cloud_datacatalog_v1_ListPolicyTagsRequest_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_datacatalog_v1_ListPolicyTagsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.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().getMessageTypes().get(12); - internal_static_google_cloud_datacatalog_v1_ListPolicyTagsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_ListPolicyTagsResponse_descriptor, - new java.lang.String[] { "PolicyTags", "NextPageToken", }); - internal_static_google_cloud_datacatalog_v1_GetPolicyTagRequest_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_datacatalog_v1_GetPolicyTagRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_GetPolicyTagRequest_descriptor, - new java.lang.String[] { "Name", }); - 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); - 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(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/PolicyTagManagerSerializationProto.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/PolicyTagManagerSerializationProto.java deleted file mode 100644 index d0615775599b..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/PolicyTagManagerSerializationProto.java +++ /dev/null @@ -1,217 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/policytagmanagerserialization.proto - -package com.google.cloud.datacatalog.v1; - -public final class PolicyTagManagerSerializationProto { - private 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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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/policytagm" + - "anagerserialization.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/p" + - "olicytagmanager.proto\"\336\001\n\022SerializedTaxo" + - "nomy\022\032\n\014display_name\030\001 \001(\tB\004\342A\001\002\022\023\n\013desc" + - "ription\030\002 \001(\t\022E\n\013policy_tags\030\003 \003(\01320.goo" + - "gle.cloud.datacatalog.v1.SerializedPolic" + - "yTag\022P\n\026activated_policy_types\030\004 \003(\01620.g" + - "oogle.cloud.datacatalog.v1.Taxonomy.Poli" + - "cyType\"\247\001\n\023SerializedPolicyTag\022\022\n\npolicy" + - "_tag\030\001 \001(\t\022\032\n\014display_name\030\002 \001(\tB\004\342A\001\002\022\023" + - "\n\013description\030\003 \001(\t\022K\n\021child_policy_tags" + - "\030\004 \003(\01320.google.cloud.datacatalog.v1.Ser" + - "ializedPolicyTag\"\250\001\n\026ReplaceTaxonomyRequ" + - "est\022:\n\004name\030\001 \001(\tB,\342A\001\002\372A%\n#datacatalog." + - "googleapis.com/Taxonomy\022R\n\023serialized_ta" + - "xonomy\030\002 \001(\0132/.google.cloud.datacatalog." + - "v1.SerializedTaxonomyB\004\342A\001\002\"\370\001\n\027ImportTa" + - "xonomiesRequest\022<\n\006parent\030\001 \001(\tB,\342A\001\002\372A%" + - "\022#datacatalog.googleapis.com/Taxonomy\022B\n" + - "\rinline_source\030\002 \001(\0132).google.cloud.data" + - "catalog.v1.InlineSourceH\000\022Q\n\025cross_regio" + - "nal_source\030\003 \001(\01320.google.cloud.datacata" + - "log.v1.CrossRegionalSourceH\000B\010\n\006source\"Y" + - "\n\014InlineSource\022I\n\ntaxonomies\030\001 \003(\0132/.goo" + - "gle.cloud.datacatalog.v1.SerializedTaxon" + - "omyB\004\342A\001\002\"U\n\023CrossRegionalSource\022>\n\010taxo" + - "nomy\030\001 \001(\tB,\342A\001\002\372A%\n#datacatalog.googlea" + - "pis.com/Taxonomy\"U\n\030ImportTaxonomiesResp" + - "onse\0229\n\ntaxonomies\030\001 \003(\0132%.google.cloud." + - "datacatalog.v1.Taxonomy\"\311\001\n\027ExportTaxono" + - "miesRequest\022<\n\006parent\030\001 \001(\tB,\342A\001\002\372A%\022#da" + - "tacatalog.googleapis.com/Taxonomy\022@\n\ntax" + - "onomies\030\002 \003(\tB,\342A\001\002\372A%\n#datacatalog.goog" + - "leapis.com/Taxonomy\022\037\n\025serialized_taxono" + - "mies\030\003 \001(\010H\000B\r\n\013destination\"_\n\030ExportTax" + - "onomiesResponse\022C\n\ntaxonomies\030\001 \003(\0132/.go" + - "ogle.cloud.datacatalog.v1.SerializedTaxo" + - "nomy2\247\005\n\035PolicyTagManagerSerialization\022\260" + - "\001\n\017ReplaceTaxonomy\0223.google.cloud.dataca" + - "talog.v1.ReplaceTaxonomyRequest\032%.google" + - ".cloud.datacatalog.v1.Taxonomy\"A\202\323\344\223\002;\"6" + - "/v1/{name=projects/*/locations/*/taxonom" + - "ies/*}:replace:\001*\022\301\001\n\020ImportTaxonomies\0224" + - ".google.cloud.datacatalog.v1.ImportTaxon" + - "omiesRequest\0325.google.cloud.datacatalog." + - "v1.ImportTaxonomiesResponse\"@\202\323\344\223\002:\"5/v1" + - "/{parent=projects/*/locations/*}/taxonom" + - "ies:import:\001*\022\276\001\n\020ExportTaxonomies\0224.goo" + - "gle.cloud.datacatalog.v1.ExportTaxonomie" + - "sRequest\0325.google.cloud.datacatalog.v1.E" + - "xportTaxonomiesResponse\"=\202\323\344\223\0027\0225/v1/{pa" + - "rent=projects/*/locations/*}/taxonomies:" + - "export\032N\312A\032datacatalog.googleapis.com\322A." + - "https://www.googleapis.com/auth/cloud-pl" + - "atformB\352\001\n\037com.google.cloud.datacatalog." + - "v1B\"PolicyTagManagerSerializationProtoP\001" + - "ZAcloud.google.com/go/datacatalog/apiv1/" + - "datacatalogpb;datacatalogpb\370\001\001\252\002\033Google." + - "Cloud.DataCatalog.V1\312\002\033Google\\Cloud\\Data" + - "Catalog\\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().getMessageTypes().get(0); - internal_static_google_cloud_datacatalog_v1_SerializedTaxonomy_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.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().getMessageTypes().get(1); - internal_static_google_cloud_datacatalog_v1_SerializedPolicyTag_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.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().getMessageTypes().get(2); - internal_static_google_cloud_datacatalog_v1_ReplaceTaxonomyRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_ReplaceTaxonomyRequest_descriptor, - new java.lang.String[] { "Name", "SerializedTaxonomy", }); - internal_static_google_cloud_datacatalog_v1_ImportTaxonomiesRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_datacatalog_v1_ImportTaxonomiesRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.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().getMessageTypes().get(4); - internal_static_google_cloud_datacatalog_v1_InlineSource_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_InlineSource_descriptor, - new java.lang.String[] { "Taxonomies", }); - internal_static_google_cloud_datacatalog_v1_CrossRegionalSource_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_datacatalog_v1_CrossRegionalSource_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_CrossRegionalSource_descriptor, - new java.lang.String[] { "Taxonomy", }); - internal_static_google_cloud_datacatalog_v1_ImportTaxonomiesResponse_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_datacatalog_v1_ImportTaxonomiesResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_ImportTaxonomiesResponse_descriptor, - new java.lang.String[] { "Taxonomies", }); - internal_static_google_cloud_datacatalog_v1_ExportTaxonomiesRequest_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_datacatalog_v1_ExportTaxonomiesRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.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().getMessageTypes().get(8); - internal_static_google_cloud_datacatalog_v1_ExportTaxonomiesResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_ExportTaxonomiesResponse_descriptor, - new java.lang.String[] { "Taxonomies", }); - 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); - 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(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/PolicyTagOrBuilder.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/PolicyTagOrBuilder.java deleted file mode 100644 index 320e7c03025c..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/PolicyTagOrBuilder.java +++ /dev/null @@ -1,160 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/policytagmanager.proto - -package com.google.cloud.datacatalog.v1; - -public interface PolicyTagOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.PolicyTag) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Output only. 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) = OUTPUT_ONLY]; - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Output only. 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) = OUTPUT_ONLY]; - * @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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ReconcileTagsMetadata.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ReconcileTagsMetadata.java deleted file mode 100644 index 178bf07b6dfc..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ReconcileTagsMetadata.java +++ /dev/null @@ -1,1035 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/datacatalog.proto - -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} - */ -public final class ReconcileTagsMetadata extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.ReconcileTagsMetadata) - ReconcileTagsMetadataOrBuilder { -private static final long serialVersionUID = 0L; - // Use ReconcileTagsMetadata.newBuilder() to construct. - private ReconcileTagsMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ReconcileTagsMetadata() { - state_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ReconcileTagsMetadata(); - } - - 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.MapField internalGetMapField( - int number) { - switch (number) { - case 2: - return internalGetErrors(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.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), - ; - - /** - *
-     * 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< - ReconciliationState> 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 final 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< - java.lang.String, com.google.rpc.Status> 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< - java.lang.String, com.google.rpc.Status> 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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.MapField internalGetMapField( - int number) { - switch (number) { - case 2: - return internalGetErrors(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 2: - return internalGetMutableErrors(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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(); - result.errors_.makeImmutable(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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().getMutableMap().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 com.google.protobuf.MapField< - java.lang.String, com.google.rpc.Status> errors_; - private com.google.protobuf.MapField - internalGetErrors() { - if (errors_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ErrorsDefaultEntryHolder.defaultEntry); - } - return errors_; - } - private com.google.protobuf.MapField - internalGetMutableErrors() { - if (errors_ == null) { - errors_ = com.google.protobuf.MapField.newMapField( - ErrorsDefaultEntryHolder.defaultEntry); - } - if (!errors_.isMutable()) { - errors_ = errors_.copy(); - } - bitField0_ |= 0x00000002; - onChanged(); - 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); - } - public Builder clearErrors() { - bitField0_ = (bitField0_ & ~0x00000002); - internalGetMutableErrors().getMutableMap() - .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().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableErrors() { - bitField0_ |= 0x00000002; - return internalGetMutableErrors().getMutableMap(); - } - /** - *
-     * 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().getMutableMap() - .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) { - internalGetMutableErrors().getMutableMap() - .putAll(values); - bitField0_ |= 0x00000002; - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ReconcileTagsMetadataOrBuilder.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ReconcileTagsMetadataOrBuilder.java deleted file mode 100644 index 141cab5c0f89..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ReconcileTagsMetadataOrBuilder.java +++ /dev/null @@ -1,87 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/datacatalog.proto - -package com.google.cloud.datacatalog.v1; - -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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ReconcileTagsRequest.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ReconcileTagsRequest.java deleted file mode 100644 index 1b8baa7b65fe..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ReconcileTagsRequest.java +++ /dev/null @@ -1,1349 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/datacatalog.proto - -package com.google.cloud.datacatalog.v1; - -/** - *
- * Request message for
- * [ReconcileTags][google.cloud.datacatalog.v1.DataCatalog.ReconcileTags].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.ReconcileTagsRequest} - */ -public final class ReconcileTagsRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.ReconcileTagsRequest) - ReconcileTagsRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use ReconcileTagsRequest.newBuilder() to construct. - private ReconcileTagsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ReconcileTagsRequest() { - parent_ = ""; - tagTemplate_ = ""; - tags_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ReconcileTagsRequest(); - } - - 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tagTemplate_)) { - com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tagTemplate_)) { - size += com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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.GeneratedMessageV3.alwaysUseFieldBuilders ? - getTagsFieldBuilder() : 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.RepeatedFieldBuilderV3< - 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 getTagsFieldBuilder().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 getTagsFieldBuilder().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 getTagsFieldBuilder().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 getTagsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datacatalog.v1.Tag, com.google.cloud.datacatalog.v1.Tag.Builder, com.google.cloud.datacatalog.v1.TagOrBuilder> - getTagsFieldBuilder() { - if (tagsBuilder_ == null) { - tagsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - 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_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ReconcileTagsRequestOrBuilder.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ReconcileTagsRequestOrBuilder.java deleted file mode 100644 index fefea36cf326..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ReconcileTagsRequestOrBuilder.java +++ /dev/null @@ -1,120 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/datacatalog.proto - -package com.google.cloud.datacatalog.v1; - -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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ReconcileTagsResponse.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ReconcileTagsResponse.java deleted file mode 100644 index a5ee8a9c5dd6..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ReconcileTagsResponse.java +++ /dev/null @@ -1,666 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/datacatalog.proto - -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} - */ -public final class ReconcileTagsResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.ReconcileTagsResponse) - ReconcileTagsResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use ReconcileTagsResponse.newBuilder() to construct. - private ReconcileTagsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ReconcileTagsResponse() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ReconcileTagsResponseOrBuilder.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ReconcileTagsResponseOrBuilder.java deleted file mode 100644 index bb222f363e2b..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ReconcileTagsResponseOrBuilder.java +++ /dev/null @@ -1,39 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/datacatalog.proto - -package com.google.cloud.datacatalog.v1; - -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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/RenameTagTemplateFieldEnumValueRequest.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/RenameTagTemplateFieldEnumValueRequest.java deleted file mode 100644 index ede6f75d2dfe..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/RenameTagTemplateFieldEnumValueRequest.java +++ /dev/null @@ -1,750 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/datacatalog.proto - -package com.google.cloud.datacatalog.v1; - -/** - *
- * Request message for
- * [RenameTagTemplateFieldEnumValue][google.cloud.datacatalog.v1.DataCatalog.RenameTagTemplateFieldEnumValue].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.RenameTagTemplateFieldEnumValueRequest} - */ -public final class RenameTagTemplateFieldEnumValueRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.RenameTagTemplateFieldEnumValueRequest) - RenameTagTemplateFieldEnumValueRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use RenameTagTemplateFieldEnumValueRequest.newBuilder() to construct. - private RenameTagTemplateFieldEnumValueRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private RenameTagTemplateFieldEnumValueRequest() { - name_ = ""; - newEnumValueDisplayName_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new RenameTagTemplateFieldEnumValueRequest(); - } - - 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(newEnumValueDisplayName_)) { - com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(newEnumValueDisplayName_)) { - size += com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/RenameTagTemplateFieldEnumValueRequestOrBuilder.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/RenameTagTemplateFieldEnumValueRequestOrBuilder.java deleted file mode 100644 index 2b8938a76e42..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/RenameTagTemplateFieldEnumValueRequestOrBuilder.java +++ /dev/null @@ -1,51 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/datacatalog.proto - -package com.google.cloud.datacatalog.v1; - -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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/RenameTagTemplateFieldRequest.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/RenameTagTemplateFieldRequest.java deleted file mode 100644 index 3441206fb50b..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/RenameTagTemplateFieldRequest.java +++ /dev/null @@ -1,750 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/datacatalog.proto - -package com.google.cloud.datacatalog.v1; - -/** - *
- * Request message for
- * [RenameTagTemplateField][google.cloud.datacatalog.v1.DataCatalog.RenameTagTemplateField].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.RenameTagTemplateFieldRequest} - */ -public final class RenameTagTemplateFieldRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.RenameTagTemplateFieldRequest) - RenameTagTemplateFieldRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use RenameTagTemplateFieldRequest.newBuilder() to construct. - private RenameTagTemplateFieldRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private RenameTagTemplateFieldRequest() { - name_ = ""; - newTagTemplateFieldId_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new RenameTagTemplateFieldRequest(); - } - - 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(newTagTemplateFieldId_)) { - com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(newTagTemplateFieldId_)) { - size += com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/RenameTagTemplateFieldRequestOrBuilder.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/RenameTagTemplateFieldRequestOrBuilder.java deleted file mode 100644 index e9945b69da19..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/RenameTagTemplateFieldRequestOrBuilder.java +++ /dev/null @@ -1,51 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/datacatalog.proto - -package com.google.cloud.datacatalog.v1; - -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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ReplaceTaxonomyRequest.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ReplaceTaxonomyRequest.java deleted file mode 100644 index 73f958beccdc..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ReplaceTaxonomyRequest.java +++ /dev/null @@ -1,808 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/policytagmanagerserialization.proto - -package com.google.cloud.datacatalog.v1; - -/** - *
- * Request message for
- * [ReplaceTaxonomy][google.cloud.datacatalog.v1.PolicyTagManagerSerialization.ReplaceTaxonomy].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.ReplaceTaxonomyRequest} - */ -public final class ReplaceTaxonomyRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.ReplaceTaxonomyRequest) - ReplaceTaxonomyRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use ReplaceTaxonomyRequest.newBuilder() to construct. - private ReplaceTaxonomyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ReplaceTaxonomyRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ReplaceTaxonomyRequest(); - } - - 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.GeneratedMessageV3.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); - } - - 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 serializedTaxonomy_ != null; - } - /** - *
-   * 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.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (serializedTaxonomy_ != null) { - 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.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (serializedTaxonomy_ != null) { - 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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @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_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.serializedTaxonomy_ = serializedTaxonomyBuilder_ == null - ? serializedTaxonomy_ - : serializedTaxonomyBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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( - getSerializedTaxonomyFieldBuilder().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.SingleFieldBuilderV3< - 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); - } - 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 getSerializedTaxonomyFieldBuilder().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.SingleFieldBuilderV3< - com.google.cloud.datacatalog.v1.SerializedTaxonomy, com.google.cloud.datacatalog.v1.SerializedTaxonomy.Builder, com.google.cloud.datacatalog.v1.SerializedTaxonomyOrBuilder> - getSerializedTaxonomyFieldBuilder() { - if (serializedTaxonomyBuilder_ == null) { - serializedTaxonomyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - 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_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ReplaceTaxonomyRequestOrBuilder.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ReplaceTaxonomyRequestOrBuilder.java deleted file mode 100644 index 73280516ee7c..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ReplaceTaxonomyRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/policytagmanagerserialization.proto - -package com.google.cloud.datacatalog.v1; - -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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/RoutineSpec.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/RoutineSpec.java deleted file mode 100644 index 726bb3825387..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/RoutineSpec.java +++ /dev/null @@ -1,3087 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/datacatalog.proto - -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} - */ -public final class RoutineSpec extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.RoutineSpec) - RoutineSpecOrBuilder { -private static final long serialVersionUID = 0L; - // Use RoutineSpec.newBuilder() to construct. - private RoutineSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private RoutineSpec() { - routineType_ = 0; - language_ = ""; - routineArguments_ = java.util.Collections.emptyList(); - returnType_ = ""; - definitionBody_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new RoutineSpec(); - } - - 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.GeneratedMessageV3.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), - ; - - /** - *
-     * 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< - RoutineType> 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 final 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.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.RoutineSpec.Argument) - ArgumentOrBuilder { - private static final long serialVersionUID = 0L; - // Use Argument.newBuilder() to construct. - private Argument(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Argument() { - name_ = ""; - mode_ = 0; - type_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Argument(); - } - - 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.GeneratedMessageV3.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), - ; - - /** - *
-       * 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< - Mode> 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 final 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.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(type_)) { - com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(type_)) { - size += com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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.GeneratedMessageV3.isStringEmpty(language_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, language_); - } - for (int i = 0; i < routineArguments_.size(); i++) { - output.writeMessage(3, routineArguments_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(returnType_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, returnType_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(definitionBody_)) { - com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(language_)) { - size += com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(returnType_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, returnType_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(definitionBody_)) { - size += com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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.GeneratedMessageV3.alwaysUseFieldBuilders ? - getRoutineArgumentsFieldBuilder() : 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( - getBigqueryRoutineSpecFieldBuilder().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.RepeatedFieldBuilderV3< - 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 getRoutineArgumentsFieldBuilder().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 getRoutineArgumentsFieldBuilder().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 getRoutineArgumentsFieldBuilder().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 getRoutineArgumentsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datacatalog.v1.RoutineSpec.Argument, com.google.cloud.datacatalog.v1.RoutineSpec.Argument.Builder, com.google.cloud.datacatalog.v1.RoutineSpec.ArgumentOrBuilder> - getRoutineArgumentsFieldBuilder() { - if (routineArgumentsBuilder_ == null) { - routineArgumentsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - 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.SingleFieldBuilderV3< - 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 getBigqueryRoutineSpecFieldBuilder().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.SingleFieldBuilderV3< - com.google.cloud.datacatalog.v1.BigQueryRoutineSpec, com.google.cloud.datacatalog.v1.BigQueryRoutineSpec.Builder, com.google.cloud.datacatalog.v1.BigQueryRoutineSpecOrBuilder> - getBigqueryRoutineSpecFieldBuilder() { - if (bigqueryRoutineSpecBuilder_ == null) { - if (!(systemSpecCase_ == 6)) { - systemSpec_ = com.google.cloud.datacatalog.v1.BigQueryRoutineSpec.getDefaultInstance(); - } - bigqueryRoutineSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - 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_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/Schema.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/Schema.java deleted file mode 100644 index 28f68237b0a1..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/Schema.java +++ /dev/null @@ -1,928 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/schema.proto - -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} - */ -public final class Schema extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.Schema) - SchemaOrBuilder { -private static final long serialVersionUID = 0L; - // Use Schema.newBuilder() to construct. - private Schema(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Schema() { - columns_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Schema(); - } - - 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.GeneratedMessageV3.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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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.GeneratedMessageV3.alwaysUseFieldBuilders ? - getColumnsFieldBuilder() : 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.RepeatedFieldBuilderV3< - 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 getColumnsFieldBuilder().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 getColumnsFieldBuilder().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 getColumnsFieldBuilder().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 getColumnsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datacatalog.v1.ColumnSchema, com.google.cloud.datacatalog.v1.ColumnSchema.Builder, com.google.cloud.datacatalog.v1.ColumnSchemaOrBuilder> - getColumnsFieldBuilder() { - if (columnsBuilder_ == null) { - columnsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - 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_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SchemaOrBuilder.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SchemaOrBuilder.java deleted file mode 100644 index 4c43d53c355d..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SchemaOrBuilder.java +++ /dev/null @@ -1,68 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/schema.proto - -package com.google.cloud.datacatalog.v1; - -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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SchemaOuterClass.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SchemaOuterClass.java deleted file mode 100644 index 3330088e2a97..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SchemaOuterClass.java +++ /dev/null @@ -1,106 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/schema.proto - -package com.google.cloud.datacatalog.v1; - -public final class SchemaOuterClass { - private 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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1_ColumnSchema_LookerColumnSpec_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\007co" + - "lumns\030\002 \003(\0132).google.cloud.datacatalog.v" + - "1.ColumnSchema\"\332\006\n\014ColumnSchema\022\024\n\006colum" + - "n\030\006 \001(\tB\004\342A\001\002\022\022\n\004type\030\001 \001(\tB\004\342A\001\002\022\031\n\013des" + - "cription\030\002 \001(\tB\004\342A\001\001\022\022\n\004mode\030\003 \001(\tB\004\342A\001\001" + - "\022\033\n\rdefault_value\030\010 \001(\tB\004\342A\001\001\022\036\n\020ordinal" + - "_position\030\t \001(\005B\004\342A\001\001\022[\n\025highest_indexin" + - "g_type\030\n \001(\01626.google.cloud.datacatalog." + - "v1.ColumnSchema.IndexingTypeB\004\342A\001\001\022C\n\nsu" + - "bcolumns\030\007 \003(\0132).google.cloud.datacatalo" + - "g.v1.ColumnSchemaB\004\342A\001\001\022X\n\022looker_column" + - "_spec\030\022 \001(\0132:.google.cloud.datacatalog.v" + - "1.ColumnSchema.LookerColumnSpecH\000\022\025\n\007gc_" + - "rule\030\013 \001(\tB\004\342A\001\001\032\362\001\n\020LookerColumnSpec\022Y\n" + - "\004type\030\001 \001(\0162K.google.cloud.datacatalog.v" + - "1.ColumnSchema.LookerColumnSpec.LookerCo" + - "lumnType\"\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\007MEA" + - "SURE\020\004\022\r\n\tPARAMETER\020\005\"\234\001\n\014IndexingType\022\035" + - "\n\031INDEXING_TYPE_UNSPECIFIED\020\000\022\026\n\022INDEXIN" + - "G_TYPE_NONE\020\001\022\034\n\030INDEXING_TYPE_NON_UNIQU" + - "E\020\002\022\030\n\024INDEXING_TYPE_UNIQUE\020\003\022\035\n\031INDEXIN" + - "G_TYPE_PRIMARY_KEY\020\004B\r\n\013system_specB\306\001\n\037" + - "com.google.cloud.datacatalog.v1P\001ZAcloud" + - ".google.com/go/datacatalog/apiv1/datacat" + - "alogpb;datacatalogpb\370\001\001\252\002\033Google.Cloud.D" + - "ataCatalog.V1\312\002\033Google\\Cloud\\DataCatalog" + - "\\V1\352\002\036Google::Cloud::DataCatalog::V1b\006pr" + - "oto3" - }; - 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().getMessageTypes().get(0); - internal_static_google_cloud_datacatalog_v1_Schema_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_Schema_descriptor, - new java.lang.String[] { "Columns", }); - internal_static_google_cloud_datacatalog_v1_ColumnSchema_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_datacatalog_v1_ColumnSchema_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_ColumnSchema_descriptor, - new java.lang.String[] { "Column", "Type", "Description", "Mode", "DefaultValue", "OrdinalPosition", "HighestIndexingType", "Subcolumns", "LookerColumnSpec", "GcRule", "SystemSpec", }); - internal_static_google_cloud_datacatalog_v1_ColumnSchema_LookerColumnSpec_descriptor = - internal_static_google_cloud_datacatalog_v1_ColumnSchema_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_datacatalog_v1_ColumnSchema_LookerColumnSpec_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_ColumnSchema_LookerColumnSpec_descriptor, - new java.lang.String[] { "Type", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/Search.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/Search.java deleted file mode 100644 index 2fe8ed9cbcb2..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/Search.java +++ /dev/null @@ -1,80 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/search.proto - -package com.google.cloud.datacatalog.v1; - -public final class Search { - private 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.GeneratedMessageV3.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\"\257\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\022P\n\021integrated_system\030\010 \001" + - "(\0162-.google.cloud.datacatalog.v1.Integra" + - "tedSystemB\004\342A\001\003H\000\022\037\n\025user_specified_syst" + - "em\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\036SEA" + - "RCH_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\306\001\n\037" + - "com.google.cloud.datacatalog.v1P\001ZAcloud" + - ".google.com/go/datacatalog/apiv1/datacat" + - "alogpb;datacatalogpb\370\001\001\252\002\033Google.Cloud.D" + - "ataCatalog.V1\312\002\033Google\\Cloud\\DataCatalog" + - "\\V1\352\002\036Google::Cloud::DataCatalog::V1b\006pr" + - "oto3" - }; - 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().getMessageTypes().get(0); - internal_static_google_cloud_datacatalog_v1_SearchCatalogResult_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_SearchCatalogResult_descriptor, - new java.lang.String[] { "SearchResultType", "SearchResultSubtype", "RelativeResourceName", "LinkedResource", "ModifyTime", "IntegratedSystem", "UserSpecifiedSystem", "FullyQualifiedName", "DisplayName", "Description", "System", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.cloud.datacatalog.v1.Common.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SearchCatalogRequest.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SearchCatalogRequest.java deleted file mode 100644 index c9a8789c7da6..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SearchCatalogRequest.java +++ /dev/null @@ -1,3466 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/datacatalog.proto - -package com.google.cloud.datacatalog.v1; - -/** - *
- * Request message for
- * [SearchCatalog][google.cloud.datacatalog.v1.DataCatalog.SearchCatalog].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.SearchCatalogRequest} - */ -public final class SearchCatalogRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.SearchCatalogRequest) - SearchCatalogRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use SearchCatalogRequest.newBuilder() to construct. - private SearchCatalogRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SearchCatalogRequest() { - query_ = ""; - pageToken_ = ""; - orderBy_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SearchCatalogRequest(); - } - - 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.GeneratedMessageV3.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=677 - * @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.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.SearchCatalogRequest.Scope) - ScopeOrBuilder { - private static final long serialVersionUID = 0L; - // Use Scope.newBuilder() to construct. - private Scope(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Scope() { - includeOrgIds_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - includeProjectIds_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - restrictedLocations_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Scope(); - } - - 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.GeneratedMessageV3.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=677 - * @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.GeneratedMessageV3.writeString(output, 2, includeOrgIds_.getRaw(i)); - } - for (int i = 0; i < includeProjectIds_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, includeProjectIds_.getRaw(i)); - } - if (includeGcpPublicDatasets_ != false) { - output.writeBool(7, includeGcpPublicDatasets_); - } - for (int i = 0; i < restrictedLocations_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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=677 - * @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=677 - * @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=677 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearIncludePublicTagTemplates() { - bitField0_ = (bitField0_ & ~0x00000020); - includePublicTagTemplates_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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; - } - - } - - 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 scope_ != null; - } - /** - *
-   * 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.GeneratedMessageV3.isStringEmpty(query_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, query_); - } - if (pageSize_ != 0) { - output.writeInt32(2, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, orderBy_); - } - if (scope_ != null) { - 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.GeneratedMessageV3.isStringEmpty(query_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, query_); - } - if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, orderBy_); - } - if (scope_ != null) { - 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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @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_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.scope_ = scopeBuilder_ == null - ? scope_ - : scopeBuilder_.build(); - } - 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_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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( - getScopeFieldBuilder().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.SingleFieldBuilderV3< - 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); - } - 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 getScopeFieldBuilder().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.SingleFieldBuilderV3< - com.google.cloud.datacatalog.v1.SearchCatalogRequest.Scope, com.google.cloud.datacatalog.v1.SearchCatalogRequest.Scope.Builder, com.google.cloud.datacatalog.v1.SearchCatalogRequest.ScopeOrBuilder> - getScopeFieldBuilder() { - if (scopeBuilder_ == null) { - scopeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - 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; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SearchCatalogRequestOrBuilder.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SearchCatalogRequestOrBuilder.java deleted file mode 100644 index 89dcf939e884..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SearchCatalogRequestOrBuilder.java +++ /dev/null @@ -1,202 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/datacatalog.proto - -package com.google.cloud.datacatalog.v1; - -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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SearchCatalogResponse.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SearchCatalogResponse.java deleted file mode 100644 index e4d9502d0b7a..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SearchCatalogResponse.java +++ /dev/null @@ -1,1420 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/datacatalog.proto - -package com.google.cloud.datacatalog.v1; - -/** - *
- * Response message for
- * [SearchCatalog][google.cloud.datacatalog.v1.DataCatalog.SearchCatalog].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.SearchCatalogResponse} - */ -public final class SearchCatalogResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.SearchCatalogResponse) - SearchCatalogResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use SearchCatalogResponse.newBuilder() to construct. - private SearchCatalogResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SearchCatalogResponse() { - results_ = java.util.Collections.emptyList(); - nextPageToken_ = ""; - unreachable_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SearchCatalogResponse(); - } - - 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, nextPageToken_); - } - for (int i = 0; i < unreachable_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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.GeneratedMessageV3.alwaysUseFieldBuilders ? - getResultsFieldBuilder() : 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.RepeatedFieldBuilderV3< - 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 getResultsFieldBuilder().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 getResultsFieldBuilder().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 getResultsFieldBuilder().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 getResultsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datacatalog.v1.SearchCatalogResult, com.google.cloud.datacatalog.v1.SearchCatalogResult.Builder, com.google.cloud.datacatalog.v1.SearchCatalogResultOrBuilder> - getResultsFieldBuilder() { - if (resultsBuilder_ == null) { - resultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - 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; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SearchCatalogResponseOrBuilder.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SearchCatalogResponseOrBuilder.java deleted file mode 100644 index 23a8fe28291b..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SearchCatalogResponseOrBuilder.java +++ /dev/null @@ -1,146 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/datacatalog.proto - -package com.google.cloud.datacatalog.v1; - -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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SearchCatalogResult.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SearchCatalogResult.java deleted file mode 100644 index 906c947ef180..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SearchCatalogResult.java +++ /dev/null @@ -1,2454 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/search.proto - -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} - */ -public final class SearchCatalogResult extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.SearchCatalogResult) - SearchCatalogResultOrBuilder { -private static final long serialVersionUID = 0L; - // Use SearchCatalogResult.newBuilder() to construct. - private SearchCatalogResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SearchCatalogResult() { - searchResultType_ = 0; - searchResultSubtype_ = ""; - relativeResourceName_ = ""; - linkedResource_ = ""; - fullyQualifiedName_ = ""; - displayName_ = ""; - description_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SearchCatalogResult(); - } - - 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.GeneratedMessageV3.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 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 modifyTime_ != null; - } - /** - *
-   * 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.GeneratedMessageV3.isStringEmpty(searchResultSubtype_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, searchResultSubtype_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(relativeResourceName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, relativeResourceName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(linkedResource_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, linkedResource_); - } - if (modifyTime_ != null) { - output.writeMessage(7, getModifyTime()); - } - if (systemCase_ == 8) { - output.writeEnum(8, ((java.lang.Integer) system_)); - } - if (systemCase_ == 9) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 9, system_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fullyQualifiedName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 10, fullyQualifiedName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 12, displayName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { - com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(searchResultSubtype_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, searchResultSubtype_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(relativeResourceName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, relativeResourceName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(linkedResource_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, linkedResource_); - } - if (modifyTime_ != null) { - 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.GeneratedMessageV3.computeStringSize(9, system_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fullyQualifiedName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, fullyQualifiedName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, displayName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { - size += com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @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_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.modifyTime_ = modifyTimeBuilder_ == null - ? modifyTime_ - : modifyTimeBuilder_.build(); - } - if (((from_bitField0_ & 0x00000080) != 0)) { - result.fullyQualifiedName_ = fullyQualifiedName_; - } - if (((from_bitField0_ & 0x00000100) != 0)) { - result.displayName_ = displayName_; - } - if (((from_bitField0_ & 0x00000200) != 0)) { - result.description_ = description_; - } - } - - private void buildPartialOneofs(com.google.cloud.datacatalog.v1.SearchCatalogResult result) { - result.systemCase_ = systemCase_; - result.system_ = this.system_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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( - getModifyTimeFieldBuilder().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.SingleFieldBuilderV3< - 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); - } - 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 getModifyTimeFieldBuilder().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.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getModifyTimeFieldBuilder() { - if (modifyTimeBuilder_ == null) { - modifyTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - 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; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SearchCatalogResultOrBuilder.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SearchCatalogResultOrBuilder.java deleted file mode 100644 index 9464a5009381..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SearchCatalogResultOrBuilder.java +++ /dev/null @@ -1,307 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/search.proto - -package com.google.cloud.datacatalog.v1; - -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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SearchResultType.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SearchResultType.java deleted file mode 100644 index f1d1944a8d33..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SearchResultType.java +++ /dev/null @@ -1,167 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/search.proto - -package com.google.cloud.datacatalog.v1; - -/** - *
- * The resource types that can be returned in search results.
- * 
- * - * Protobuf enum {@code google.cloud.datacatalog.v1.SearchResultType} - */ -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), - ; - - /** - *
-   * 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< - SearchResultType> 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 final 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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SerializedPolicyTag.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SerializedPolicyTag.java deleted file mode 100644 index afcdcc92baf9..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SerializedPolicyTag.java +++ /dev/null @@ -1,1388 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/policytagmanagerserialization.proto - -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} - */ -public final class SerializedPolicyTag extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.SerializedPolicyTag) - SerializedPolicyTagOrBuilder { -private static final long serialVersionUID = 0L; - // Use SerializedPolicyTag.newBuilder() to construct. - private SerializedPolicyTag(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SerializedPolicyTag() { - policyTag_ = ""; - displayName_ = ""; - description_ = ""; - childPolicyTags_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SerializedPolicyTag(); - } - - 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(policyTag_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, policyTag_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_); - } - 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.GeneratedMessageV3.isStringEmpty(policyTag_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, policyTag_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); - } - 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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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.GeneratedMessageV3.alwaysUseFieldBuilders ? - getChildPolicyTagsFieldBuilder() : 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.RepeatedFieldBuilderV3< - 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 getChildPolicyTagsFieldBuilder().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 getChildPolicyTagsFieldBuilder().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 getChildPolicyTagsFieldBuilder().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 getChildPolicyTagsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datacatalog.v1.SerializedPolicyTag, com.google.cloud.datacatalog.v1.SerializedPolicyTag.Builder, com.google.cloud.datacatalog.v1.SerializedPolicyTagOrBuilder> - getChildPolicyTagsFieldBuilder() { - if (childPolicyTagsBuilder_ == null) { - childPolicyTagsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - 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_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SerializedPolicyTagOrBuilder.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SerializedPolicyTagOrBuilder.java deleted file mode 100644 index 2ea761262ef1..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SerializedPolicyTagOrBuilder.java +++ /dev/null @@ -1,123 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/policytagmanagerserialization.proto - -package com.google.cloud.datacatalog.v1; - -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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SerializedTaxonomy.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SerializedTaxonomy.java deleted file mode 100644 index 345860715784..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SerializedTaxonomy.java +++ /dev/null @@ -1,1531 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/policytagmanagerserialization.proto - -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} - */ -public final class SerializedTaxonomy extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.SerializedTaxonomy) - SerializedTaxonomyOrBuilder { -private static final long serialVersionUID = 0L; - // Use SerializedTaxonomy.newBuilder() to construct. - private SerializedTaxonomy(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SerializedTaxonomy() { - displayName_ = ""; - description_ = ""; - policyTags_ = java.util.Collections.emptyList(); - activatedPolicyTypes_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SerializedTaxonomy(); - } - - 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.GeneratedMessageV3.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 java.util.List activatedPolicyTypes_; - private static final com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.cloud.datacatalog.v1.Taxonomy.PolicyType> activatedPolicyTypes_converter_ = - new com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.cloud.datacatalog.v1.Taxonomy.PolicyType>() { - public com.google.cloud.datacatalog.v1.Taxonomy.PolicyType convert(java.lang.Integer 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.ListAdapter< - java.lang.Integer, 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_.get(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_.get(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.GeneratedMessageV3.isStringEmpty(displayName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, displayName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { - com.google.protobuf.GeneratedMessageV3.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_.get(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, displayName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { - size += com.google.protobuf.GeneratedMessageV3.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_.get(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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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_ = java.util.Collections.emptyList(); - 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_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(); - } - if (((bitField0_ & 0x00000008) != 0)) { - activatedPolicyTypes_ = java.util.Collections.unmodifiableList(activatedPolicyTypes_); - bitField0_ = (bitField0_ & ~0x00000008); - } - result.activatedPolicyTypes_ = activatedPolicyTypes_; - } - - 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_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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.GeneratedMessageV3.alwaysUseFieldBuilders ? - getPolicyTagsFieldBuilder() : null; - } else { - policyTagsBuilder_.addAllMessages(other.policyTags_); - } - } - } - if (!other.activatedPolicyTypes_.isEmpty()) { - if (activatedPolicyTypes_.isEmpty()) { - activatedPolicyTypes_ = other.activatedPolicyTypes_; - bitField0_ = (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_.add(tmpRaw); - break; - } // case 32 - case 34: { - int length = input.readRawVarint32(); - int oldLimit = input.pushLimit(length); - while(input.getBytesUntilLimit() > 0) { - int tmpRaw = input.readEnum(); - ensureActivatedPolicyTypesIsMutable(); - activatedPolicyTypes_.add(tmpRaw); - } - input.popLimit(oldLimit); - 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.RepeatedFieldBuilderV3< - 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 getPolicyTagsFieldBuilder().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 getPolicyTagsFieldBuilder().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 getPolicyTagsFieldBuilder().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 getPolicyTagsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datacatalog.v1.SerializedPolicyTag, com.google.cloud.datacatalog.v1.SerializedPolicyTag.Builder, com.google.cloud.datacatalog.v1.SerializedPolicyTagOrBuilder> - getPolicyTagsFieldBuilder() { - if (policyTagsBuilder_ == null) { - policyTagsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - 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 java.util.List activatedPolicyTypes_ = - java.util.Collections.emptyList(); - private void ensureActivatedPolicyTypesIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { - activatedPolicyTypes_ = new java.util.ArrayList(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.ListAdapter< - java.lang.Integer, 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_.get(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_.set(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_.add(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_.add(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_ = java.util.Collections.emptyList(); - 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() { - return java.util.Collections.unmodifiableList(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_.get(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_.set(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_.add(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_.add(value); - } - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SerializedTaxonomyOrBuilder.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SerializedTaxonomyOrBuilder.java deleted file mode 100644 index b4385b89aaa4..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SerializedTaxonomyOrBuilder.java +++ /dev/null @@ -1,146 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/policytagmanagerserialization.proto - -package com.google.cloud.datacatalog.v1; - -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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ServiceSpec.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ServiceSpec.java deleted file mode 100644 index cd8bce56b862..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ServiceSpec.java +++ /dev/null @@ -1,758 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/datacatalog.proto - -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} - */ -public final class ServiceSpec extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.ServiceSpec) - ServiceSpecOrBuilder { -private static final long serialVersionUID = 0L; - // Use ServiceSpec.newBuilder() to construct. - private ServiceSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ServiceSpec() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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( - getCloudBigtableInstanceSpecFieldBuilder().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.SingleFieldBuilderV3< - 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 getCloudBigtableInstanceSpecFieldBuilder().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.SingleFieldBuilderV3< - com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec, com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec.Builder, com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpecOrBuilder> - getCloudBigtableInstanceSpecFieldBuilder() { - if (cloudBigtableInstanceSpecBuilder_ == null) { - if (!(systemSpecCase_ == 1)) { - systemSpec_ = com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec.getDefaultInstance(); - } - cloudBigtableInstanceSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - 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_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ServiceSpecOrBuilder.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ServiceSpecOrBuilder.java deleted file mode 100644 index 96e9ad318686..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ServiceSpecOrBuilder.java +++ /dev/null @@ -1,41 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/datacatalog.proto - -package com.google.cloud.datacatalog.v1; - -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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SqlDatabaseSystemSpec.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SqlDatabaseSystemSpec.java deleted file mode 100644 index 33f9d1e01af1..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SqlDatabaseSystemSpec.java +++ /dev/null @@ -1,1014 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/datacatalog.proto - -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} - */ -public final class SqlDatabaseSystemSpec extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.SqlDatabaseSystemSpec) - SqlDatabaseSystemSpecOrBuilder { -private static final long serialVersionUID = 0L; - // Use SqlDatabaseSystemSpec.newBuilder() to construct. - private SqlDatabaseSystemSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SqlDatabaseSystemSpec() { - sqlEngine_ = ""; - databaseVersion_ = ""; - instanceHost_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SqlDatabaseSystemSpec(); - } - - 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(sqlEngine_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sqlEngine_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(databaseVersion_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, databaseVersion_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceHost_)) { - com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(sqlEngine_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, sqlEngine_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(databaseVersion_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, databaseVersion_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceHost_)) { - size += com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SqlDatabaseSystemSpecOrBuilder.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SqlDatabaseSystemSpecOrBuilder.java deleted file mode 100644 index 971f61f83b58..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SqlDatabaseSystemSpecOrBuilder.java +++ /dev/null @@ -1,99 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/datacatalog.proto - -package com.google.cloud.datacatalog.v1; - -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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/StarEntryRequest.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/StarEntryRequest.java deleted file mode 100644 index 33b4074d2501..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/StarEntryRequest.java +++ /dev/null @@ -1,579 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/datacatalog.proto - -package com.google.cloud.datacatalog.v1; - -/** - *
- * Request message for
- * [StarEntry][google.cloud.datacatalog.v1.DataCatalog.StarEntry].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.StarEntryRequest} - */ -public final class StarEntryRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.StarEntryRequest) - StarEntryRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use StarEntryRequest.newBuilder() to construct. - private StarEntryRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private StarEntryRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new StarEntryRequest(); - } - - 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.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 clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/StarEntryRequestOrBuilder.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/StarEntryRequestOrBuilder.java deleted file mode 100644 index e155a6b185d9..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/StarEntryRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/datacatalog.proto - -package com.google.cloud.datacatalog.v1; - -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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/StarEntryResponse.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/StarEntryResponse.java deleted file mode 100644 index 6ef9f0669eb2..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/StarEntryResponse.java +++ /dev/null @@ -1,410 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/datacatalog.proto - -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} - */ -public final class StarEntryResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.StarEntryResponse) - StarEntryResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use StarEntryResponse.newBuilder() to construct. - private StarEntryResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private StarEntryResponse() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.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 clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/StarEntryResponseOrBuilder.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/StarEntryResponseOrBuilder.java deleted file mode 100644 index a8f322751435..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/StarEntryResponseOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/datacatalog.proto - -package com.google.cloud.datacatalog.v1; - -public interface StarEntryResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.StarEntryResponse) - com.google.protobuf.MessageOrBuilder { -} diff --git a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SystemTimestamps.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SystemTimestamps.java deleted file mode 100644 index d54970b1388a..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SystemTimestamps.java +++ /dev/null @@ -1,1196 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/timestamps.proto - -package com.google.cloud.datacatalog.v1; - -/** - *
- * Timestamps associated with this resource in a particular system.
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.SystemTimestamps} - */ -public final class SystemTimestamps extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.SystemTimestamps) - SystemTimestampsOrBuilder { -private static final long serialVersionUID = 0L; - // Use SystemTimestamps.newBuilder() to construct. - private SystemTimestamps(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SystemTimestamps() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.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); - } - - 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 createTime_ != null; - } - /** - *
-   * 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 updateTime_ != null; - } - /** - *
-   * 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 expireTime_ != null; - } - /** - *
-   * 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 (createTime_ != null) { - output.writeMessage(1, getCreateTime()); - } - if (updateTime_ != null) { - output.writeMessage(2, getUpdateTime()); - } - if (expireTime_ != null) { - output.writeMessage(3, getExpireTime()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getCreateTime()); - } - if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getUpdateTime()); - } - if (expireTime_ != null) { - 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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - createTime_ = null; - if (createTimeBuilder_ != null) { - createTimeBuilder_.dispose(); - createTimeBuilder_ = null; - } - 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_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.createTime_ = createTimeBuilder_ == null - ? createTime_ - : createTimeBuilder_.build(); - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.updateTime_ = updateTimeBuilder_ == null - ? updateTime_ - : updateTimeBuilder_.build(); - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.expireTime_ = expireTimeBuilder_ == null - ? expireTime_ - : expireTimeBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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( - getCreateTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getUpdateTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - input.readMessage( - getExpireTimeFieldBuilder().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.SingleFieldBuilderV3< - 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); - } - 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 getCreateTimeFieldBuilder().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.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getCreateTimeFieldBuilder() { - if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); - createTime_ = null; - } - return createTimeBuilder_; - } - - private com.google.protobuf.Timestamp updateTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; - /** - *
-     * 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); - } - 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 getUpdateTimeFieldBuilder().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.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getUpdateTimeFieldBuilder() { - if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), - getParentForChildren(), - isClean()); - updateTime_ = null; - } - return updateTimeBuilder_; - } - - private com.google.protobuf.Timestamp expireTime_; - private com.google.protobuf.SingleFieldBuilderV3< - 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); - } - 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 getExpireTimeFieldBuilder().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.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getExpireTimeFieldBuilder() { - if (expireTimeBuilder_ == null) { - expireTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getExpireTime(), - getParentForChildren(), - isClean()); - expireTime_ = null; - } - return expireTimeBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SystemTimestampsOrBuilder.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SystemTimestampsOrBuilder.java deleted file mode 100644 index e6d6a1575877..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SystemTimestampsOrBuilder.java +++ /dev/null @@ -1,114 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/timestamps.proto - -package com.google.cloud.datacatalog.v1; - -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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TableSourceType.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TableSourceType.java deleted file mode 100644 index bbfb67051faa..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TableSourceType.java +++ /dev/null @@ -1,167 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/table_spec.proto - -package com.google.cloud.datacatalog.v1; - -/** - *
- * Table source type.
- * 
- * - * Protobuf enum {@code google.cloud.datacatalog.v1.TableSourceType} - */ -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), - ; - - /** - *
-   * 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< - TableSourceType> 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 final 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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TableSpec.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TableSpec.java deleted file mode 100644 index 2642845cf3dd..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TableSpec.java +++ /dev/null @@ -1,619 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/table_spec.proto - -package com.google.cloud.datacatalog.v1; - -/** - *
- * Normal BigQuery table specification.
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.TableSpec} - */ -public final class TableSpec extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.TableSpec) - TableSpecOrBuilder { -private static final long serialVersionUID = 0L; - // Use TableSpec.newBuilder() to construct. - private TableSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TableSpec() { - groupedEntry_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new TableSpec(); - } - - 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(groupedEntry_)) { - com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(groupedEntry_)) { - size += com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TableSpecOrBuilder.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TableSpecOrBuilder.java deleted file mode 100644 index d1cdaa191062..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TableSpecOrBuilder.java +++ /dev/null @@ -1,41 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/table_spec.proto - -package com.google.cloud.datacatalog.v1; - -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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TableSpecOuterClass.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TableSpecOuterClass.java deleted file mode 100644 index 2490fdd622d5..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TableSpecOuterClass.java +++ /dev/null @@ -1,114 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/table_spec.proto - -package com.google.cloud.datacatalog.v1; - -public final class TableSpecOuterClass { - private 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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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\"\351\001\n\021BigQueryTableSpec\022M\n" + - "\021table_source_type\030\001 \001(\0162,.google.cloud." + - "datacatalog.v1.TableSourceTypeB\004\342A\001\003\022:\n\t" + - "view_spec\030\002 \001(\0132%.google.cloud.datacatal" + - "og.v1.ViewSpecH\000\022<\n\ntable_spec\030\003 \001(\0132&.g" + - "oogle.cloud.datacatalog.v1.TableSpecH\000B\013" + - "\n\ttype_spec\"$\n\010ViewSpec\022\030\n\nview_query\030\001 " + - "\001(\tB\004\342A\001\003\"M\n\tTableSpec\022@\n\rgrouped_entry\030" + - "\001 \001(\tB)\342A\001\003\372A\"\n datacatalog.googleapis.c" + - "om/Entry\"\261\001\n\027BigQueryDateShardedSpec\022:\n\007" + - "dataset\030\001 \001(\tB)\342A\001\003\372A\"\n datacatalog.goog" + - "leapis.com/Entry\022\032\n\014table_prefix\030\002 \001(\tB\004" + - "\342A\001\003\022\031\n\013shard_count\030\003 \001(\003B\004\342A\001\003\022#\n\025lates" + - "t_shard_resource\030\004 \001(\tB\004\342A\001\003*{\n\017TableSou" + - "rceType\022!\n\035TABLE_SOURCE_TYPE_UNSPECIFIED" + - "\020\000\022\021\n\rBIGQUERY_VIEW\020\002\022\022\n\016BIGQUERY_TABLE\020" + - "\005\022\036\n\032BIGQUERY_MATERIALIZED_VIEW\020\007B\306\001\n\037co" + - "m.google.cloud.datacatalog.v1P\001ZAcloud.g" + - "oogle.com/go/datacatalog/apiv1/datacatal" + - "ogpb;datacatalogpb\370\001\001\252\002\033Google.Cloud.Dat" + - "aCatalog.V1\312\002\033Google\\Cloud\\DataCatalog\\V" + - "1\352\002\036Google::Cloud::DataCatalog::V1b\006prot" + - "o3" - }; - 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().getMessageTypes().get(0); - internal_static_google_cloud_datacatalog_v1_BigQueryTableSpec_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.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().getMessageTypes().get(1); - internal_static_google_cloud_datacatalog_v1_ViewSpec_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_ViewSpec_descriptor, - new java.lang.String[] { "ViewQuery", }); - internal_static_google_cloud_datacatalog_v1_TableSpec_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_datacatalog_v1_TableSpec_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_TableSpec_descriptor, - new java.lang.String[] { "GroupedEntry", }); - internal_static_google_cloud_datacatalog_v1_BigQueryDateShardedSpec_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_datacatalog_v1_BigQueryDateShardedSpec_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_BigQueryDateShardedSpec_descriptor, - new java.lang.String[] { "Dataset", "TablePrefix", "ShardCount", "LatestShardResource", }); - 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); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/Tag.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/Tag.java deleted file mode 100644 index da9e2bcc74ca..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/Tag.java +++ /dev/null @@ -1,1658 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/tags.proto - -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} - */ -public final class Tag extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.Tag) - TagOrBuilder { -private static final long serialVersionUID = 0L; - // Use Tag.newBuilder() to construct. - private Tag(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Tag() { - name_ = ""; - template_ = ""; - templateDisplayName_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Tag(); - } - - 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.MapField internalGetMapField( - int number) { - switch (number) { - case 3: - return internalGetFields(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.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_ = ""; - /** - *
-   * 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; - * @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 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; - * @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< - java.lang.String, com.google.cloud.datacatalog.v1.TagField> 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); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(template_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, template_); - } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetFields(), - FieldsDefaultEntryHolder.defaultEntry, - 3); - if (scopeCase_ == 4) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, scope_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(templateDisplayName_)) { - com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(template_)) { - size += com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.computeStringSize(4, scope_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(templateDisplayName_)) { - size += com.google.protobuf.GeneratedMessageV3.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.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 (!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.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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.MapField internalGetMapField( - int number) { - switch (number) { - case 3: - return internalGetFields(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 3: - return internalGetMutableFields(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.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(); - result.fields_.makeImmutable(); - } - } - - private void buildPartialOneofs(com.google.cloud.datacatalog.v1.Tag result) { - result.scopeCase_ = scopeCase_; - result.scope_ = this.scope_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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; - 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 - fields__ = input.readMessage( - FieldsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableFields().getMutableMap().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_ = ""; - /** - *
-     * 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; - * @return The name. - */ - public java.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 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; - * @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 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; - * @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 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; - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * 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; - * @param value The 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 com.google.protobuf.MapField< - java.lang.String, com.google.cloud.datacatalog.v1.TagField> fields_; - private com.google.protobuf.MapField - internalGetFields() { - if (fields_ == null) { - return com.google.protobuf.MapField.emptyMapField( - FieldsDefaultEntryHolder.defaultEntry); - } - return fields_; - } - private com.google.protobuf.MapField - internalGetMutableFields() { - if (fields_ == null) { - fields_ = com.google.protobuf.MapField.newMapField( - FieldsDefaultEntryHolder.defaultEntry); - } - if (!fields_.isMutable()) { - fields_ = fields_.copy(); - } - bitField0_ |= 0x00000010; - onChanged(); - 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 Builder clearFields() { - bitField0_ = (bitField0_ & ~0x00000010); - internalGetMutableFields().getMutableMap() - .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().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableFields() { - bitField0_ |= 0x00000010; - return internalGetMutableFields().getMutableMap(); - } - /** - *
-     * 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().getMutableMap() - .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) { - internalGetMutableFields().getMutableMap() - .putAll(values); - bitField0_ |= 0x00000010; - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TagField.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TagField.java deleted file mode 100644 index 2b019dff11ac..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TagField.java +++ /dev/null @@ -1,2597 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/tags.proto - -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} - */ -public final class TagField extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.TagField) - TagFieldOrBuilder { -private static final long serialVersionUID = 0L; - // Use TagField.newBuilder() to construct. - private TagField(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TagField() { - displayName_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new TagField(); - } - - 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.GeneratedMessageV3.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.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.TagField.EnumValue) - EnumValueOrBuilder { - private static final long serialVersionUID = 0L; - // Use EnumValue.newBuilder() to construct. - private EnumValue(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private EnumValue() { - displayName_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new EnumValue(); - } - - 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(displayName_)) { - com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(displayName_)) { - size += com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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.GeneratedMessageV3.isStringEmpty(displayName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, displayName_); - } - if (kindCase_ == 2) { - output.writeDouble( - 2, (double)((java.lang.Double) kind_)); - } - if (kindCase_ == 3) { - com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(displayName_)) { - size += com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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( - getTimestampValueFieldBuilder().getBuilder(), - extensionRegistry); - kindCase_ = 5; - break; - } // case 42 - case 50: { - input.readMessage( - getEnumValueFieldBuilder().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.SingleFieldBuilderV3< - 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 getTimestampValueFieldBuilder().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.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getTimestampValueFieldBuilder() { - if (timestampValueBuilder_ == null) { - if (!(kindCase_ == 5)) { - kind_ = com.google.protobuf.Timestamp.getDefaultInstance(); - } - timestampValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - 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.SingleFieldBuilderV3< - 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 getEnumValueFieldBuilder().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.SingleFieldBuilderV3< - com.google.cloud.datacatalog.v1.TagField.EnumValue, com.google.cloud.datacatalog.v1.TagField.EnumValue.Builder, com.google.cloud.datacatalog.v1.TagField.EnumValueOrBuilder> - getEnumValueFieldBuilder() { - if (enumValueBuilder_ == null) { - if (!(kindCase_ == 6)) { - kind_ = com.google.cloud.datacatalog.v1.TagField.EnumValue.getDefaultInstance(); - } - enumValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - 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; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TagFieldOrBuilder.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TagFieldOrBuilder.java deleted file mode 100644 index 56b247da5abb..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TagFieldOrBuilder.java +++ /dev/null @@ -1,221 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/tags.proto - -package com.google.cloud.datacatalog.v1; - -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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TagOrBuilder.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TagOrBuilder.java deleted file mode 100644 index a80c5d9d2feb..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TagOrBuilder.java +++ /dev/null @@ -1,202 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/tags.proto - -package com.google.cloud.datacatalog.v1; - -public interface TagOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.Tag) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * 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; - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * 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; - * @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); - - com.google.cloud.datacatalog.v1.Tag.ScopeCase getScopeCase(); -} diff --git a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TagTemplate.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TagTemplate.java deleted file mode 100644 index 669ca1a84eb1..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TagTemplate.java +++ /dev/null @@ -1,1342 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/tags.proto - -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} - */ -public final class TagTemplate extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.TagTemplate) - TagTemplateOrBuilder { -private static final long serialVersionUID = 0L; - // Use TagTemplate.newBuilder() to construct. - private TagTemplate(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TagTemplate() { - name_ = ""; - displayName_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new TagTemplate(); - } - - 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.MapField internalGetMapField( - int number) { - switch (number) { - case 3: - return internalGetFields(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.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); - } - - public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - *
-   * 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; - * @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 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; - * @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.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 - 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); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); - } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetFields(), - FieldsDefaultEntryHolder.defaultEntry, - 3); - if (isPubliclyReadable_ != false) { - output.writeBool(5, isPubliclyReadable_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); - } - 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 (isPubliclyReadable_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(5, isPubliclyReadable_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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 (!getUnknownFields().equals(other.getUnknownFields())) return false; - 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 = (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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.MapField internalGetMapField( - int number) { - switch (number) { - case 3: - return internalGetFields(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 3: - return internalGetMutableFields(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - displayName_ = ""; - isPubliclyReadable_ = false; - internalGetMutableFields().clear(); - 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(); - result.fields_.makeImmutable(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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; - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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 - fields__ = input.readMessage( - FieldsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableFields().getMutableMap().put( - fields__.getKey(), fields__.getValue()); - bitField0_ |= 0x00000008; - break; - } // case 26 - case 40: { - isPubliclyReadable_ = input.readBool(); - bitField0_ |= 0x00000004; - break; - } // case 40 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - *
-     * 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; - * @return The name. - */ - public java.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 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; - * @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 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; - * @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 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; - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * 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; - * @param value The 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.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.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.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 com.google.protobuf.MapField< - java.lang.String, com.google.cloud.datacatalog.v1.TagTemplateField> fields_; - private com.google.protobuf.MapField - internalGetFields() { - if (fields_ == null) { - return com.google.protobuf.MapField.emptyMapField( - FieldsDefaultEntryHolder.defaultEntry); - } - return fields_; - } - private com.google.protobuf.MapField - internalGetMutableFields() { - if (fields_ == null) { - fields_ = com.google.protobuf.MapField.newMapField( - FieldsDefaultEntryHolder.defaultEntry); - } - if (!fields_.isMutable()) { - fields_ = fields_.copy(); - } - bitField0_ |= 0x00000008; - onChanged(); - 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 Builder clearFields() { - bitField0_ = (bitField0_ & ~0x00000008); - internalGetMutableFields().getMutableMap() - .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().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableFields() { - bitField0_ |= 0x00000008; - return internalGetMutableFields().getMutableMap(); - } - /** - *
-     * 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().getMutableMap() - .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) { - internalGetMutableFields().getMutableMap() - .putAll(values); - bitField0_ |= 0x00000008; - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TagTemplateField.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TagTemplateField.java deleted file mode 100644 index e122d0f6736d..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TagTemplateField.java +++ /dev/null @@ -1,1417 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/tags.proto - -package com.google.cloud.datacatalog.v1; - -/** - *
- * The template for an individual field within a tag template.
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.TagTemplateField} - */ -public final class TagTemplateField extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.TagTemplateField) - TagTemplateFieldOrBuilder { -private static final long serialVersionUID = 0L; - // Use TagTemplateField.newBuilder() to construct. - private TagTemplateField(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TagTemplateField() { - name_ = ""; - displayName_ = ""; - description_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new TagTemplateField(); - } - - 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.GeneratedMessageV3.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); - } - - public static final int NAME_FIELD_NUMBER = 6; - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - *
-   * Output only. 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) = OUTPUT_ONLY]; - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * Output only. The resource name of the 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) = 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.
-   *
-   * 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 type_ != null; - } - /** - *
-   * 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.GeneratedMessageV3.isStringEmpty(displayName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, displayName_); - } - if (type_ != null) { - output.writeMessage(2, getType()); - } - if (isRequired_ != false) { - output.writeBool(3, isRequired_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, description_); - } - if (order_ != 0) { - output.writeInt32(5, order_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(displayName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, displayName_); - } - if (type_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getType()); - } - if (isRequired_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, isRequired_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, description_); - } - if (order_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(5, order_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @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_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.type_ = typeBuilder_ == null - ? type_ - : typeBuilder_.build(); - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.isRequired_ = isRequired_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.description_ = description_; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.order_ = order_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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( - getTypeFieldBuilder().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. 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) = OUTPUT_ONLY]; - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Output only. The resource name of the 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) = OUTPUT_ONLY]; - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Output only. The resource name of the 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) = OUTPUT_ONLY]; - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Output only. The resource name of the 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) = OUTPUT_ONLY]; - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Output only. The resource name of the 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) = 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.
-     *
-     * 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.SingleFieldBuilderV3< - 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); - } - 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 getTypeFieldBuilder().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.SingleFieldBuilderV3< - com.google.cloud.datacatalog.v1.FieldType, com.google.cloud.datacatalog.v1.FieldType.Builder, com.google.cloud.datacatalog.v1.FieldTypeOrBuilder> - getTypeFieldBuilder() { - if (typeBuilder_ == null) { - typeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - 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; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TagTemplateFieldOrBuilder.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TagTemplateFieldOrBuilder.java deleted file mode 100644 index b324bd0f939c..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TagTemplateFieldOrBuilder.java +++ /dev/null @@ -1,149 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/tags.proto - -package com.google.cloud.datacatalog.v1; - -public interface TagTemplateFieldOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.TagTemplateField) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Output only. 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) = OUTPUT_ONLY]; - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Output only. 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) = OUTPUT_ONLY]; - * @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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TagTemplateOrBuilder.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TagTemplateOrBuilder.java deleted file mode 100644 index c69e550d25f3..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TagTemplateOrBuilder.java +++ /dev/null @@ -1,182 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/tags.proto - -package com.google.cloud.datacatalog.v1; - -public interface TagTemplateOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.TagTemplate) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * 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; - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * 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; - * @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.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); -} diff --git a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TaggedEntry.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TaggedEntry.java deleted file mode 100644 index 8df3b82a4042..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TaggedEntry.java +++ /dev/null @@ -1,1680 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/dump_content.proto - -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} - */ -public final class TaggedEntry extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.TaggedEntry) - TaggedEntryOrBuilder { -private static final long serialVersionUID = 0L; - // Use TaggedEntry.newBuilder() to construct. - private TaggedEntry(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TaggedEntry() { - presentTags_ = java.util.Collections.emptyList(); - absentTags_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new TaggedEntry(); - } - - 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.GeneratedMessageV3.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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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.GeneratedMessageV3.alwaysUseFieldBuilders ? - getPresentTagsFieldBuilder() : 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.GeneratedMessageV3.alwaysUseFieldBuilders ? - getAbsentTagsFieldBuilder() : 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( - getV1EntryFieldBuilder().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.SingleFieldBuilderV3< - 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 getV1EntryFieldBuilder().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.SingleFieldBuilderV3< - com.google.cloud.datacatalog.v1.Entry, com.google.cloud.datacatalog.v1.Entry.Builder, com.google.cloud.datacatalog.v1.EntryOrBuilder> - getV1EntryFieldBuilder() { - if (v1EntryBuilder_ == null) { - if (!(entryCase_ == 1)) { - entry_ = com.google.cloud.datacatalog.v1.Entry.getDefaultInstance(); - } - v1EntryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - 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.RepeatedFieldBuilderV3< - 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 getPresentTagsFieldBuilder().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 getPresentTagsFieldBuilder().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 getPresentTagsFieldBuilder().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 getPresentTagsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datacatalog.v1.Tag, com.google.cloud.datacatalog.v1.Tag.Builder, com.google.cloud.datacatalog.v1.TagOrBuilder> - getPresentTagsFieldBuilder() { - if (presentTagsBuilder_ == null) { - presentTagsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - 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.RepeatedFieldBuilderV3< - 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 getAbsentTagsFieldBuilder().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 getAbsentTagsFieldBuilder().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 getAbsentTagsFieldBuilder().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 getAbsentTagsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datacatalog.v1.Tag, com.google.cloud.datacatalog.v1.Tag.Builder, com.google.cloud.datacatalog.v1.TagOrBuilder> - getAbsentTagsFieldBuilder() { - if (absentTagsBuilder_ == null) { - absentTagsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - 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_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TaggedEntryOrBuilder.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TaggedEntryOrBuilder.java deleted file mode 100644 index 3ddb9c064fed..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TaggedEntryOrBuilder.java +++ /dev/null @@ -1,136 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/dump_content.proto - -package com.google.cloud.datacatalog.v1; - -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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/Tags.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/Tags.java deleted file mode 100644 index 1484fb5bf554..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/Tags.java +++ /dev/null @@ -1,212 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/tags.proto - -package com.google.cloud.datacatalog.v1; - -public final class Tags { - private 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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.pro" + - "to\"\211\003\n\003Tag\022\014\n\004name\030\001 \001(\t\022\026\n\010template\030\002 \001" + - "(\tB\004\342A\001\002\022#\n\025template_display_name\030\005 \001(\tB" + - "\004\342A\001\003\022\020\n\006column\030\004 \001(\tH\000\022B\n\006fields\030\003 \003(\0132" + - ",.google.cloud.datacatalog.v1.Tag.Fields" + - "EntryB\004\342A\001\002\032T\n\013FieldsEntry\022\013\n\003key\030\001 \001(\t\022" + - "4\n\005value\030\002 \001(\0132%.google.cloud.datacatalo" + - "g.v1.TagField:\0028\001:\201\001\352A~\n\036datacatalog.goo" + - "gleapis.com/Tag\022\\projects/{project}/loca" + - "tions/{location}/entryGroups/{entry_grou" + - "p}/entries/{entry}/tags/{tag}B\007\n\005scope\"\304" + - "\002\n\010TagField\022\032\n\014display_name\030\001 \001(\tB\004\342A\001\003\022" + - "\026\n\014double_value\030\002 \001(\001H\000\022\026\n\014string_value\030" + - "\003 \001(\tH\000\022\024\n\nbool_value\030\004 \001(\010H\000\0225\n\017timesta" + - "mp_value\030\005 \001(\0132\032.google.protobuf.Timesta" + - "mpH\000\022E\n\nenum_value\030\006 \001(\0132/.google.cloud." + - "datacatalog.v1.TagField.EnumValueH\000\022\030\n\016r" + - "ichtext_value\030\010 \001(\tH\000\022\023\n\005order\030\007 \001(\005B\004\342A" + - "\001\003\032!\n\tEnumValue\022\024\n\014display_name\030\001 \001(\tB\006\n" + - "\004kind\"\353\002\n\013TagTemplate\022\014\n\004name\030\001 \001(\t\022\024\n\014d" + - "isplay_name\030\002 \001(\t\022\034\n\024is_publicly_readabl" + - "e\030\005 \001(\010\022J\n\006fields\030\003 \003(\01324.google.cloud.d" + - "atacatalog.v1.TagTemplate.FieldsEntryB\004\342" + - "A\001\002\032\\\n\013FieldsEntry\022\013\n\003key\030\001 \001(\t\022<\n\005value" + - "\030\002 \001(\0132-.google.cloud.datacatalog.v1.Tag" + - "TemplateField:\0028\001:p\352Am\n&datacatalog.goog" + - "leapis.com/TagTemplate\022Cprojects/{projec" + - "t}/locations/{location}/tagTemplates/{ta" + - "g_template}\"\271\002\n\020TagTemplateField\022\022\n\004name" + - "\030\006 \001(\tB\004\342A\001\003\022\024\n\014display_name\030\001 \001(\t\022:\n\004ty" + - "pe\030\002 \001(\0132&.google.cloud.datacatalog.v1.F" + - "ieldTypeB\004\342A\001\002\022\023\n\013is_required\030\003 \001(\010\022\023\n\013d" + - "escription\030\004 \001(\t\022\r\n\005order\030\005 \001(\005:\205\001\352A\201\001\n+" + - "datacatalog.googleapis.com/TagTemplateFi" + - "eld\022Rprojects/{project}/locations/{locat" + - "ion}/tagTemplates/{tag_template}/fields/" + - "{field}\"\247\003\n\tFieldType\022N\n\016primitive_type\030" + - "\001 \001(\01624.google.cloud.datacatalog.v1.Fiel" + - "dType.PrimitiveTypeH\000\022D\n\tenum_type\030\002 \001(\013" + - "2/.google.cloud.datacatalog.v1.FieldType" + - ".EnumTypeH\000\032\206\001\n\010EnumType\022Q\n\016allowed_valu" + - "es\030\001 \003(\01329.google.cloud.datacatalog.v1.F" + - "ieldType.EnumType.EnumValue\032\'\n\tEnumValue" + - "\022\032\n\014display_name\030\001 \001(\tB\004\342A\001\002\"n\n\rPrimitiv" + - "eType\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\tTIMES" + - "TAMP\020\004\022\014\n\010RICHTEXT\020\005B\013\n\ttype_declB\306\001\n\037co" + - "m.google.cloud.datacatalog.v1P\001ZAcloud.g" + - "oogle.com/go/datacatalog/apiv1/datacatal" + - "ogpb;datacatalogpb\370\001\001\252\002\033Google.Cloud.Dat" + - "aCatalog.V1\312\002\033Google\\Cloud\\DataCatalog\\V" + - "1\352\002\036Google::Cloud::DataCatalog::V1b\006prot" + - "o3" - }; - 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().getMessageTypes().get(0); - internal_static_google_cloud_datacatalog_v1_Tag_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_Tag_descriptor, - new java.lang.String[] { "Name", "Template", "TemplateDisplayName", "Column", "Fields", "Scope", }); - internal_static_google_cloud_datacatalog_v1_Tag_FieldsEntry_descriptor = - internal_static_google_cloud_datacatalog_v1_Tag_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_datacatalog_v1_Tag_FieldsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.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().getMessageTypes().get(1); - internal_static_google_cloud_datacatalog_v1_TagField_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.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.getNestedTypes().get(0); - internal_static_google_cloud_datacatalog_v1_TagField_EnumValue_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_TagField_EnumValue_descriptor, - new java.lang.String[] { "DisplayName", }); - internal_static_google_cloud_datacatalog_v1_TagTemplate_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_datacatalog_v1_TagTemplate_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_TagTemplate_descriptor, - new java.lang.String[] { "Name", "DisplayName", "IsPubliclyReadable", "Fields", }); - internal_static_google_cloud_datacatalog_v1_TagTemplate_FieldsEntry_descriptor = - internal_static_google_cloud_datacatalog_v1_TagTemplate_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_datacatalog_v1_TagTemplate_FieldsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.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().getMessageTypes().get(3); - internal_static_google_cloud_datacatalog_v1_TagTemplateField_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.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().getMessageTypes().get(4); - internal_static_google_cloud_datacatalog_v1_FieldType_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.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.getNestedTypes().get(0); - internal_static_google_cloud_datacatalog_v1_FieldType_EnumType_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.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.getNestedTypes().get(0); - internal_static_google_cloud_datacatalog_v1_FieldType_EnumType_EnumValue_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_FieldType_EnumType_EnumValue_descriptor, - new java.lang.String[] { "DisplayName", }); - 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); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/Taxonomy.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/Taxonomy.java deleted file mode 100644 index 4a6d8c95bda4..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/Taxonomy.java +++ /dev/null @@ -1,2813 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/policytagmanager.proto - -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} - */ -public final class Taxonomy extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.Taxonomy) - TaxonomyOrBuilder { -private static final long serialVersionUID = 0L; - // Use Taxonomy.newBuilder() to construct. - private Taxonomy(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Taxonomy() { - name_ = ""; - displayName_ = ""; - description_ = ""; - activatedPolicyTypes_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Taxonomy(); - } - - 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.GeneratedMessageV3.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), - ; - - /** - *
-     * 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< - PolicyType> 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 final 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.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.Taxonomy.Service) - ServiceOrBuilder { - private static final long serialVersionUID = 0L; - // Use Service.newBuilder() to construct. - private Service(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Service() { - name_ = 0; - identity_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Service(); - } - - 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(identity_)) { - com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(identity_)) { - size += com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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; - } - - } - - public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - *
-   * Output only. Resource name of this taxonomy in URL format.
-   *
-   * Note: Policy tag manager generates unique taxonomy IDs.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * Output only. Resource name of this taxonomy in URL format.
-   *
-   * Note: Policy tag manager generates unique taxonomy IDs.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int 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 taxonomyTimestamps_ != null; - } - /** - *
-   * 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 java.util.List activatedPolicyTypes_; - private static final com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.cloud.datacatalog.v1.Taxonomy.PolicyType> activatedPolicyTypes_converter_ = - new com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.cloud.datacatalog.v1.Taxonomy.PolicyType>() { - public com.google.cloud.datacatalog.v1.Taxonomy.PolicyType convert(java.lang.Integer 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.ListAdapter< - java.lang.Integer, 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_.get(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_.get(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 service_ != null; - } - /** - *
-   * 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.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_); - } - if (policyTagCount_ != 0) { - output.writeInt32(4, policyTagCount_); - } - if (taxonomyTimestamps_ != null) { - 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_.get(i)); - } - if (service_ != null) { - 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.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); - } - if (policyTagCount_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(4, policyTagCount_); - } - if (taxonomyTimestamps_ != null) { - 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_.get(i)); - } - size += dataSize; - if (!getActivatedPolicyTypesList().isEmpty()) { size += 1; - size += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(dataSize); - }activatedPolicyTypesMemoizedSerializedSize = dataSize; - } - if (service_ != null) { - 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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @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_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000020); - 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); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(com.google.cloud.datacatalog.v1.Taxonomy result) { - if (((bitField0_ & 0x00000020) != 0)) { - activatedPolicyTypes_ = java.util.Collections.unmodifiableList(activatedPolicyTypes_); - bitField0_ = (bitField0_ & ~0x00000020); - } - result.activatedPolicyTypes_ = activatedPolicyTypes_; - } - - 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_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.taxonomyTimestamps_ = taxonomyTimestampsBuilder_ == null - ? taxonomyTimestamps_ - : taxonomyTimestampsBuilder_.build(); - } - if (((from_bitField0_ & 0x00000040) != 0)) { - result.service_ = serviceBuilder_ == null - ? service_ - : serviceBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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_; - bitField0_ = (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( - getTaxonomyTimestampsFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 48: { - int tmpRaw = input.readEnum(); - ensureActivatedPolicyTypesIsMutable(); - activatedPolicyTypes_.add(tmpRaw); - break; - } // case 48 - case 50: { - int length = input.readRawVarint32(); - int oldLimit = input.pushLimit(length); - while(input.getBytesUntilLimit() > 0) { - int tmpRaw = input.readEnum(); - ensureActivatedPolicyTypesIsMutable(); - activatedPolicyTypes_.add(tmpRaw); - } - input.popLimit(oldLimit); - break; - } // case 50 - case 58: { - input.readMessage( - getServiceFieldBuilder().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_ = ""; - /** - *
-     * Output only. Resource name of this taxonomy in URL format.
-     *
-     * Note: Policy tag manager generates unique taxonomy IDs.
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Output only. Resource name of this taxonomy in URL format.
-     *
-     * Note: Policy tag manager generates unique taxonomy IDs.
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Output only. Resource name of this taxonomy in URL format.
-     *
-     * Note: Policy tag manager generates unique taxonomy IDs.
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Output only. Resource name of this taxonomy in URL format.
-     *
-     * Note: Policy tag manager generates unique taxonomy IDs.
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Output only. Resource name of this taxonomy in URL format.
-     *
-     * Note: Policy tag manager generates unique taxonomy IDs.
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object 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.SingleFieldBuilderV3< - 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); - } - 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 getTaxonomyTimestampsFieldBuilder().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.SingleFieldBuilderV3< - com.google.cloud.datacatalog.v1.SystemTimestamps, com.google.cloud.datacatalog.v1.SystemTimestamps.Builder, com.google.cloud.datacatalog.v1.SystemTimestampsOrBuilder> - getTaxonomyTimestampsFieldBuilder() { - if (taxonomyTimestampsBuilder_ == null) { - taxonomyTimestampsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - 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 java.util.List activatedPolicyTypes_ = - java.util.Collections.emptyList(); - private void ensureActivatedPolicyTypesIsMutable() { - if (!((bitField0_ & 0x00000020) != 0)) { - activatedPolicyTypes_ = new java.util.ArrayList(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.ListAdapter< - java.lang.Integer, 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_.get(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_.set(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_.add(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_.add(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_ = java.util.Collections.emptyList(); - 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() { - return java.util.Collections.unmodifiableList(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_.get(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_.set(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_.add(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_.add(value); - } - onChanged(); - return this; - } - - private com.google.cloud.datacatalog.v1.Taxonomy.Service service_; - private com.google.protobuf.SingleFieldBuilderV3< - 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); - } - 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 getServiceFieldBuilder().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.SingleFieldBuilderV3< - com.google.cloud.datacatalog.v1.Taxonomy.Service, com.google.cloud.datacatalog.v1.Taxonomy.Service.Builder, com.google.cloud.datacatalog.v1.Taxonomy.ServiceOrBuilder> - getServiceFieldBuilder() { - if (serviceBuilder_ == null) { - serviceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - 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_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TaxonomyOrBuilder.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TaxonomyOrBuilder.java deleted file mode 100644 index bebe98097d71..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TaxonomyOrBuilder.java +++ /dev/null @@ -1,217 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/policytagmanager.proto - -package com.google.cloud.datacatalog.v1; - -public interface TaxonomyOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.Taxonomy) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Output only. Resource name of this taxonomy in URL format.
-   *
-   * Note: Policy tag manager generates unique taxonomy IDs.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Output only. Resource name of this taxonomy in URL format.
-   *
-   * Note: Policy tag manager generates unique taxonomy IDs.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/Timestamps.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/Timestamps.java deleted file mode 100644 index ec390c48c616..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/Timestamps.java +++ /dev/null @@ -1,68 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/timestamps.proto - -package com.google.cloud.datacatalog.v1; - -public final class Timestamps { - private 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.GeneratedMessageV3.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\"\253\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\0225\n\013expire_time\030\003 \001(" + - "\0132\032.google.protobuf.TimestampB\004\342A\001\003B\306\001\n\037" + - "com.google.cloud.datacatalog.v1P\001ZAcloud" + - ".google.com/go/datacatalog/apiv1/datacat" + - "alogpb;datacatalogpb\370\001\001\252\002\033Google.Cloud.D" + - "ataCatalog.V1\312\002\033Google\\Cloud\\DataCatalog" + - "\\V1\352\002\036Google::Cloud::DataCatalog::V1b\006pr" + - "oto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_datacatalog_v1_SystemTimestamps_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_datacatalog_v1_SystemTimestamps_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_SystemTimestamps_descriptor, - new java.lang.String[] { "CreateTime", "UpdateTime", "ExpireTime", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UnstarEntryRequest.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UnstarEntryRequest.java deleted file mode 100644 index e5221373c38f..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UnstarEntryRequest.java +++ /dev/null @@ -1,579 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/datacatalog.proto - -package com.google.cloud.datacatalog.v1; - -/** - *
- * Request message for
- * [UnstarEntry][google.cloud.datacatalog.v1.DataCatalog.UnstarEntry].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.UnstarEntryRequest} - */ -public final class UnstarEntryRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.UnstarEntryRequest) - UnstarEntryRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use UnstarEntryRequest.newBuilder() to construct. - private UnstarEntryRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private UnstarEntryRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new UnstarEntryRequest(); - } - - 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.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 clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UnstarEntryRequestOrBuilder.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UnstarEntryRequestOrBuilder.java deleted file mode 100644 index 52c37729f679..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UnstarEntryRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/datacatalog.proto - -package com.google.cloud.datacatalog.v1; - -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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UnstarEntryResponse.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UnstarEntryResponse.java deleted file mode 100644 index 5c289dd19dae..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UnstarEntryResponse.java +++ /dev/null @@ -1,410 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/datacatalog.proto - -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} - */ -public final class UnstarEntryResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.UnstarEntryResponse) - UnstarEntryResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use UnstarEntryResponse.newBuilder() to construct. - private UnstarEntryResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private UnstarEntryResponse() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.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 clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UnstarEntryResponseOrBuilder.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UnstarEntryResponseOrBuilder.java deleted file mode 100644 index 59adc2e36d85..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UnstarEntryResponseOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/datacatalog.proto - -package com.google.cloud.datacatalog.v1; - -public interface UnstarEntryResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.UnstarEntryResponse) - com.google.protobuf.MessageOrBuilder { -} diff --git a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UpdateEntryGroupRequest.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UpdateEntryGroupRequest.java deleted file mode 100644 index 16e332e28399..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UpdateEntryGroupRequest.java +++ /dev/null @@ -1,921 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/datacatalog.proto - -package com.google.cloud.datacatalog.v1; - -/** - *
- * Request message for
- * [UpdateEntryGroup][google.cloud.datacatalog.v1.DataCatalog.UpdateEntryGroup].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.UpdateEntryGroupRequest} - */ -public final class UpdateEntryGroupRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.UpdateEntryGroupRequest) - UpdateEntryGroupRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use UpdateEntryGroupRequest.newBuilder() to construct. - private UpdateEntryGroupRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private UpdateEntryGroupRequest() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.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); - } - - 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 entryGroup_ != null; - } - /** - *
-   * 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 updateMask_ != null; - } - /** - *
-   * 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 (entryGroup_ != null) { - output.writeMessage(1, getEntryGroup()); - } - if (updateMask_ != null) { - output.writeMessage(2, getUpdateMask()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (entryGroup_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getEntryGroup()); - } - if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getUpdateMask()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @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_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.entryGroup_ = entryGroupBuilder_ == null - ? entryGroup_ - : entryGroupBuilder_.build(); - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null - ? updateMask_ - : updateMaskBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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( - getEntryGroupFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getUpdateMaskFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private com.google.cloud.datacatalog.v1.EntryGroup entryGroup_; - private com.google.protobuf.SingleFieldBuilderV3< - 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); - } - 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 getEntryGroupFieldBuilder().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.SingleFieldBuilderV3< - com.google.cloud.datacatalog.v1.EntryGroup, com.google.cloud.datacatalog.v1.EntryGroup.Builder, com.google.cloud.datacatalog.v1.EntryGroupOrBuilder> - getEntryGroupFieldBuilder() { - if (entryGroupBuilder_ == null) { - entryGroupBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - 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.SingleFieldBuilderV3< - 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); - } - 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 getUpdateMaskFieldBuilder().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.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> - getUpdateMaskFieldBuilder() { - if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), - getParentForChildren(), - isClean()); - updateMask_ = null; - } - return updateMaskBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UpdateEntryGroupRequestOrBuilder.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UpdateEntryGroupRequestOrBuilder.java deleted file mode 100644 index 72825e8ea331..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UpdateEntryGroupRequestOrBuilder.java +++ /dev/null @@ -1,75 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/datacatalog.proto - -package com.google.cloud.datacatalog.v1; - -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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UpdateEntryRequest.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UpdateEntryRequest.java deleted file mode 100644 index f0ff61df7465..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UpdateEntryRequest.java +++ /dev/null @@ -1,1209 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/datacatalog.proto - -package com.google.cloud.datacatalog.v1; - -/** - *
- * Request message for
- * [UpdateEntry][google.cloud.datacatalog.v1.DataCatalog.UpdateEntry].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.UpdateEntryRequest} - */ -public final class UpdateEntryRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.UpdateEntryRequest) - UpdateEntryRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use UpdateEntryRequest.newBuilder() to construct. - private UpdateEntryRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private UpdateEntryRequest() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.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); - } - - 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 entry_ != null; - } - /** - *
-   * 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 updateMask_ != null; - } - /** - *
-   * 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 (entry_ != null) { - output.writeMessage(1, getEntry()); - } - if (updateMask_ != null) { - output.writeMessage(2, getUpdateMask()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (entry_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getEntry()); - } - if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getUpdateMask()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @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_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.entry_ = entryBuilder_ == null - ? entry_ - : entryBuilder_.build(); - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null - ? updateMask_ - : updateMaskBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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( - getEntryFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getUpdateMaskFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private com.google.cloud.datacatalog.v1.Entry entry_; - private com.google.protobuf.SingleFieldBuilderV3< - 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); - } - 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 getEntryFieldBuilder().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.SingleFieldBuilderV3< - com.google.cloud.datacatalog.v1.Entry, com.google.cloud.datacatalog.v1.Entry.Builder, com.google.cloud.datacatalog.v1.EntryOrBuilder> - getEntryFieldBuilder() { - if (entryBuilder_ == null) { - entryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - 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.SingleFieldBuilderV3< - 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); - } - 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 getUpdateMaskFieldBuilder().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.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> - getUpdateMaskFieldBuilder() { - if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), - getParentForChildren(), - isClean()); - updateMask_ = null; - } - return updateMaskBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UpdateEntryRequestOrBuilder.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UpdateEntryRequestOrBuilder.java deleted file mode 100644 index 578d81a7cbb4..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UpdateEntryRequestOrBuilder.java +++ /dev/null @@ -1,147 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/datacatalog.proto - -package com.google.cloud.datacatalog.v1; - -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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UpdatePolicyTagRequest.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UpdatePolicyTagRequest.java deleted file mode 100644 index 06bc52ad4d6b..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UpdatePolicyTagRequest.java +++ /dev/null @@ -1,945 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/policytagmanager.proto - -package com.google.cloud.datacatalog.v1; - -/** - *
- * Request message for
- * [UpdatePolicyTag][google.cloud.datacatalog.v1.PolicyTagManager.UpdatePolicyTag].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.UpdatePolicyTagRequest} - */ -public final class UpdatePolicyTagRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.UpdatePolicyTagRequest) - UpdatePolicyTagRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use UpdatePolicyTagRequest.newBuilder() to construct. - private UpdatePolicyTagRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private UpdatePolicyTagRequest() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.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); - } - - 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 policyTag_ != null; - } - /** - *
-   * 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 updateMask_ != null; - } - /** - *
-   * 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 (policyTag_ != null) { - output.writeMessage(1, getPolicyTag()); - } - if (updateMask_ != null) { - output.writeMessage(2, getUpdateMask()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (policyTag_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getPolicyTag()); - } - if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getUpdateMask()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @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_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.policyTag_ = policyTagBuilder_ == null - ? policyTag_ - : policyTagBuilder_.build(); - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null - ? updateMask_ - : updateMaskBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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( - getPolicyTagFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getUpdateMaskFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private com.google.cloud.datacatalog.v1.PolicyTag policyTag_; - private com.google.protobuf.SingleFieldBuilderV3< - 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); - } - 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 getPolicyTagFieldBuilder().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.SingleFieldBuilderV3< - com.google.cloud.datacatalog.v1.PolicyTag, com.google.cloud.datacatalog.v1.PolicyTag.Builder, com.google.cloud.datacatalog.v1.PolicyTagOrBuilder> - getPolicyTagFieldBuilder() { - if (policyTagBuilder_ == null) { - policyTagBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - 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.SingleFieldBuilderV3< - 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); - } - 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 getUpdateMaskFieldBuilder().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.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> - getUpdateMaskFieldBuilder() { - if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), - getParentForChildren(), - isClean()); - updateMask_ = null; - } - return updateMaskBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UpdatePolicyTagRequestOrBuilder.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UpdatePolicyTagRequestOrBuilder.java deleted file mode 100644 index 9f1082e61ac6..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UpdatePolicyTagRequestOrBuilder.java +++ /dev/null @@ -1,81 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/policytagmanager.proto - -package com.google.cloud.datacatalog.v1; - -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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UpdateTagRequest.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UpdateTagRequest.java deleted file mode 100644 index 44599b73862c..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UpdateTagRequest.java +++ /dev/null @@ -1,933 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/datacatalog.proto - -package com.google.cloud.datacatalog.v1; - -/** - *
- * Request message for
- * [UpdateTag][google.cloud.datacatalog.v1.DataCatalog.UpdateTag].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.UpdateTagRequest} - */ -public final class UpdateTagRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.UpdateTagRequest) - UpdateTagRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use UpdateTagRequest.newBuilder() to construct. - private UpdateTagRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private UpdateTagRequest() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.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); - } - - 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 tag_ != null; - } - /** - *
-   * 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 updateMask_ != null; - } - /** - *
-   * 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 (tag_ != null) { - output.writeMessage(1, getTag()); - } - if (updateMask_ != null) { - output.writeMessage(2, getUpdateMask()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (tag_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getTag()); - } - if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getUpdateMask()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @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_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.tag_ = tagBuilder_ == null - ? tag_ - : tagBuilder_.build(); - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null - ? updateMask_ - : updateMaskBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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( - getTagFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getUpdateMaskFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private com.google.cloud.datacatalog.v1.Tag tag_; - private com.google.protobuf.SingleFieldBuilderV3< - 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); - } - 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 getTagFieldBuilder().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.SingleFieldBuilderV3< - com.google.cloud.datacatalog.v1.Tag, com.google.cloud.datacatalog.v1.Tag.Builder, com.google.cloud.datacatalog.v1.TagOrBuilder> - getTagFieldBuilder() { - if (tagBuilder_ == null) { - tagBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - 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.SingleFieldBuilderV3< - 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); - } - 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 getUpdateMaskFieldBuilder().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.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> - getUpdateMaskFieldBuilder() { - if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), - getParentForChildren(), - isClean()); - updateMask_ = null; - } - return updateMaskBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UpdateTagRequestOrBuilder.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UpdateTagRequestOrBuilder.java deleted file mode 100644 index be713a850260..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UpdateTagRequestOrBuilder.java +++ /dev/null @@ -1,78 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/datacatalog.proto - -package com.google.cloud.datacatalog.v1; - -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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UpdateTagTemplateFieldRequest.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UpdateTagTemplateFieldRequest.java deleted file mode 100644 index 5880fff1836c..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UpdateTagTemplateFieldRequest.java +++ /dev/null @@ -1,1217 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/datacatalog.proto - -package com.google.cloud.datacatalog.v1; - -/** - *
- * Request message for
- * [UpdateTagTemplateField][google.cloud.datacatalog.v1.DataCatalog.UpdateTagTemplateField].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.UpdateTagTemplateFieldRequest} - */ -public final class UpdateTagTemplateFieldRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.UpdateTagTemplateFieldRequest) - UpdateTagTemplateFieldRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use UpdateTagTemplateFieldRequest.newBuilder() to construct. - private UpdateTagTemplateFieldRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private UpdateTagTemplateFieldRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new UpdateTagTemplateFieldRequest(); - } - - 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.GeneratedMessageV3.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); - } - - 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 tagTemplateField_ != null; - } - /** - *
-   * 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 updateMask_ != null; - } - /** - *
-   * 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.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (tagTemplateField_ != null) { - output.writeMessage(2, getTagTemplateField()); - } - if (updateMask_ != null) { - 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.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (tagTemplateField_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getTagTemplateField()); - } - if (updateMask_ != null) { - 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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @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_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.tagTemplateField_ = tagTemplateFieldBuilder_ == null - ? tagTemplateField_ - : tagTemplateFieldBuilder_.build(); - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null - ? updateMask_ - : updateMaskBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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( - getTagTemplateFieldFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - input.readMessage( - getUpdateMaskFieldBuilder().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.SingleFieldBuilderV3< - 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); - } - 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 getTagTemplateFieldFieldBuilder().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.SingleFieldBuilderV3< - com.google.cloud.datacatalog.v1.TagTemplateField, com.google.cloud.datacatalog.v1.TagTemplateField.Builder, com.google.cloud.datacatalog.v1.TagTemplateFieldOrBuilder> - getTagTemplateFieldFieldBuilder() { - if (tagTemplateFieldBuilder_ == null) { - tagTemplateFieldBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - 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.SingleFieldBuilderV3< - 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); - } - 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 getUpdateMaskFieldBuilder().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.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> - getUpdateMaskFieldBuilder() { - if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), - getParentForChildren(), - isClean()); - updateMask_ = null; - } - return updateMaskBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UpdateTagTemplateFieldRequestOrBuilder.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UpdateTagTemplateFieldRequestOrBuilder.java deleted file mode 100644 index ad7accb06ea1..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UpdateTagTemplateFieldRequestOrBuilder.java +++ /dev/null @@ -1,128 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/datacatalog.proto - -package com.google.cloud.datacatalog.v1; - -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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UpdateTagTemplateRequest.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UpdateTagTemplateRequest.java deleted file mode 100644 index a0ca77f20fd4..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UpdateTagTemplateRequest.java +++ /dev/null @@ -1,969 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/datacatalog.proto - -package com.google.cloud.datacatalog.v1; - -/** - *
- * Request message for
- * [UpdateTagTemplate][google.cloud.datacatalog.v1.DataCatalog.UpdateTagTemplate].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.UpdateTagTemplateRequest} - */ -public final class UpdateTagTemplateRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.UpdateTagTemplateRequest) - UpdateTagTemplateRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use UpdateTagTemplateRequest.newBuilder() to construct. - private UpdateTagTemplateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private UpdateTagTemplateRequest() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.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); - } - - 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 tagTemplate_ != null; - } - /** - *
-   * 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 updateMask_ != null; - } - /** - *
-   * 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 (tagTemplate_ != null) { - output.writeMessage(1, getTagTemplate()); - } - if (updateMask_ != null) { - output.writeMessage(2, getUpdateMask()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (tagTemplate_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getTagTemplate()); - } - if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getUpdateMask()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @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_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.tagTemplate_ = tagTemplateBuilder_ == null - ? tagTemplate_ - : tagTemplateBuilder_.build(); - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null - ? updateMask_ - : updateMaskBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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( - getTagTemplateFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getUpdateMaskFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private com.google.cloud.datacatalog.v1.TagTemplate tagTemplate_; - private com.google.protobuf.SingleFieldBuilderV3< - 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); - } - 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 getTagTemplateFieldBuilder().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.SingleFieldBuilderV3< - com.google.cloud.datacatalog.v1.TagTemplate, com.google.cloud.datacatalog.v1.TagTemplate.Builder, com.google.cloud.datacatalog.v1.TagTemplateOrBuilder> - getTagTemplateFieldBuilder() { - if (tagTemplateBuilder_ == null) { - tagTemplateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - 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.SingleFieldBuilderV3< - 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); - } - 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 getUpdateMaskFieldBuilder().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.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> - getUpdateMaskFieldBuilder() { - if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), - getParentForChildren(), - isClean()); - updateMask_ = null; - } - return updateMaskBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UpdateTagTemplateRequestOrBuilder.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UpdateTagTemplateRequestOrBuilder.java deleted file mode 100644 index 7f6ce6f9530c..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UpdateTagTemplateRequestOrBuilder.java +++ /dev/null @@ -1,87 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/datacatalog.proto - -package com.google.cloud.datacatalog.v1; - -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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UpdateTaxonomyRequest.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UpdateTaxonomyRequest.java deleted file mode 100644 index 88ea893162df..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UpdateTaxonomyRequest.java +++ /dev/null @@ -1,933 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/policytagmanager.proto - -package com.google.cloud.datacatalog.v1; - -/** - *
- * Request message for
- * [UpdateTaxonomy][google.cloud.datacatalog.v1.PolicyTagManager.UpdateTaxonomy].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.UpdateTaxonomyRequest} - */ -public final class UpdateTaxonomyRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.UpdateTaxonomyRequest) - UpdateTaxonomyRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use UpdateTaxonomyRequest.newBuilder() to construct. - private UpdateTaxonomyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private UpdateTaxonomyRequest() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.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); - } - - 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 taxonomy_ != null; - } - /** - *
-   * 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 updateMask_ != null; - } - /** - *
-   * 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 (taxonomy_ != null) { - output.writeMessage(1, getTaxonomy()); - } - if (updateMask_ != null) { - output.writeMessage(2, getUpdateMask()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (taxonomy_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getTaxonomy()); - } - if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getUpdateMask()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @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_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.taxonomy_ = taxonomyBuilder_ == null - ? taxonomy_ - : taxonomyBuilder_.build(); - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null - ? updateMask_ - : updateMaskBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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( - getTaxonomyFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getUpdateMaskFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private com.google.cloud.datacatalog.v1.Taxonomy taxonomy_; - private com.google.protobuf.SingleFieldBuilderV3< - 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); - } - 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 getTaxonomyFieldBuilder().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.SingleFieldBuilderV3< - com.google.cloud.datacatalog.v1.Taxonomy, com.google.cloud.datacatalog.v1.Taxonomy.Builder, com.google.cloud.datacatalog.v1.TaxonomyOrBuilder> - getTaxonomyFieldBuilder() { - if (taxonomyBuilder_ == null) { - taxonomyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - 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.SingleFieldBuilderV3< - 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); - } - 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 getUpdateMaskFieldBuilder().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.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> - getUpdateMaskFieldBuilder() { - if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), - getParentForChildren(), - isClean()); - updateMask_ = null; - } - return updateMaskBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UpdateTaxonomyRequestOrBuilder.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UpdateTaxonomyRequestOrBuilder.java deleted file mode 100644 index e8084a80e3e6..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UpdateTaxonomyRequestOrBuilder.java +++ /dev/null @@ -1,78 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/policytagmanager.proto - -package com.google.cloud.datacatalog.v1; - -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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/Usage.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/Usage.java deleted file mode 100644 index a3cb9ff8a028..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/Usage.java +++ /dev/null @@ -1,126 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/usage.proto - -package com.google.cloud.datacatalog.v1; - -public final class Usage { - private 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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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\"\243\004\n\013UsageSignal" + - "\022/\n\013update_time\030\001 \001(\0132\032.google.protobuf." + - "Timestamp\022i\n\027usage_within_time_range\030\002 \003" + - "(\0132B.google.cloud.datacatalog.v1.UsageSi" + - "gnal.UsageWithinTimeRangeEntryB\004\342A\001\003\022p\n\036" + - "common_usage_within_time_range\030\003 \003(\0132H.g" + - "oogle.cloud.datacatalog.v1.UsageSignal.C" + - "ommonUsageWithinTimeRangeEntry\022\033\n\016favori" + - "te_count\030\004 \001(\003H\000\210\001\001\032d\n\031UsageWithinTimeRa" + - "ngeEntry\022\013\n\003key\030\001 \001(\t\0226\n\005value\030\002 \001(\0132\'.g" + - "oogle.cloud.datacatalog.v1.UsageStats:\0028" + - "\001\032p\n\037CommonUsageWithinTimeRangeEntry\022\013\n\003" + - "key\030\001 \001(\t\022<\n\005value\030\002 \001(\0132-.google.cloud." + - "datacatalog.v1.CommonUsageStats:\0028\001B\021\n\017_" + - "favorite_countB\306\001\n\037com.google.cloud.data" + - "catalog.v1P\001ZAcloud.google.com/go/dataca" + - "talog/apiv1/datacatalogpb;datacatalogpb\370" + - "\001\001\252\002\033Google.Cloud.DataCatalog.V1\312\002\033Googl" + - "e\\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_UsageStats_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_datacatalog_v1_UsageStats_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.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().getMessageTypes().get(1); - internal_static_google_cloud_datacatalog_v1_CommonUsageStats_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_CommonUsageStats_descriptor, - new java.lang.String[] { "ViewCount", "ViewCount", }); - internal_static_google_cloud_datacatalog_v1_UsageSignal_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_datacatalog_v1_UsageSignal_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_UsageSignal_descriptor, - new java.lang.String[] { "UpdateTime", "UsageWithinTimeRange", "CommonUsageWithinTimeRange", "FavoriteCount", "FavoriteCount", }); - internal_static_google_cloud_datacatalog_v1_UsageSignal_UsageWithinTimeRangeEntry_descriptor = - internal_static_google_cloud_datacatalog_v1_UsageSignal_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_datacatalog_v1_UsageSignal_UsageWithinTimeRangeEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.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.getNestedTypes().get(1); - internal_static_google_cloud_datacatalog_v1_UsageSignal_CommonUsageWithinTimeRangeEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_UsageSignal_CommonUsageWithinTimeRangeEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UsageSignal.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UsageSignal.java deleted file mode 100644 index 9e609ea88d1e..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UsageSignal.java +++ /dev/null @@ -1,1437 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/usage.proto - -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} - */ -public final class UsageSignal extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.UsageSignal) - UsageSignalOrBuilder { -private static final long serialVersionUID = 0L; - // Use UsageSignal.newBuilder() to construct. - private UsageSignal(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private UsageSignal() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.MapField internalGetMapField( - 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.GeneratedMessageV3.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 updateTime_ != null; - } - /** - *
-   * 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< - java.lang.String, com.google.cloud.datacatalog.v1.UsageStats> 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 - 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_ & 0x00000001) != 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 (updateTime_ != null) { - output.writeMessage(1, getUpdateTime()); - } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetUsageWithinTimeRange(), - UsageWithinTimeRangeDefaultEntryHolder.defaultEntry, - 2); - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetCommonUsageWithinTimeRange(), - CommonUsageWithinTimeRangeDefaultEntryHolder.defaultEntry, - 3); - if (((bitField0_ & 0x00000001) != 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 (updateTime_ != null) { - 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 - commonUsageWithinTimeRange__ = CommonUsageWithinTimeRangeDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, commonUsageWithinTimeRange__); - } - if (((bitField0_ & 0x00000001) != 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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.MapField internalGetMapField( - 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.MapField internalGetMutableMapField( - 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.GeneratedMessageV3.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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @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_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.updateTime_ = updateTimeBuilder_ == null - ? updateTime_ - : updateTimeBuilder_.build(); - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.usageWithinTimeRange_ = internalGetUsageWithinTimeRange(); - result.usageWithinTimeRange_.makeImmutable(); - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.commonUsageWithinTimeRange_ = internalGetCommonUsageWithinTimeRange(); - result.commonUsageWithinTimeRange_.makeImmutable(); - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000008) != 0)) { - result.favoriteCount_ = favoriteCount_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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( - getUpdateTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - com.google.protobuf.MapEntry - usageWithinTimeRange__ = input.readMessage( - UsageWithinTimeRangeDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableUsageWithinTimeRange().getMutableMap().put( - usageWithinTimeRange__.getKey(), usageWithinTimeRange__.getValue()); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - com.google.protobuf.MapEntry - commonUsageWithinTimeRange__ = input.readMessage( - CommonUsageWithinTimeRangeDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableCommonUsageWithinTimeRange().getMutableMap().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.SingleFieldBuilderV3< - 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); - } - 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 getUpdateTimeFieldBuilder().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.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getUpdateTimeFieldBuilder() { - if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), - getParentForChildren(), - isClean()); - updateTime_ = null; - } - return updateTimeBuilder_; - } - - private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.datacatalog.v1.UsageStats> usageWithinTimeRange_; - private com.google.protobuf.MapField - internalGetUsageWithinTimeRange() { - if (usageWithinTimeRange_ == null) { - return com.google.protobuf.MapField.emptyMapField( - UsageWithinTimeRangeDefaultEntryHolder.defaultEntry); - } - return usageWithinTimeRange_; - } - private com.google.protobuf.MapField - internalGetMutableUsageWithinTimeRange() { - if (usageWithinTimeRange_ == null) { - usageWithinTimeRange_ = com.google.protobuf.MapField.newMapField( - UsageWithinTimeRangeDefaultEntryHolder.defaultEntry); - } - if (!usageWithinTimeRange_.isMutable()) { - usageWithinTimeRange_ = usageWithinTimeRange_.copy(); - } - bitField0_ |= 0x00000002; - onChanged(); - 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 Builder clearUsageWithinTimeRange() { - bitField0_ = (bitField0_ & ~0x00000002); - internalGetMutableUsageWithinTimeRange().getMutableMap() - .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().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableUsageWithinTimeRange() { - bitField0_ |= 0x00000002; - return internalGetMutableUsageWithinTimeRange().getMutableMap(); - } - /** - *
-     * 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().getMutableMap() - .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) { - internalGetMutableUsageWithinTimeRange().getMutableMap() - .putAll(values); - bitField0_ |= 0x00000002; - return this; - } - - private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.datacatalog.v1.CommonUsageStats> commonUsageWithinTimeRange_; - private com.google.protobuf.MapField - internalGetCommonUsageWithinTimeRange() { - if (commonUsageWithinTimeRange_ == null) { - return com.google.protobuf.MapField.emptyMapField( - CommonUsageWithinTimeRangeDefaultEntryHolder.defaultEntry); - } - return commonUsageWithinTimeRange_; - } - private com.google.protobuf.MapField - internalGetMutableCommonUsageWithinTimeRange() { - if (commonUsageWithinTimeRange_ == null) { - commonUsageWithinTimeRange_ = com.google.protobuf.MapField.newMapField( - CommonUsageWithinTimeRangeDefaultEntryHolder.defaultEntry); - } - if (!commonUsageWithinTimeRange_.isMutable()) { - commonUsageWithinTimeRange_ = commonUsageWithinTimeRange_.copy(); - } - bitField0_ |= 0x00000004; - onChanged(); - 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 Builder clearCommonUsageWithinTimeRange() { - bitField0_ = (bitField0_ & ~0x00000004); - internalGetMutableCommonUsageWithinTimeRange().getMutableMap() - .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().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableCommonUsageWithinTimeRange() { - bitField0_ |= 0x00000004; - return internalGetMutableCommonUsageWithinTimeRange().getMutableMap(); - } - /** - *
-     * 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().getMutableMap() - .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) { - internalGetMutableCommonUsageWithinTimeRange().getMutableMap() - .putAll(values); - bitField0_ |= 0x00000004; - return this; - } - - 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; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UsageSignalOrBuilder.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UsageSignalOrBuilder.java deleted file mode 100644 index 15f46c01179a..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UsageSignalOrBuilder.java +++ /dev/null @@ -1,188 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/usage.proto - -package com.google.cloud.datacatalog.v1; - -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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UsageStats.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UsageStats.java deleted file mode 100644 index a790af616f27..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UsageStats.java +++ /dev/null @@ -1,767 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/usage.proto - -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} - */ -public final class UsageStats extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.UsageStats) - UsageStatsOrBuilder { -private static final long serialVersionUID = 0L; - // Use UsageStats.newBuilder() to construct. - private UsageStats(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private UsageStats() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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 (other.getTotalCompletions() != 0F) { - setTotalCompletions(other.getTotalCompletions()); - } - if (other.getTotalFailures() != 0F) { - setTotalFailures(other.getTotalFailures()); - } - if (other.getTotalCancellations() != 0F) { - setTotalCancellations(other.getTotalCancellations()); - } - if (other.getTotalExecutionTimeForCompletionsMillis() != 0F) { - 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; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UsageStatsOrBuilder.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UsageStatsOrBuilder.java deleted file mode 100644 index ed9aaeead2eb..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UsageStatsOrBuilder.java +++ /dev/null @@ -1,49 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/usage.proto - -package com.google.cloud.datacatalog.v1; - -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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/VertexDatasetSpec.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/VertexDatasetSpec.java deleted file mode 100644 index 4ba8d7e42325..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/VertexDatasetSpec.java +++ /dev/null @@ -1,945 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/datacatalog.proto - -package com.google.cloud.datacatalog.v1; - -/** - *
- * Specification for vertex dataset resources.
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.VertexDatasetSpec} - */ -public final class VertexDatasetSpec extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.VertexDatasetSpec) - VertexDatasetSpecOrBuilder { -private static final long serialVersionUID = 0L; - // Use VertexDatasetSpec.newBuilder() to construct. - private VertexDatasetSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private VertexDatasetSpec() { - dataType_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new VertexDatasetSpec(); - } - - 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.GeneratedMessageV3.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), - ; - - /** - *
-     * 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< - DataType> 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 final 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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/VertexDatasetSpecOrBuilder.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/VertexDatasetSpecOrBuilder.java deleted file mode 100644 index 3d8d3b7684ef..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/VertexDatasetSpecOrBuilder.java +++ /dev/null @@ -1,39 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/datacatalog.proto - -package com.google.cloud.datacatalog.v1; - -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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/VertexModelSourceInfo.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/VertexModelSourceInfo.java deleted file mode 100644 index 9d5e11eb23b4..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/VertexModelSourceInfo.java +++ /dev/null @@ -1,805 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/datacatalog.proto - -package com.google.cloud.datacatalog.v1; - -/** - *
- * Detail description of the source information of a Vertex model.
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.VertexModelSourceInfo} - */ -public final class VertexModelSourceInfo extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.VertexModelSourceInfo) - VertexModelSourceInfoOrBuilder { -private static final long serialVersionUID = 0L; - // Use VertexModelSourceInfo.newBuilder() to construct. - private VertexModelSourceInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private VertexModelSourceInfo() { - sourceType_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new VertexModelSourceInfo(); - } - - 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.GeneratedMessageV3.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), - UNRECOGNIZED(-1), - ; - - /** - *
-     * 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; - - - 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; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - ModelSourceType> 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 final 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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/VertexModelSourceInfoOrBuilder.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/VertexModelSourceInfoOrBuilder.java deleted file mode 100644 index cade0c55cd48..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/VertexModelSourceInfoOrBuilder.java +++ /dev/null @@ -1,40 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/datacatalog.proto - -package com.google.cloud.datacatalog.v1; - -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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/VertexModelSpec.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/VertexModelSpec.java deleted file mode 100644 index 304b4b3f717f..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/VertexModelSpec.java +++ /dev/null @@ -1,1395 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/datacatalog.proto - -package com.google.cloud.datacatalog.v1; - -/** - *
- * Specification for vertex model resources.
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.VertexModelSpec} - */ -public final class VertexModelSpec extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.VertexModelSpec) - VertexModelSpecOrBuilder { -private static final long serialVersionUID = 0L; - // Use VertexModelSpec.newBuilder() to construct. - private VertexModelSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private VertexModelSpec() { - versionId_ = ""; - versionAliases_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - versionDescription_ = ""; - containerImageUri_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new VertexModelSpec(); - } - - 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.GeneratedMessageV3.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); - } - - 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 vertexModelSourceInfo_ != null; - } - /** - *
-   * 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.GeneratedMessageV3.isStringEmpty(versionId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, versionId_); - } - for (int i = 0; i < versionAliases_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, versionAliases_.getRaw(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(versionDescription_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, versionDescription_); - } - if (vertexModelSourceInfo_ != null) { - output.writeMessage(4, getVertexModelSourceInfo()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(containerImageUri_)) { - com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(versionId_)) { - size += com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(versionDescription_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, versionDescription_); - } - if (vertexModelSourceInfo_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getVertexModelSourceInfo()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(containerImageUri_)) { - size += com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @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_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.vertexModelSourceInfo_ = vertexModelSourceInfoBuilder_ == null - ? vertexModelSourceInfo_ - : vertexModelSourceInfoBuilder_.build(); - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.containerImageUri_ = containerImageUri_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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( - getVertexModelSourceInfoFieldBuilder().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.SingleFieldBuilderV3< - 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); - } - 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 getVertexModelSourceInfoFieldBuilder().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.SingleFieldBuilderV3< - com.google.cloud.datacatalog.v1.VertexModelSourceInfo, com.google.cloud.datacatalog.v1.VertexModelSourceInfo.Builder, com.google.cloud.datacatalog.v1.VertexModelSourceInfoOrBuilder> - getVertexModelSourceInfoFieldBuilder() { - if (vertexModelSourceInfoBuilder_ == null) { - vertexModelSourceInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - 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; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/VertexModelSpecOrBuilder.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/VertexModelSpecOrBuilder.java deleted file mode 100644 index bb325cc44ca0..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/VertexModelSpecOrBuilder.java +++ /dev/null @@ -1,143 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/datacatalog.proto - -package com.google.cloud.datacatalog.v1; - -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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ViewSpec.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ViewSpec.java deleted file mode 100644 index de6d5db0945f..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ViewSpec.java +++ /dev/null @@ -1,577 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/table_spec.proto - -package com.google.cloud.datacatalog.v1; - -/** - *
- * Table view specification.
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.ViewSpec} - */ -public final class ViewSpec extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.ViewSpec) - ViewSpecOrBuilder { -private static final long serialVersionUID = 0L; - // Use ViewSpec.newBuilder() to construct. - private ViewSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ViewSpec() { - viewQuery_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ViewSpec(); - } - - 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(viewQuery_)) { - com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(viewQuery_)) { - size += com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ViewSpecOrBuilder.java b/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ViewSpecOrBuilder.java deleted file mode 100644 index 3a0e8b2640ee..000000000000 --- a/owl-bot-staging/java-datacatalog/v1/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ViewSpecOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1/table_spec.proto - -package com.google.cloud.datacatalog.v1; - -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/owl-bot-staging/java-datacatalog/v1beta1/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/DataCatalogSettings.java b/owl-bot-staging/java-datacatalog/v1beta1/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/DataCatalogSettings.java deleted file mode 100644 index cc9c98bb7a93..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/DataCatalogSettings.java +++ /dev/null @@ -1,514 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY 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.StubSettings; -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; - -// 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 total timeout of createEntryGroup to 30 seconds: - * - *

{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * DataCatalogSettings.Builder dataCatalogSettingsBuilder = DataCatalogSettings.newBuilder();
- * dataCatalogSettingsBuilder
- *     .createEntryGroupSettings()
- *     .setRetrySettings(
- *         dataCatalogSettingsBuilder
- *             .createEntryGroupSettings()
- *             .getRetrySettings()
- *             .toBuilder()
- *             .setTotalTimeout(Duration.ofSeconds(30))
- *             .build());
- * DataCatalogSettings dataCatalogSettings = dataCatalogSettingsBuilder.build();
- * }
- */ -@BetaApi -@Generated("by gapic-generator-java") -public class DataCatalogSettings extends ClientSettings { - - /** Returns the object with the settings used for calls to searchCatalog. */ - public PagedCallSettings - searchCatalogSettings() { - return ((DataCatalogStubSettings) getStubSettings()).searchCatalogSettings(); - } - - /** Returns the object with the settings used for calls to createEntryGroup. */ - public UnaryCallSettings createEntryGroupSettings() { - return ((DataCatalogStubSettings) getStubSettings()).createEntryGroupSettings(); - } - - /** Returns the object with the settings used for calls to updateEntryGroup. */ - public UnaryCallSettings updateEntryGroupSettings() { - return ((DataCatalogStubSettings) getStubSettings()).updateEntryGroupSettings(); - } - - /** Returns the object with the settings used for calls to getEntryGroup. */ - public UnaryCallSettings getEntryGroupSettings() { - return ((DataCatalogStubSettings) getStubSettings()).getEntryGroupSettings(); - } - - /** Returns the object with the settings used for calls to deleteEntryGroup. */ - public UnaryCallSettings deleteEntryGroupSettings() { - return ((DataCatalogStubSettings) getStubSettings()).deleteEntryGroupSettings(); - } - - /** Returns the object with the settings used for calls to listEntryGroups. */ - public PagedCallSettings< - ListEntryGroupsRequest, ListEntryGroupsResponse, ListEntryGroupsPagedResponse> - listEntryGroupsSettings() { - return ((DataCatalogStubSettings) getStubSettings()).listEntryGroupsSettings(); - } - - /** Returns the object with the settings used for calls to createEntry. */ - public UnaryCallSettings createEntrySettings() { - return ((DataCatalogStubSettings) getStubSettings()).createEntrySettings(); - } - - /** Returns the object with the settings used for calls to updateEntry. */ - public UnaryCallSettings updateEntrySettings() { - return ((DataCatalogStubSettings) getStubSettings()).updateEntrySettings(); - } - - /** Returns the object with the settings used for calls to deleteEntry. */ - public UnaryCallSettings deleteEntrySettings() { - return ((DataCatalogStubSettings) getStubSettings()).deleteEntrySettings(); - } - - /** Returns the object with the settings used for calls to getEntry. */ - public UnaryCallSettings getEntrySettings() { - return ((DataCatalogStubSettings) getStubSettings()).getEntrySettings(); - } - - /** Returns the object with the settings used for calls to lookupEntry. */ - public UnaryCallSettings lookupEntrySettings() { - return ((DataCatalogStubSettings) getStubSettings()).lookupEntrySettings(); - } - - /** Returns the object with the settings used for calls to listEntries. */ - public PagedCallSettings - listEntriesSettings() { - return ((DataCatalogStubSettings) getStubSettings()).listEntriesSettings(); - } - - /** Returns the object with the settings used for calls to createTagTemplate. */ - public UnaryCallSettings createTagTemplateSettings() { - return ((DataCatalogStubSettings) getStubSettings()).createTagTemplateSettings(); - } - - /** Returns the object with the settings used for calls to getTagTemplate. */ - public UnaryCallSettings getTagTemplateSettings() { - return ((DataCatalogStubSettings) getStubSettings()).getTagTemplateSettings(); - } - - /** Returns the object with the settings used for calls to updateTagTemplate. */ - public UnaryCallSettings updateTagTemplateSettings() { - return ((DataCatalogStubSettings) getStubSettings()).updateTagTemplateSettings(); - } - - /** Returns the object with the settings used for calls to deleteTagTemplate. */ - public UnaryCallSettings deleteTagTemplateSettings() { - return ((DataCatalogStubSettings) getStubSettings()).deleteTagTemplateSettings(); - } - - /** Returns the object with the settings used for calls to createTagTemplateField. */ - public UnaryCallSettings - createTagTemplateFieldSettings() { - return ((DataCatalogStubSettings) getStubSettings()).createTagTemplateFieldSettings(); - } - - /** Returns the object with the settings used for calls to updateTagTemplateField. */ - public UnaryCallSettings - updateTagTemplateFieldSettings() { - return ((DataCatalogStubSettings) getStubSettings()).updateTagTemplateFieldSettings(); - } - - /** Returns the object with the settings used for calls to renameTagTemplateField. */ - public UnaryCallSettings - renameTagTemplateFieldSettings() { - return ((DataCatalogStubSettings) getStubSettings()).renameTagTemplateFieldSettings(); - } - - /** Returns the object with the settings used for calls to renameTagTemplateFieldEnumValue. */ - public UnaryCallSettings - renameTagTemplateFieldEnumValueSettings() { - return ((DataCatalogStubSettings) getStubSettings()).renameTagTemplateFieldEnumValueSettings(); - } - - /** Returns the object with the settings used for calls to deleteTagTemplateField. */ - public UnaryCallSettings deleteTagTemplateFieldSettings() { - return ((DataCatalogStubSettings) getStubSettings()).deleteTagTemplateFieldSettings(); - } - - /** Returns the object with the settings used for calls to createTag. */ - public UnaryCallSettings createTagSettings() { - return ((DataCatalogStubSettings) getStubSettings()).createTagSettings(); - } - - /** Returns the object with the settings used for calls to updateTag. */ - public UnaryCallSettings updateTagSettings() { - return ((DataCatalogStubSettings) getStubSettings()).updateTagSettings(); - } - - /** Returns the object with the settings used for calls to deleteTag. */ - public UnaryCallSettings deleteTagSettings() { - return ((DataCatalogStubSettings) getStubSettings()).deleteTagSettings(); - } - - /** Returns the object with the settings used for calls to listTags. */ - public PagedCallSettings - listTagsSettings() { - return ((DataCatalogStubSettings) getStubSettings()).listTagsSettings(); - } - - /** Returns the object with the settings used for calls to setIamPolicy. */ - public UnaryCallSettings setIamPolicySettings() { - return ((DataCatalogStubSettings) getStubSettings()).setIamPolicySettings(); - } - - /** Returns the object with the settings used for calls to getIamPolicy. */ - public UnaryCallSettings getIamPolicySettings() { - return ((DataCatalogStubSettings) getStubSettings()).getIamPolicySettings(); - } - - /** Returns the object with the settings used for calls to testIamPermissions. */ - 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(); - } - - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - 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. */ - @BetaApi - public static Builder newHttpJsonBuilder() { - return Builder.createHttpJsonDefault(); - } - - /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { - return new Builder(clientContext); - } - - /** Returns a builder containing all the values of this settings class. */ - public Builder toBuilder() { - return new Builder(this); - } - - protected 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(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()); - } - - @BetaApi - 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. */ - public PagedCallSettings.Builder< - SearchCatalogRequest, SearchCatalogResponse, SearchCatalogPagedResponse> - searchCatalogSettings() { - return getStubSettingsBuilder().searchCatalogSettings(); - } - - /** Returns the builder for the settings used for calls to createEntryGroup. */ - public UnaryCallSettings.Builder - createEntryGroupSettings() { - return getStubSettingsBuilder().createEntryGroupSettings(); - } - - /** Returns the builder for the settings used for calls to updateEntryGroup. */ - public UnaryCallSettings.Builder - updateEntryGroupSettings() { - return getStubSettingsBuilder().updateEntryGroupSettings(); - } - - /** Returns the builder for the settings used for calls to getEntryGroup. */ - public UnaryCallSettings.Builder getEntryGroupSettings() { - return getStubSettingsBuilder().getEntryGroupSettings(); - } - - /** Returns the builder for the settings used for calls to deleteEntryGroup. */ - public UnaryCallSettings.Builder deleteEntryGroupSettings() { - return getStubSettingsBuilder().deleteEntryGroupSettings(); - } - - /** Returns the builder for the settings used for calls to listEntryGroups. */ - public PagedCallSettings.Builder< - ListEntryGroupsRequest, ListEntryGroupsResponse, ListEntryGroupsPagedResponse> - listEntryGroupsSettings() { - return getStubSettingsBuilder().listEntryGroupsSettings(); - } - - /** Returns the builder for the settings used for calls to createEntry. */ - public UnaryCallSettings.Builder createEntrySettings() { - return getStubSettingsBuilder().createEntrySettings(); - } - - /** Returns the builder for the settings used for calls to updateEntry. */ - public UnaryCallSettings.Builder updateEntrySettings() { - return getStubSettingsBuilder().updateEntrySettings(); - } - - /** Returns the builder for the settings used for calls to deleteEntry. */ - public UnaryCallSettings.Builder deleteEntrySettings() { - return getStubSettingsBuilder().deleteEntrySettings(); - } - - /** Returns the builder for the settings used for calls to getEntry. */ - public UnaryCallSettings.Builder getEntrySettings() { - return getStubSettingsBuilder().getEntrySettings(); - } - - /** Returns the builder for the settings used for calls to lookupEntry. */ - public UnaryCallSettings.Builder lookupEntrySettings() { - return getStubSettingsBuilder().lookupEntrySettings(); - } - - /** Returns the builder for the settings used for calls to listEntries. */ - public PagedCallSettings.Builder< - ListEntriesRequest, ListEntriesResponse, ListEntriesPagedResponse> - listEntriesSettings() { - return getStubSettingsBuilder().listEntriesSettings(); - } - - /** Returns the builder for the settings used for calls to createTagTemplate. */ - public UnaryCallSettings.Builder - createTagTemplateSettings() { - return getStubSettingsBuilder().createTagTemplateSettings(); - } - - /** Returns the builder for the settings used for calls to getTagTemplate. */ - public UnaryCallSettings.Builder getTagTemplateSettings() { - return getStubSettingsBuilder().getTagTemplateSettings(); - } - - /** Returns the builder for the settings used for calls to updateTagTemplate. */ - public UnaryCallSettings.Builder - updateTagTemplateSettings() { - return getStubSettingsBuilder().updateTagTemplateSettings(); - } - - /** Returns the builder for the settings used for calls to deleteTagTemplate. */ - public UnaryCallSettings.Builder deleteTagTemplateSettings() { - return getStubSettingsBuilder().deleteTagTemplateSettings(); - } - - /** Returns the builder for the settings used for calls to createTagTemplateField. */ - public UnaryCallSettings.Builder - createTagTemplateFieldSettings() { - return getStubSettingsBuilder().createTagTemplateFieldSettings(); - } - - /** Returns the builder for the settings used for calls to updateTagTemplateField. */ - public UnaryCallSettings.Builder - updateTagTemplateFieldSettings() { - return getStubSettingsBuilder().updateTagTemplateFieldSettings(); - } - - /** Returns the builder for the settings used for calls to renameTagTemplateField. */ - public UnaryCallSettings.Builder - renameTagTemplateFieldSettings() { - return getStubSettingsBuilder().renameTagTemplateFieldSettings(); - } - - /** Returns the builder for the settings used for calls to renameTagTemplateFieldEnumValue. */ - public UnaryCallSettings.Builder - renameTagTemplateFieldEnumValueSettings() { - return getStubSettingsBuilder().renameTagTemplateFieldEnumValueSettings(); - } - - /** Returns the builder for the settings used for calls to deleteTagTemplateField. */ - public UnaryCallSettings.Builder - deleteTagTemplateFieldSettings() { - return getStubSettingsBuilder().deleteTagTemplateFieldSettings(); - } - - /** Returns the builder for the settings used for calls to createTag. */ - public UnaryCallSettings.Builder createTagSettings() { - return getStubSettingsBuilder().createTagSettings(); - } - - /** Returns the builder for the settings used for calls to updateTag. */ - public UnaryCallSettings.Builder updateTagSettings() { - return getStubSettingsBuilder().updateTagSettings(); - } - - /** Returns the builder for the settings used for calls to deleteTag. */ - public UnaryCallSettings.Builder deleteTagSettings() { - return getStubSettingsBuilder().deleteTagSettings(); - } - - /** Returns the builder for the settings used for calls to listTags. */ - public PagedCallSettings.Builder - listTagsSettings() { - return getStubSettingsBuilder().listTagsSettings(); - } - - /** Returns the builder for the settings used for calls to setIamPolicy. */ - public UnaryCallSettings.Builder setIamPolicySettings() { - return getStubSettingsBuilder().setIamPolicySettings(); - } - - /** Returns the builder for the settings used for calls to getIamPolicy. */ - public UnaryCallSettings.Builder getIamPolicySettings() { - return getStubSettingsBuilder().getIamPolicySettings(); - } - - /** Returns the builder for the settings used for calls to testIamPermissions. */ - public UnaryCallSettings.Builder - testIamPermissionsSettings() { - return getStubSettingsBuilder().testIamPermissionsSettings(); - } - - @Override - public DataCatalogSettings build() throws IOException { - return new DataCatalogSettings(this); - } - } -} diff --git a/owl-bot-staging/java-datacatalog/v1beta1/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/PolicyTagManagerSerializationSettings.java b/owl-bot-staging/java-datacatalog/v1beta1/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/PolicyTagManagerSerializationSettings.java deleted file mode 100644 index 600879169d5a..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/PolicyTagManagerSerializationSettings.java +++ /dev/null @@ -1,226 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY 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.StubSettings; -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; - -// 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 total timeout of importTaxonomies to 30 seconds: - * - *

{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * PolicyTagManagerSerializationSettings.Builder policyTagManagerSerializationSettingsBuilder =
- *     PolicyTagManagerSerializationSettings.newBuilder();
- * policyTagManagerSerializationSettingsBuilder
- *     .importTaxonomiesSettings()
- *     .setRetrySettings(
- *         policyTagManagerSerializationSettingsBuilder
- *             .importTaxonomiesSettings()
- *             .getRetrySettings()
- *             .toBuilder()
- *             .setTotalTimeout(Duration.ofSeconds(30))
- *             .build());
- * PolicyTagManagerSerializationSettings policyTagManagerSerializationSettings =
- *     policyTagManagerSerializationSettingsBuilder.build();
- * }
- */ -@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(); - } - - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - 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. */ - @BetaApi - public static Builder newHttpJsonBuilder() { - return Builder.createHttpJsonDefault(); - } - - /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { - return new Builder(clientContext); - } - - /** Returns a builder containing all the values of this settings class. */ - public Builder toBuilder() { - return new Builder(this); - } - - protected 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(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()); - } - - @BetaApi - 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/owl-bot-staging/java-datacatalog/v1beta1/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/PolicyTagManagerSettings.java b/owl-bot-staging/java-datacatalog/v1beta1/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/PolicyTagManagerSettings.java deleted file mode 100644 index cd0d0c08cf79..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/PolicyTagManagerSettings.java +++ /dev/null @@ -1,347 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY 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.StubSettings; -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; - -// 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 total timeout of createTaxonomy to 30 seconds: - * - *

{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * PolicyTagManagerSettings.Builder policyTagManagerSettingsBuilder =
- *     PolicyTagManagerSettings.newBuilder();
- * policyTagManagerSettingsBuilder
- *     .createTaxonomySettings()
- *     .setRetrySettings(
- *         policyTagManagerSettingsBuilder
- *             .createTaxonomySettings()
- *             .getRetrySettings()
- *             .toBuilder()
- *             .setTotalTimeout(Duration.ofSeconds(30))
- *             .build());
- * PolicyTagManagerSettings policyTagManagerSettings = policyTagManagerSettingsBuilder.build();
- * }
- */ -@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(); - } - - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - 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. */ - @BetaApi - public static Builder newHttpJsonBuilder() { - return Builder.createHttpJsonDefault(); - } - - /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { - return new Builder(clientContext); - } - - /** Returns a builder containing all the values of this settings class. */ - public Builder toBuilder() { - return new Builder(this); - } - - protected 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(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()); - } - - @BetaApi - 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/owl-bot-staging/java-datacatalog/v1beta1/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/GrpcDataCatalogStub.java b/owl-bot-staging/java-datacatalog/v1beta1/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/GrpcDataCatalogStub.java deleted file mode 100644 index a123dc5ec9b5..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/GrpcDataCatalogStub.java +++ /dev/null @@ -1,1043 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY 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.Map; -import java.util.concurrent.TimeUnit; -import javax.annotation.Generated; - -// 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. - */ -@BetaApi -@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())) - .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())) - .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())) - .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())) - .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())) - .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())) - .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())) - .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())) - .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())) - .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())) - .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())) - .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())) - .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())) - .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())) - .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())) - .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())) - .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())) - .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())) - .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())) - .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())) - .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())) - .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())) - .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())) - .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())) - .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())) - .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())) - .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())) - .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())) - .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(); - }) - .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(); - }) - .build(); - GrpcCallSettings deleteEntryGroupTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(deleteEntryGroupMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings - listEntryGroupsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(listEntryGroupsMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - GrpcCallSettings createEntryTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(createEntryMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .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(); - }) - .build(); - GrpcCallSettings getEntryTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getEntryMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .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(); - }) - .build(); - GrpcCallSettings createTagTemplateTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(createTagTemplateMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - GrpcCallSettings getTagTemplateTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getTagTemplateMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .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(); - }) - .build(); - GrpcCallSettings - createTagTemplateFieldTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(createTagTemplateFieldMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - GrpcCallSettings - updateTagTemplateFieldTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(updateTagTemplateFieldMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings - renameTagTemplateFieldTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(renameTagTemplateFieldMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings - renameTagTemplateFieldEnumValueTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(renameTagTemplateFieldEnumValueMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings deleteTagTemplateFieldTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(deleteTagTemplateFieldMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings createTagTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(createTagMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .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(); - }) - .build(); - GrpcCallSettings listTagsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(listTagsMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - GrpcCallSettings setIamPolicyTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(setIamPolicyMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("resource", String.valueOf(request.getResource())); - return builder.build(); - }) - .build(); - GrpcCallSettings getIamPolicyTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getIamPolicyMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("resource", String.valueOf(request.getResource())); - return builder.build(); - }) - .build(); - GrpcCallSettings - testIamPermissionsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(testIamPermissionsMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("resource", String.valueOf(request.getResource())); - 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.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/owl-bot-staging/java-datacatalog/v1beta1/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/GrpcPolicyTagManagerSerializationStub.java b/owl-bot-staging/java-datacatalog/v1beta1/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/GrpcPolicyTagManagerSerializationStub.java deleted file mode 100644 index 7b695601f3f8..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/GrpcPolicyTagManagerSerializationStub.java +++ /dev/null @@ -1,209 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY 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.Map; -import java.util.concurrent.TimeUnit; -import javax.annotation.Generated; - -// 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. - */ -@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())) - .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())) - .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(); - }) - .build(); - GrpcCallSettings - exportTaxonomiesTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(exportTaxonomiesMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .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/owl-bot-staging/java-datacatalog/v1beta1/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/GrpcPolicyTagManagerStub.java b/owl-bot-staging/java-datacatalog/v1beta1/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/GrpcPolicyTagManagerStub.java deleted file mode 100644 index caa045428ec6..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/GrpcPolicyTagManagerStub.java +++ /dev/null @@ -1,563 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY 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.Map; -import java.util.concurrent.TimeUnit; -import javax.annotation.Generated; - -// 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. - */ -@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())) - .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())) - .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())) - .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())) - .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())) - .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())) - .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())) - .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())) - .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())) - .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())) - .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())) - .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())) - .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())) - .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(); - }) - .build(); - GrpcCallSettings deleteTaxonomyTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(deleteTaxonomyMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .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(); - }) - .build(); - GrpcCallSettings getTaxonomyTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getTaxonomyMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings createPolicyTagTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(createPolicyTagMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - GrpcCallSettings deletePolicyTagTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(deletePolicyTagMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .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(); - }) - .build(); - GrpcCallSettings getPolicyTagTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getPolicyTagMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings getIamPolicyTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getIamPolicyMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("resource", String.valueOf(request.getResource())); - return builder.build(); - }) - .build(); - GrpcCallSettings setIamPolicyTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(setIamPolicyMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("resource", String.valueOf(request.getResource())); - return builder.build(); - }) - .build(); - GrpcCallSettings - testIamPermissionsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(testIamPermissionsMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("resource", String.valueOf(request.getResource())); - return builder.build(); - }) - .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/owl-bot-staging/java-datacatalog/v1beta1/grpc-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DataCatalogGrpc.java b/owl-bot-staging/java-datacatalog/v1beta1/grpc-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DataCatalogGrpc.java deleted file mode 100644 index be5a8c2dba22..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/grpc-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DataCatalogGrpc.java +++ /dev/null @@ -1,3123 +0,0 @@ -package com.google.cloud.datacatalog.v1beta1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - *

- * Data Catalog API service allows clients to discover, understand, and manage
- * their data.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/datacatalog/v1beta1/datacatalog.proto") -@io.grpc.stub.annotations.GrpcGenerated -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 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 getSearchCatalogMethod() { - io.grpc.MethodDescriptor 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 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 getCreateEntryGroupMethod() { - io.grpc.MethodDescriptor 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 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 getUpdateEntryGroupMethod() { - io.grpc.MethodDescriptor 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 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 getGetEntryGroupMethod() { - io.grpc.MethodDescriptor 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 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 getDeleteEntryGroupMethod() { - io.grpc.MethodDescriptor 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 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 getListEntryGroupsMethod() { - io.grpc.MethodDescriptor 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 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 getCreateEntryMethod() { - io.grpc.MethodDescriptor 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 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 getUpdateEntryMethod() { - io.grpc.MethodDescriptor 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 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 getDeleteEntryMethod() { - io.grpc.MethodDescriptor 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 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 getGetEntryMethod() { - io.grpc.MethodDescriptor 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 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 getLookupEntryMethod() { - io.grpc.MethodDescriptor 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 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 getListEntriesMethod() { - io.grpc.MethodDescriptor 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 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 getCreateTagTemplateMethod() { - io.grpc.MethodDescriptor 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 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 getGetTagTemplateMethod() { - io.grpc.MethodDescriptor 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 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 getUpdateTagTemplateMethod() { - io.grpc.MethodDescriptor 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 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 getDeleteTagTemplateMethod() { - io.grpc.MethodDescriptor 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 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 getCreateTagTemplateFieldMethod() { - io.grpc.MethodDescriptor 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 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 getUpdateTagTemplateFieldMethod() { - io.grpc.MethodDescriptor 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 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 getRenameTagTemplateFieldMethod() { - io.grpc.MethodDescriptor 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 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 getRenameTagTemplateFieldEnumValueMethod() { - io.grpc.MethodDescriptor 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 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 getDeleteTagTemplateFieldMethod() { - io.grpc.MethodDescriptor 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 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 getCreateTagMethod() { - io.grpc.MethodDescriptor 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 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 getUpdateTagMethod() { - io.grpc.MethodDescriptor 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 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 getDeleteTagMethod() { - io.grpc.MethodDescriptor 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 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 getListTagsMethod() { - io.grpc.MethodDescriptor 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 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 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 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 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 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 getTestIamPermissionsMethod() { - io.grpc.MethodDescriptor 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 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); - } - - /** - *
-   * Data Catalog API service allows clients to discover, understand, and manage
-   * their data.
-   * 
- */ - 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.
-     * 
- */ - 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).
-     * 
- */ - 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).
-     * 
- */ - 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.
-     * 
- */ - 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).
-     * 
- */ - 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.
-     * 
- */ - 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.
-     * 
- */ - 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).
-     * 
- */ - 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).
-     * 
- */ - 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.
-     * 
- */ - 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.
-     * 
- */ - default void lookupEntry(com.google.cloud.datacatalog.v1beta1.LookupEntryRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getLookupEntryMethod(), responseObserver); - } - - /** - *
-     * Lists entries.
-     * 
- */ - 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).
-     * 
- */ - 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.
-     * 
- */ - 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).
-     * 
- */ - 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).
-     * 
- */ - 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).
-     * 
- */ - 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).
-     * 
- */ - 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).
-     * 
- */ - 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.
-     * 
- */ - 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).
-     * 
- */ - 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.
-     * 
- */ - 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.
-     * 
- */ - 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.
-     * 
- */ - 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.
-     * 
- */ - 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.
-     * 
- */ - 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.
-     * 
- */ - 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.
-     * 
- */ - 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. - *
-   * Data Catalog API service allows clients to discover, understand, and manage
-   * their data.
-   * 
- */ - public static abstract 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. - *
-   * Data Catalog API service allows clients to discover, understand, and manage
-   * their data.
-   * 
- */ - 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.
-     * 
- */ - 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).
-     * 
- */ - 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).
-     * 
- */ - 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.
-     * 
- */ - 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).
-     * 
- */ - 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.
-     * 
- */ - 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.
-     * 
- */ - 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).
-     * 
- */ - 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).
-     * 
- */ - 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.
-     * 
- */ - 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.
-     * 
- */ - 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.
-     * 
- */ - 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).
-     * 
- */ - 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.
-     * 
- */ - 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).
-     * 
- */ - 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).
-     * 
- */ - 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).
-     * 
- */ - 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).
-     * 
- */ - 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).
-     * 
- */ - 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.
-     * 
- */ - 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).
-     * 
- */ - 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.
-     * 
- */ - 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.
-     * 
- */ - 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.
-     * 
- */ - 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.
-     * 
- */ - 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.
-     * 
- */ - 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.
-     * 
- */ - 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.
-     * 
- */ - 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. - *
-   * Data Catalog API service allows clients to discover, understand, and manage
-   * their data.
-   * 
- */ - 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.
-     * 
- */ - 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).
-     * 
- */ - 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).
-     * 
- */ - 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.
-     * 
- */ - 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).
-     * 
- */ - 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.
-     * 
- */ - 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.
-     * 
- */ - 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).
-     * 
- */ - 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).
-     * 
- */ - 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.
-     * 
- */ - 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.
-     * 
- */ - 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.
-     * 
- */ - 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).
-     * 
- */ - 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.
-     * 
- */ - 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).
-     * 
- */ - 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).
-     * 
- */ - 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).
-     * 
- */ - 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).
-     * 
- */ - 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).
-     * 
- */ - 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.
-     * 
- */ - 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).
-     * 
- */ - 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.
-     * 
- */ - 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.
-     * 
- */ - 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.
-     * 
- */ - 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.
-     * 
- */ - 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.
-     * 
- */ - 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.
-     * 
- */ - 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.
-     * 
- */ - 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. - *
-   * Data Catalog API service allows clients to discover, understand, and manage
-   * their data.
-   * 
- */ - 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.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture 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).
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture 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).
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateEntryGroup( - com.google.cloud.datacatalog.v1beta1.UpdateEntryGroupRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateEntryGroupMethod(), getCallOptions()), request); - } - - /** - *
-     * Gets an EntryGroup.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture 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).
-     * 
- */ - 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.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture 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.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture 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).
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture 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).
-     * 
- */ - 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.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture 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.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture lookupEntry( - com.google.cloud.datacatalog.v1beta1.LookupEntryRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getLookupEntryMethod(), getCallOptions()), request); - } - - /** - *
-     * Lists entries.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture 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).
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createTagTemplate( - com.google.cloud.datacatalog.v1beta1.CreateTagTemplateRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateTagTemplateMethod(), getCallOptions()), request); - } - - /** - *
-     * Gets a tag template.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture 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).
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture 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).
-     * 
- */ - 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).
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture 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).
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture 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).
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture 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.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture 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).
-     * 
- */ - 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.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createTag( - com.google.cloud.datacatalog.v1beta1.CreateTagRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateTagMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates an existing tag.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateTag( - com.google.cloud.datacatalog.v1beta1.UpdateTagRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateTagMethod(), getCallOptions()), request); - } - - /** - *
-     * Deletes a tag.
-     * 
- */ - 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.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture 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.
-     * 
- */ - 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.
-     * 
- */ - 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.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture 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) 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) 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) 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< - com.google.iam.v1.SetIamPolicyRequest, - com.google.iam.v1.Policy>( - service, METHODID_SET_IAM_POLICY))) - .addMethod( - getGetIamPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.v1.GetIamPolicyRequest, - com.google.iam.v1.Policy>( - 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 static abstract 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/owl-bot-staging/java-datacatalog/v1beta1/grpc-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/PolicyTagManagerGrpc.java b/owl-bot-staging/java-datacatalog/v1beta1/grpc-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/PolicyTagManagerGrpc.java deleted file mode 100644 index d346db0c8495..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/grpc-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/PolicyTagManagerGrpc.java +++ /dev/null @@ -1,1373 +0,0 @@ -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.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/datacatalog/v1beta1/policytagmanager.proto") -@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 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 getCreateTaxonomyMethod() { - io.grpc.MethodDescriptor 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 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 getDeleteTaxonomyMethod() { - io.grpc.MethodDescriptor 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 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 getUpdateTaxonomyMethod() { - io.grpc.MethodDescriptor 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 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 getListTaxonomiesMethod() { - io.grpc.MethodDescriptor 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 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 getGetTaxonomyMethod() { - io.grpc.MethodDescriptor 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 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 getCreatePolicyTagMethod() { - io.grpc.MethodDescriptor 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 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 getDeletePolicyTagMethod() { - io.grpc.MethodDescriptor 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 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 getUpdatePolicyTagMethod() { - io.grpc.MethodDescriptor 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 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 getListPolicyTagsMethod() { - io.grpc.MethodDescriptor 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 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 getGetPolicyTagMethod() { - io.grpc.MethodDescriptor 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 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 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 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 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 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 getTestIamPermissionsMethod() { - io.grpc.MethodDescriptor 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 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 static abstract 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 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 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 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 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 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 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 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 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 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 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) 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) 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< - com.google.iam.v1.GetIamPolicyRequest, - com.google.iam.v1.Policy>( - service, METHODID_GET_IAM_POLICY))) - .addMethod( - getSetIamPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.v1.SetIamPolicyRequest, - com.google.iam.v1.Policy>( - 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 static abstract 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/owl-bot-staging/java-datacatalog/v1beta1/grpc-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/PolicyTagManagerSerializationGrpc.java b/owl-bot-staging/java-datacatalog/v1beta1/grpc-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/PolicyTagManagerSerializationGrpc.java deleted file mode 100644 index be089b30df3c..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/grpc-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/PolicyTagManagerSerializationGrpc.java +++ /dev/null @@ -1,435 +0,0 @@ -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.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/datacatalog/v1beta1/policytagmanagerserialization.proto") -@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 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 getImportTaxonomiesMethod() { - io.grpc.MethodDescriptor 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 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 getExportTaxonomiesMethod() { - io.grpc.MethodDescriptor 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 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 static abstract 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 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 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 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) responseObserver); - break; - case METHODID_EXPORT_TAXONOMIES: - serviceImpl.exportTaxonomies((com.google.cloud.datacatalog.v1beta1.ExportTaxonomiesRequest) 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( - 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 static abstract 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/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/BigQueryDateShardedSpec.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/BigQueryDateShardedSpec.java deleted file mode 100644 index c172c0bb1a6d..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/BigQueryDateShardedSpec.java +++ /dev/null @@ -1,863 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/table_spec.proto - -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} - */ -public final class BigQueryDateShardedSpec extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec) - BigQueryDateShardedSpecOrBuilder { -private static final long serialVersionUID = 0L; - // Use BigQueryDateShardedSpec.newBuilder() to construct. - private BigQueryDateShardedSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private BigQueryDateShardedSpec() { - dataset_ = ""; - tablePrefix_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new BigQueryDateShardedSpec(); - } - - 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(dataset_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, dataset_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tablePrefix_)) { - com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(dataset_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, dataset_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tablePrefix_)) { - size += com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/BigQueryDateShardedSpecOrBuilder.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/BigQueryDateShardedSpecOrBuilder.java deleted file mode 100644 index bba8d00274d7..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/BigQueryDateShardedSpecOrBuilder.java +++ /dev/null @@ -1,69 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/table_spec.proto - -package com.google.cloud.datacatalog.v1beta1; - -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/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/BigQueryTableSpec.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/BigQueryTableSpec.java deleted file mode 100644 index fcfa2dec8b93..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/BigQueryTableSpec.java +++ /dev/null @@ -1,1146 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/table_spec.proto - -package com.google.cloud.datacatalog.v1beta1; - -/** - *
- * Describes a BigQuery table.
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.BigQueryTableSpec} - */ -public final class BigQueryTableSpec extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.BigQueryTableSpec) - BigQueryTableSpecOrBuilder { -private static final long serialVersionUID = 0L; - // Use BigQueryTableSpec.newBuilder() to construct. - private BigQueryTableSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private BigQueryTableSpec() { - tableSourceType_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new BigQueryTableSpec(); - } - - 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.GeneratedMessageV3.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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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( - getViewSpecFieldBuilder().getBuilder(), - extensionRegistry); - typeSpecCase_ = 2; - break; - } // case 18 - case 26: { - input.readMessage( - getTableSpecFieldBuilder().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.SingleFieldBuilderV3< - 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 getViewSpecFieldBuilder().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.SingleFieldBuilderV3< - com.google.cloud.datacatalog.v1beta1.ViewSpec, com.google.cloud.datacatalog.v1beta1.ViewSpec.Builder, com.google.cloud.datacatalog.v1beta1.ViewSpecOrBuilder> - getViewSpecFieldBuilder() { - if (viewSpecBuilder_ == null) { - if (!(typeSpecCase_ == 2)) { - typeSpec_ = com.google.cloud.datacatalog.v1beta1.ViewSpec.getDefaultInstance(); - } - viewSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - 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.SingleFieldBuilderV3< - 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 getTableSpecFieldBuilder().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.SingleFieldBuilderV3< - com.google.cloud.datacatalog.v1beta1.TableSpec, com.google.cloud.datacatalog.v1beta1.TableSpec.Builder, com.google.cloud.datacatalog.v1beta1.TableSpecOrBuilder> - getTableSpecFieldBuilder() { - if (tableSpecBuilder_ == null) { - if (!(typeSpecCase_ == 3)) { - typeSpec_ = com.google.cloud.datacatalog.v1beta1.TableSpec.getDefaultInstance(); - } - tableSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - 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_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/BigQueryTableSpecOrBuilder.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/BigQueryTableSpecOrBuilder.java deleted file mode 100644 index f81c66f9562b..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/BigQueryTableSpecOrBuilder.java +++ /dev/null @@ -1,90 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/table_spec.proto - -package com.google.cloud.datacatalog.v1beta1; - -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/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ColumnSchema.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ColumnSchema.java deleted file mode 100644 index 5ed66682cf2e..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ColumnSchema.java +++ /dev/null @@ -1,1554 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/schema.proto - -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} - */ -public final class ColumnSchema extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.ColumnSchema) - ColumnSchemaOrBuilder { -private static final long serialVersionUID = 0L; - // Use ColumnSchema.newBuilder() to construct. - private ColumnSchema(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ColumnSchema() { - column_ = ""; - type_ = ""; - description_ = ""; - mode_ = ""; - subcolumns_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ColumnSchema(); - } - - 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(type_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, type_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mode_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, mode_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(column_)) { - com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(type_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, type_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mode_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, mode_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(column_)) { - size += com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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.GeneratedMessageV3.alwaysUseFieldBuilders ? - getSubcolumnsFieldBuilder() : 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.RepeatedFieldBuilderV3< - 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 getSubcolumnsFieldBuilder().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 getSubcolumnsFieldBuilder().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 getSubcolumnsFieldBuilder().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 getSubcolumnsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datacatalog.v1beta1.ColumnSchema, com.google.cloud.datacatalog.v1beta1.ColumnSchema.Builder, com.google.cloud.datacatalog.v1beta1.ColumnSchemaOrBuilder> - getSubcolumnsFieldBuilder() { - if (subcolumnsBuilder_ == null) { - subcolumnsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - 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_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ColumnSchemaOrBuilder.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ColumnSchemaOrBuilder.java deleted file mode 100644 index cc1404ea6214..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ColumnSchemaOrBuilder.java +++ /dev/null @@ -1,142 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/schema.proto - -package com.google.cloud.datacatalog.v1beta1; - -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/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/Common.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/Common.java deleted file mode 100644 index 08e5e5f665e8..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/Common.java +++ /dev/null @@ -1,47 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/common.proto - -package com.google.cloud.datacatalog.v1beta1; - -public final class Common { - private 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\337\001\n" + - "$com.google.cloud.datacatalog.v1beta1P\001Z" + - "Fcloud.google.com/go/datacatalog/apiv1be" + - "ta1/datacatalogpb;datacatalogpb\370\001\001\252\002 Goo" + - "gle.Cloud.DataCatalog.V1Beta1\312\002 Google\\C" + - "loud\\DataCatalog\\V1beta1\352\002#Google::Cloud" + - "::DataCatalog::V1beta1b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/CreateEntryGroupRequest.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/CreateEntryGroupRequest.java deleted file mode 100644 index 327b41eea09e..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/CreateEntryGroupRequest.java +++ /dev/null @@ -1,1021 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/datacatalog.proto - -package com.google.cloud.datacatalog.v1beta1; - -/** - *
- * Request message for
- * [CreateEntryGroup][google.cloud.datacatalog.v1beta1.DataCatalog.CreateEntryGroup].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.CreateEntryGroupRequest} - */ -public final class CreateEntryGroupRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.CreateEntryGroupRequest) - CreateEntryGroupRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use CreateEntryGroupRequest.newBuilder() to construct. - private CreateEntryGroupRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CreateEntryGroupRequest() { - parent_ = ""; - entryGroupId_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new CreateEntryGroupRequest(); - } - - 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.GeneratedMessageV3.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); - } - - 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 entryGroup_ != null; - } - /** - *
-   * 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.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - if (entryGroup_ != null) { - output.writeMessage(2, getEntryGroup()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entryGroupId_)) { - com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - if (entryGroup_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getEntryGroup()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entryGroupId_)) { - size += com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @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_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.entryGroup_ = entryGroupBuilder_ == null - ? entryGroup_ - : entryGroupBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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( - getEntryGroupFieldBuilder().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.SingleFieldBuilderV3< - 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); - } - 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 getEntryGroupFieldBuilder().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.SingleFieldBuilderV3< - com.google.cloud.datacatalog.v1beta1.EntryGroup, com.google.cloud.datacatalog.v1beta1.EntryGroup.Builder, com.google.cloud.datacatalog.v1beta1.EntryGroupOrBuilder> - getEntryGroupFieldBuilder() { - if (entryGroupBuilder_ == null) { - entryGroupBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - 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_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/CreateEntryGroupRequestOrBuilder.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/CreateEntryGroupRequestOrBuilder.java deleted file mode 100644 index cbd8f6892995..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/CreateEntryGroupRequestOrBuilder.java +++ /dev/null @@ -1,90 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/datacatalog.proto - -package com.google.cloud.datacatalog.v1beta1; - -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/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/CreateEntryRequest.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/CreateEntryRequest.java deleted file mode 100644 index 88197d205c86..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/CreateEntryRequest.java +++ /dev/null @@ -1,1007 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/datacatalog.proto - -package com.google.cloud.datacatalog.v1beta1; - -/** - *
- * Request message for
- * [CreateEntry][google.cloud.datacatalog.v1beta1.DataCatalog.CreateEntry].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.CreateEntryRequest} - */ -public final class CreateEntryRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.CreateEntryRequest) - CreateEntryRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use CreateEntryRequest.newBuilder() to construct. - private CreateEntryRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CreateEntryRequest() { - parent_ = ""; - entryId_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new CreateEntryRequest(); - } - - 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.GeneratedMessageV3.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); - } - - 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 entry_ != null; - } - /** - *
-   * 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.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - if (entry_ != null) { - output.writeMessage(2, getEntry()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entryId_)) { - com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - if (entry_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getEntry()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entryId_)) { - size += com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @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_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.entry_ = entryBuilder_ == null - ? entry_ - : entryBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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( - getEntryFieldBuilder().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.SingleFieldBuilderV3< - 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); - } - 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 getEntryFieldBuilder().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.SingleFieldBuilderV3< - com.google.cloud.datacatalog.v1beta1.Entry, com.google.cloud.datacatalog.v1beta1.Entry.Builder, com.google.cloud.datacatalog.v1beta1.EntryOrBuilder> - getEntryFieldBuilder() { - if (entryBuilder_ == null) { - entryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - 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_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/CreateEntryRequestOrBuilder.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/CreateEntryRequestOrBuilder.java deleted file mode 100644 index dfbefc7cc6bd..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/CreateEntryRequestOrBuilder.java +++ /dev/null @@ -1,86 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/datacatalog.proto - -package com.google.cloud.datacatalog.v1beta1; - -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/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/CreatePolicyTagRequest.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/CreatePolicyTagRequest.java deleted file mode 100644 index b47141244b5b..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/CreatePolicyTagRequest.java +++ /dev/null @@ -1,808 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/policytagmanager.proto - -package com.google.cloud.datacatalog.v1beta1; - -/** - *
- * Request message for
- * [CreatePolicyTag][google.cloud.datacatalog.v1beta1.PolicyTagManager.CreatePolicyTag].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.CreatePolicyTagRequest} - */ -public final class CreatePolicyTagRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.CreatePolicyTagRequest) - CreatePolicyTagRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use CreatePolicyTagRequest.newBuilder() to construct. - private CreatePolicyTagRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CreatePolicyTagRequest() { - parent_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new CreatePolicyTagRequest(); - } - - 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.GeneratedMessageV3.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); - } - - 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 policyTag_ != null; - } - /** - *
-   * 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.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - if (policyTag_ != null) { - 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.GeneratedMessageV3.isStringEmpty(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - if (policyTag_ != null) { - 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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @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_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.policyTag_ = policyTagBuilder_ == null - ? policyTag_ - : policyTagBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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( - getPolicyTagFieldBuilder().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.SingleFieldBuilderV3< - 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); - } - 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 getPolicyTagFieldBuilder().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.SingleFieldBuilderV3< - com.google.cloud.datacatalog.v1beta1.PolicyTag, com.google.cloud.datacatalog.v1beta1.PolicyTag.Builder, com.google.cloud.datacatalog.v1beta1.PolicyTagOrBuilder> - getPolicyTagFieldBuilder() { - if (policyTagBuilder_ == null) { - policyTagBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - 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_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/CreatePolicyTagRequestOrBuilder.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/CreatePolicyTagRequestOrBuilder.java deleted file mode 100644 index 95d7bdd6cfad..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/CreatePolicyTagRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/policytagmanager.proto - -package com.google.cloud.datacatalog.v1beta1; - -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/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/CreateTagRequest.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/CreateTagRequest.java deleted file mode 100644 index 63137c1fdbf0..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/CreateTagRequest.java +++ /dev/null @@ -1,850 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/datacatalog.proto - -package com.google.cloud.datacatalog.v1beta1; - -/** - *
- * Request message for
- * [CreateTag][google.cloud.datacatalog.v1beta1.DataCatalog.CreateTag].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.CreateTagRequest} - */ -public final class CreateTagRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.CreateTagRequest) - CreateTagRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use CreateTagRequest.newBuilder() to construct. - private CreateTagRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CreateTagRequest() { - parent_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new CreateTagRequest(); - } - - 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.GeneratedMessageV3.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); - } - - 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 tag_ != null; - } - /** - *
-   * 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.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - if (tag_ != null) { - 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.GeneratedMessageV3.isStringEmpty(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - if (tag_ != null) { - 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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @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_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.tag_ = tagBuilder_ == null - ? tag_ - : tagBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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( - getTagFieldBuilder().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.SingleFieldBuilderV3< - 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); - } - 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 getTagFieldBuilder().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.SingleFieldBuilderV3< - com.google.cloud.datacatalog.v1beta1.Tag, com.google.cloud.datacatalog.v1beta1.Tag.Builder, com.google.cloud.datacatalog.v1beta1.TagOrBuilder> - getTagFieldBuilder() { - if (tagBuilder_ == null) { - tagBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - 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_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/CreateTagRequestOrBuilder.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/CreateTagRequestOrBuilder.java deleted file mode 100644 index 980052e8a2ac..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/CreateTagRequestOrBuilder.java +++ /dev/null @@ -1,68 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/datacatalog.proto - -package com.google.cloud.datacatalog.v1beta1; - -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/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/CreateTagTemplateFieldRequest.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/CreateTagTemplateFieldRequest.java deleted file mode 100644 index 2d1a12c68524..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/CreateTagTemplateFieldRequest.java +++ /dev/null @@ -1,1035 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/datacatalog.proto - -package com.google.cloud.datacatalog.v1beta1; - -/** - *
- * Request message for
- * [CreateTagTemplateField][google.cloud.datacatalog.v1beta1.DataCatalog.CreateTagTemplateField].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.CreateTagTemplateFieldRequest} - */ -public final class CreateTagTemplateFieldRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.CreateTagTemplateFieldRequest) - CreateTagTemplateFieldRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use CreateTagTemplateFieldRequest.newBuilder() to construct. - private CreateTagTemplateFieldRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CreateTagTemplateFieldRequest() { - parent_ = ""; - tagTemplateFieldId_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new CreateTagTemplateFieldRequest(); - } - - 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.GeneratedMessageV3.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); - } - - 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 tagTemplateField_ != null; - } - /** - *
-   * 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.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tagTemplateFieldId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, tagTemplateFieldId_); - } - if (tagTemplateField_ != null) { - 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.GeneratedMessageV3.isStringEmpty(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tagTemplateFieldId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, tagTemplateFieldId_); - } - if (tagTemplateField_ != null) { - 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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @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_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.tagTemplateField_ = tagTemplateFieldBuilder_ == null - ? tagTemplateField_ - : tagTemplateFieldBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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( - getTagTemplateFieldFieldBuilder().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.SingleFieldBuilderV3< - 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); - } - 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 getTagTemplateFieldFieldBuilder().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.SingleFieldBuilderV3< - com.google.cloud.datacatalog.v1beta1.TagTemplateField, com.google.cloud.datacatalog.v1beta1.TagTemplateField.Builder, com.google.cloud.datacatalog.v1beta1.TagTemplateFieldOrBuilder> - getTagTemplateFieldFieldBuilder() { - if (tagTemplateFieldBuilder_ == null) { - tagTemplateFieldBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - 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_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/CreateTagTemplateFieldRequestOrBuilder.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/CreateTagTemplateFieldRequestOrBuilder.java deleted file mode 100644 index 5a965abb615d..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/CreateTagTemplateFieldRequestOrBuilder.java +++ /dev/null @@ -1,94 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/datacatalog.proto - -package com.google.cloud.datacatalog.v1beta1; - -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/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/CreateTagTemplateRequest.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/CreateTagTemplateRequest.java deleted file mode 100644 index a9e2aca3729a..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/CreateTagTemplateRequest.java +++ /dev/null @@ -1,1007 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/datacatalog.proto - -package com.google.cloud.datacatalog.v1beta1; - -/** - *
- * Request message for
- * [CreateTagTemplate][google.cloud.datacatalog.v1beta1.DataCatalog.CreateTagTemplate].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.CreateTagTemplateRequest} - */ -public final class CreateTagTemplateRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.CreateTagTemplateRequest) - CreateTagTemplateRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use CreateTagTemplateRequest.newBuilder() to construct. - private CreateTagTemplateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CreateTagTemplateRequest() { - parent_ = ""; - tagTemplateId_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new CreateTagTemplateRequest(); - } - - 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.GeneratedMessageV3.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); - } - - 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 tagTemplate_ != null; - } - /** - *
-   * 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.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - if (tagTemplate_ != null) { - output.writeMessage(2, getTagTemplate()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tagTemplateId_)) { - com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - if (tagTemplate_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getTagTemplate()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tagTemplateId_)) { - size += com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @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_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.tagTemplate_ = tagTemplateBuilder_ == null - ? tagTemplate_ - : tagTemplateBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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( - getTagTemplateFieldBuilder().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.SingleFieldBuilderV3< - 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); - } - 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 getTagTemplateFieldBuilder().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.SingleFieldBuilderV3< - com.google.cloud.datacatalog.v1beta1.TagTemplate, com.google.cloud.datacatalog.v1beta1.TagTemplate.Builder, com.google.cloud.datacatalog.v1beta1.TagTemplateOrBuilder> - getTagTemplateFieldBuilder() { - if (tagTemplateBuilder_ == null) { - tagTemplateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - 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_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/CreateTagTemplateRequestOrBuilder.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/CreateTagTemplateRequestOrBuilder.java deleted file mode 100644 index 9f3f650346d1..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/CreateTagTemplateRequestOrBuilder.java +++ /dev/null @@ -1,86 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/datacatalog.proto - -package com.google.cloud.datacatalog.v1beta1; - -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/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/CreateTaxonomyRequest.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/CreateTaxonomyRequest.java deleted file mode 100644 index 0df1e771ab7a..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/CreateTaxonomyRequest.java +++ /dev/null @@ -1,808 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/policytagmanager.proto - -package com.google.cloud.datacatalog.v1beta1; - -/** - *
- * Request message for
- * [CreateTaxonomy][google.cloud.datacatalog.v1beta1.PolicyTagManager.CreateTaxonomy].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.CreateTaxonomyRequest} - */ -public final class CreateTaxonomyRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.CreateTaxonomyRequest) - CreateTaxonomyRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use CreateTaxonomyRequest.newBuilder() to construct. - private CreateTaxonomyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CreateTaxonomyRequest() { - parent_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new CreateTaxonomyRequest(); - } - - 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.GeneratedMessageV3.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); - } - - 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 taxonomy_ != null; - } - /** - *
-   * 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.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - if (taxonomy_ != null) { - 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.GeneratedMessageV3.isStringEmpty(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - if (taxonomy_ != null) { - 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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @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_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.taxonomy_ = taxonomyBuilder_ == null - ? taxonomy_ - : taxonomyBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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( - getTaxonomyFieldBuilder().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.SingleFieldBuilderV3< - 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); - } - 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 getTaxonomyFieldBuilder().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.SingleFieldBuilderV3< - com.google.cloud.datacatalog.v1beta1.Taxonomy, com.google.cloud.datacatalog.v1beta1.Taxonomy.Builder, com.google.cloud.datacatalog.v1beta1.TaxonomyOrBuilder> - getTaxonomyFieldBuilder() { - if (taxonomyBuilder_ == null) { - taxonomyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - 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_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/CreateTaxonomyRequestOrBuilder.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/CreateTaxonomyRequestOrBuilder.java deleted file mode 100644 index 7cd89cd2dbfd..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/CreateTaxonomyRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/policytagmanager.proto - -package com.google.cloud.datacatalog.v1beta1; - -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/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/Datacatalog.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/Datacatalog.java deleted file mode 100644 index f3d20be68d4c..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/Datacatalog.java +++ /dev/null @@ -1,766 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/datacatalog.proto - -package com.google.cloud.datacatalog.v1beta1; - -public final class Datacatalog { - private 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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 = { - "\n2google/cloud/datacatalog/v1beta1/datac" + - "atalog.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/comm" + - "on.proto\0327google/cloud/datacatalog/v1bet" + - "a1/gcs_fileset_spec.proto\032-google/cloud/" + - "datacatalog/v1beta1/schema.proto\032-google" + - "/cloud/datacatalog/v1beta1/search.proto\032" + - "1google/cloud/datacatalog/v1beta1/table_" + - "spec.proto\032+google/cloud/datacatalog/v1b" + - "eta1/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.prot" + - "o\032 google/protobuf/field_mask.proto\"\306\002\n\024" + - "SearchCatalogRequest\022Q\n\005scope\030\006 \001(\0132<.go" + - "ogle.cloud.datacatalog.v1beta1.SearchCat" + - "alogRequest.ScopeB\004\342A\001\002\022\023\n\005query\030\001 \001(\tB\004" + - "\342A\001\001\022\021\n\tpage_size\030\002 \001(\005\022\030\n\npage_token\030\003 " + - "\001(\tB\004\342A\001\001\022\020\n\010order_by\030\005 \001(\t\032\206\001\n\005Scope\022\027\n" + - "\017include_org_ids\030\002 \003(\t\022\033\n\023include_projec" + - "t_ids\030\003 \003(\t\022#\n\033include_gcp_public_datase" + - "ts\030\007 \001(\010\022\"\n\024restricted_locations\030\020 \003(\tB\004" + - "\342A\001\001\"\241\001\n\025SearchCatalogResponse\022F\n\007result" + - "s\030\001 \003(\01325.google.cloud.datacatalog.v1bet" + - "a1.SearchCatalogResult\022\022\n\ntotal_size\030\002 \001" + - "(\005\022\027\n\017next_page_token\030\003 \001(\t\022\023\n\013unreachab" + - "le\030\006 \003(\t\"\272\001\n\027CreateEntryGroupRequest\022>\n\006" + - "parent\030\001 \001(\tB.\342A\001\002\372A\'\022%datacatalog.googl" + - "eapis.com/EntryGroup\022\034\n\016entry_group_id\030\003" + - " \001(\tB\004\342A\001\002\022A\n\013entry_group\030\002 \001(\0132,.google" + - ".cloud.datacatalog.v1beta1.EntryGroup\"\223\001" + - "\n\027UpdateEntryGroupRequest\022G\n\013entry_group" + - "\030\001 \001(\0132,.google.cloud.datacatalog.v1beta" + - "1.EntryGroupB\004\342A\001\002\022/\n\013update_mask\030\002 \001(\0132" + - "\032.google.protobuf.FieldMask\"\203\001\n\024GetEntry" + - "GroupRequest\022<\n\004name\030\001 \001(\tB.\342A\001\002\372A\'\n%dat" + - "acatalog.googleapis.com/EntryGroup\022-\n\tre" + - "ad_mask\030\002 \001(\0132\032.google.protobuf.FieldMas" + - "k\"l\n\027DeleteEntryGroupRequest\022<\n\004name\030\001 \001" + - "(\tB.\342A\001\002\372A\'\n%datacatalog.googleapis.com/" + - "EntryGroup\022\023\n\005force\030\002 \001(\010B\004\342A\001\001\"\213\001\n\026List" + - "EntryGroupsRequest\022>\n\006parent\030\001 \001(\tB.\342A\001\002" + - "\372A\'\022%datacatalog.googleapis.com/EntryGro" + - "up\022\027\n\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\npage_toke" + - "n\030\003 \001(\tB\004\342A\001\001\"v\n\027ListEntryGroupsResponse" + - "\022B\n\014entry_groups\030\001 \003(\0132,.google.cloud.da" + - "tacatalog.v1beta1.EntryGroup\022\027\n\017next_pag" + - "e_token\030\002 \001(\t\"\252\001\n\022CreateEntryRequest\022>\n\006" + - "parent\030\001 \001(\tB.\342A\001\002\372A\'\n%datacatalog.googl" + - "eapis.com/EntryGroup\022\026\n\010entry_id\030\003 \001(\tB\004" + - "\342A\001\002\022<\n\005entry\030\002 \001(\0132\'.google.cloud.datac" + - "atalog.v1beta1.EntryB\004\342A\001\002\"\203\001\n\022UpdateEnt" + - "ryRequest\022<\n\005entry\030\001 \001(\0132\'.google.cloud." + - "datacatalog.v1beta1.EntryB\004\342A\001\002\022/\n\013updat" + - "e_mask\030\002 \001(\0132\032.google.protobuf.FieldMask" + - "\"M\n\022DeleteEntryRequest\0227\n\004name\030\001 \001(\tB)\342A" + - "\001\002\372A\"\n datacatalog.googleapis.com/Entry\"" + - "J\n\017GetEntryRequest\0227\n\004name\030\001 \001(\tB)\342A\001\002\372A" + - "\"\n datacatalog.googleapis.com/Entry\"V\n\022L" + - "ookupEntryRequest\022\031\n\017linked_resource\030\001 \001" + - "(\tH\000\022\026\n\014sql_resource\030\003 \001(\tH\000B\r\n\013target_n" + - "ame\"\340\007\n\005Entry\022<\n\004name\030\001 \001(\tB.\342A\001\003\372A\'\n%da" + - "tacatalog.googleapis.com/EntryGroup\022\027\n\017l" + - "inked_resource\030\t \001(\t\022;\n\004type\030\002 \001(\0162+.goo" + - "gle.cloud.datacatalog.v1beta1.EntryTypeH" + - "\000\022\035\n\023user_specified_type\030\020 \001(\tH\000\022U\n\021inte" + - "grated_system\030\021 \001(\01622.google.cloud.datac" + - "atalog.v1beta1.IntegratedSystemB\004\342A\001\003H\001\022" + - "\037\n\025user_specified_system\030\022 \001(\tH\001\022L\n\020gcs_" + - "fileset_spec\030\006 \001(\01320.google.cloud.dataca" + - "talog.v1beta1.GcsFilesetSpecH\002\022R\n\023bigque" + - "ry_table_spec\030\014 \001(\01323.google.cloud.datac" + - "atalog.v1beta1.BigQueryTableSpecH\002\022_\n\032bi" + - "gquery_date_sharded_spec\030\017 \001(\01329.google." + - "cloud.datacatalog.v1beta1.BigQueryDateSh" + - "ardedSpecH\002\022\024\n\014display_name\030\003 \001(\t\022\023\n\013des" + - "cription\030\004 \001(\t\0228\n\006schema\030\005 \001(\0132(.google." + - "cloud.datacatalog.v1beta1.Schema\022Z\n\030sour" + - "ce_system_timestamps\030\007 \001(\01322.google.clou" + - "d.datacatalog.v1beta1.SystemTimestampsB\004" + - "\342A\001\003\022I\n\014usage_signal\030\r \001(\0132-.google.clou" + - "d.datacatalog.v1beta1.UsageSignalB\004\342A\001\003:" + - "x\352Au\n datacatalog.googleapis.com/Entry\022Q" + - "projects/{project}/locations/{location}/" + - "entryGroups/{entry_group}/entries/{entry" + - "}B\014\n\nentry_typeB\010\n\006systemB\013\n\ttype_spec\"\217" + - "\002\n\nEntryGroup\022\014\n\004name\030\001 \001(\t\022\024\n\014display_n" + - "ame\030\002 \001(\t\022\023\n\013description\030\003 \001(\t\022Y\n\027data_c" + - "atalog_timestamps\030\004 \001(\01322.google.cloud.d" + - "atacatalog.v1beta1.SystemTimestampsB\004\342A\001" + - "\003:m\352Aj\n%datacatalog.googleapis.com/Entry" + - "Group\022Aprojects/{project}/locations/{loc" + - "ation}/entryGroups/{entry_group}\"\305\001\n\030Cre" + - "ateTagTemplateRequest\022?\n\006parent\030\001 \001(\tB/\342" + - "A\001\002\372A(\022&datacatalog.googleapis.com/TagTe" + - "mplate\022\035\n\017tag_template_id\030\003 \001(\tB\004\342A\001\002\022I\n" + - "\014tag_template\030\002 \001(\0132-.google.cloud.datac" + - "atalog.v1beta1.TagTemplateB\004\342A\001\002\"V\n\025GetT" + - "agTemplateRequest\022=\n\004name\030\001 \001(\tB/\342A\001\002\372A(" + - "\n&datacatalog.googleapis.com/TagTemplate" + - "\"\226\001\n\030UpdateTagTemplateRequest\022I\n\014tag_tem" + - "plate\030\001 \001(\0132-.google.cloud.datacatalog.v" + - "1beta1.TagTemplateB\004\342A\001\002\022/\n\013update_mask\030" + - "\002 \001(\0132\032.google.protobuf.FieldMask\"n\n\030Del" + - "eteTagTemplateRequest\022=\n\004name\030\001 \001(\tB/\342A\001" + - "\002\372A(\n&datacatalog.googleapis.com/TagTemp" + - "late\022\023\n\005force\030\002 \001(\010B\004\342A\001\002\"\205\001\n\020CreateTagR" + - "equest\0227\n\006parent\030\001 \001(\tB\'\342A\001\002\372A \022\036datacat" + - "alog.googleapis.com/Tag\0228\n\003tag\030\002 \001(\0132%.g" + - "oogle.cloud.datacatalog.v1beta1.TagB\004\342A\001" + - "\002\"}\n\020UpdateTagRequest\0228\n\003tag\030\001 \001(\0132%.goo" + - "gle.cloud.datacatalog.v1beta1.TagB\004\342A\001\002\022" + - "/\n\013update_mask\030\002 \001(\0132\032.google.protobuf.F" + - "ieldMask\"I\n\020DeleteTagRequest\0225\n\004name\030\001 \001" + - "(\tB\'\342A\001\002\372A \022\036datacatalog.googleapis.com/" + - "Tag\"\333\001\n\035CreateTagTemplateFieldRequest\022?\n" + - "\006parent\030\001 \001(\tB/\342A\001\002\372A(\n&datacatalog.goog" + - "leapis.com/TagTemplate\022#\n\025tag_template_f" + - "ield_id\030\002 \001(\tB\004\342A\001\002\022T\n\022tag_template_fiel" + - "d\030\003 \001(\01322.google.cloud.datacatalog.v1bet" + - "a1.TagTemplateFieldB\004\342A\001\002\"\360\001\n\035UpdateTagT" + - "emplateFieldRequest\022B\n\004name\030\001 \001(\tB4\342A\001\002\372" + - "A-\n+datacatalog.googleapis.com/TagTempla" + - "teField\022T\n\022tag_template_field\030\002 \001(\01322.go" + - "ogle.cloud.datacatalog.v1beta1.TagTempla" + - "teFieldB\004\342A\001\002\0225\n\013update_mask\030\003 \001(\0132\032.goo" + - "gle.protobuf.FieldMaskB\004\342A\001\001\"\214\001\n\035RenameT" + - "agTemplateFieldRequest\022B\n\004name\030\001 \001(\tB4\342A" + - "\001\002\372A-\n+datacatalog.googleapis.com/TagTem" + - "plateField\022\'\n\031new_tag_template_field_id\030" + - "\002 \001(\tB\004\342A\001\002\"\240\001\n&RenameTagTemplateFieldEn" + - "umValueRequest\022K\n\004name\030\001 \001(\tB=\342A\001\002\372A6\n4d" + - "atacatalog.googleapis.com/TagTemplateFie" + - "ldEnumValue\022)\n\033new_enum_value_display_na" + - "me\030\002 \001(\tB\004\342A\001\002\"x\n\035DeleteTagTemplateField" + - "Request\022B\n\004name\030\001 \001(\tB4\342A\001\002\372A-\n+datacata" + - "log.googleapis.com/TagTemplateField\022\023\n\005f" + - "orce\030\002 \001(\010B\004\342A\001\002\"q\n\017ListTagsRequest\0227\n\006p" + - "arent\030\001 \001(\tB\'\342A\001\002\372A \022\036datacatalog.google" + - "apis.com/Tag\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_" + - "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\"\252\001\n\022ListEn" + - "triesRequest\022>\n\006parent\030\001 \001(\tB.\342A\001\002\372A\'\n%d" + - "atacatalog.googleapis.com/EntryGroup\022\021\n\t" + - "page_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022-\n\tr" + - "ead_mask\030\004 \001(\0132\032.google.protobuf.FieldMa" + - "sk\"h\n\023ListEntriesResponse\0228\n\007entries\030\001 \003" + - "(\0132\'.google.cloud.datacatalog.v1beta1.En" + - "try\022\027\n\017next_page_token\030\002 \001(\t*[\n\tEntryTyp" + - "e\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\3414\n\013DataCatalog\022\262\001\n\rSearchCatalog\0226.go" + - "ogle.cloud.datacatalog.v1beta1.SearchCat" + - "alogRequest\0327.google.cloud.datacatalog.v" + - "1beta1.SearchCatalogResponse\"0\332A\013scope,q" + - "uery\202\323\344\223\002\034\"\027/v1beta1/catalog:search:\001*\022\352" + - "\001\n\020CreateEntryGroup\0229.google.cloud.datac" + - "atalog.v1beta1.CreateEntryGroupRequest\032," + - ".google.cloud.datacatalog.v1beta1.EntryG" + - "roup\"m\332A!parent,entry_group_id,entry_gro" + - "up\202\323\344\223\002C\"4/v1beta1/{parent=projects/*/lo" + - "cations/*}/entryGroups:\013entry_group\022\372\001\n\020" + - "UpdateEntryGroup\0229.google.cloud.datacata" + - "log.v1beta1.UpdateEntryGroupRequest\032,.go" + - "ogle.cloud.datacatalog.v1beta1.EntryGrou" + - "p\"}\332A\013entry_group\332A\027entry_group,update_m" + - "ask\202\323\344\223\002O2@/v1beta1/{entry_group.name=pr" + - "ojects/*/locations/*/entryGroups/*}:\013ent" + - "ry_group\022\313\001\n\rGetEntryGroup\0226.google.clou" + - "d.datacatalog.v1beta1.GetEntryGroupReque" + - "st\032,.google.cloud.datacatalog.v1beta1.En" + - "tryGroup\"T\332A\004name\332A\016name,read_mask\202\323\344\223\0026" + - "\0224/v1beta1/{name=projects/*/locations/*/" + - "entryGroups/*}\022\252\001\n\020DeleteEntryGroup\0229.go" + - "ogle.cloud.datacatalog.v1beta1.DeleteEnt" + - "ryGroupRequest\032\026.google.protobuf.Empty\"C" + - "\332A\004name\202\323\344\223\0026*4/v1beta1/{name=projects/*" + - "/locations/*/entryGroups/*}\022\315\001\n\017ListEntr" + - "yGroups\0228.google.cloud.datacatalog.v1bet" + - "a1.ListEntryGroupsRequest\0329.google.cloud" + - ".datacatalog.v1beta1.ListEntryGroupsResp" + - "onse\"E\332A\006parent\202\323\344\223\0026\0224/v1beta1/{parent=" + - "projects/*/locations/*}/entryGroups\022\323\001\n\013" + - "CreateEntry\0224.google.cloud.datacatalog.v" + - "1beta1.CreateEntryRequest\032\'.google.cloud" + - ".datacatalog.v1beta1.Entry\"e\332A\025parent,en" + - "try_id,entry\202\323\344\223\002G\">/v1beta1/{parent=pro" + - "jects/*/locations/*/entryGroups/*}/entri" + - "es:\005entry\022\335\001\n\013UpdateEntry\0224.google.cloud" + - ".datacatalog.v1beta1.UpdateEntryRequest\032" + - "\'.google.cloud.datacatalog.v1beta1.Entry" + - "\"o\332A\005entry\332A\021entry,update_mask\202\323\344\223\002M2D/v" + - "1beta1/{entry.name=projects/*/locations/" + - "*/entryGroups/*/entries/*}:\005entry\022\252\001\n\013De" + - "leteEntry\0224.google.cloud.datacatalog.v1b" + - "eta1.DeleteEntryRequest\032\026.google.protobu" + - "f.Empty\"M\332A\004name\202\323\344\223\002@*>/v1beta1/{name=p" + - "rojects/*/locations/*/entryGroups/*/entr" + - "ies/*}\022\265\001\n\010GetEntry\0221.google.cloud.datac" + - "atalog.v1beta1.GetEntryRequest\032\'.google." + - "cloud.datacatalog.v1beta1.Entry\"M\332A\004name" + - "\202\323\344\223\002@\022>/v1beta1/{name=projects/*/locati" + - "ons/*/entryGroups/*/entries/*}\022\215\001\n\013Looku" + - "pEntry\0224.google.cloud.datacatalog.v1beta" + - "1.LookupEntryRequest\032\'.google.cloud.data" + - "catalog.v1beta1.Entry\"\037\202\323\344\223\002\031\022\027/v1beta1/" + - "entries:lookup\022\313\001\n\013ListEntries\0224.google." + - "cloud.datacatalog.v1beta1.ListEntriesReq" + - "uest\0325.google.cloud.datacatalog.v1beta1." + - "ListEntriesResponse\"O\332A\006parent\202\323\344\223\002@\022>/v" + - "1beta1/{parent=projects/*/locations/*/en" + - "tryGroups/*}/entries\022\361\001\n\021CreateTagTempla" + - "te\022:.google.cloud.datacatalog.v1beta1.Cr" + - "eateTagTemplateRequest\032-.google.cloud.da" + - "tacatalog.v1beta1.TagTemplate\"q\332A#parent" + - ",tag_template_id,tag_template\202\323\344\223\002E\"5/v1" + - "beta1/{parent=projects/*/locations/*}/ta" + - "gTemplates:\014tag_template\022\276\001\n\016GetTagTempl" + - "ate\0227.google.cloud.datacatalog.v1beta1.G" + - "etTagTemplateRequest\032-.google.cloud.data" + - "catalog.v1beta1.TagTemplate\"D\332A\004name\202\323\344\223" + - "\0027\0225/v1beta1/{name=projects/*/locations/" + - "*/tagTemplates/*}\022\203\002\n\021UpdateTagTemplate\022" + - ":.google.cloud.datacatalog.v1beta1.Updat" + - "eTagTemplateRequest\032-.google.cloud.datac" + - "atalog.v1beta1.TagTemplate\"\202\001\332A\014tag_temp" + - "late\332A\030tag_template,update_mask\202\323\344\223\002R2B/" + - "v1beta1/{tag_template.name=projects/*/lo" + - "cations/*/tagTemplates/*}:\014tag_template\022" + - "\263\001\n\021DeleteTagTemplate\022:.google.cloud.dat" + - "acatalog.v1beta1.DeleteTagTemplateReques" + - "t\032\026.google.protobuf.Empty\"J\332A\nname,force" + - "\202\323\344\223\0027*5/v1beta1/{name=projects/*/locati" + - "ons/*/tagTemplates/*}\022\234\002\n\026CreateTagTempl" + - "ateField\022?.google.cloud.datacatalog.v1be" + - "ta1.CreateTagTemplateFieldRequest\0322.goog" + - "le.cloud.datacatalog.v1beta1.TagTemplate" + - "Field\"\214\001\332A/parent,tag_template_field_id," + - "tag_template_field\202\323\344\223\002T\">/v1beta1/{pare" + - "nt=projects/*/locations/*/tagTemplates/*" + - "}/fields:\022tag_template_field\022\252\002\n\026UpdateT" + - "agTemplateField\022?.google.cloud.datacatal" + - "og.v1beta1.UpdateTagTemplateFieldRequest" + - "\0322.google.cloud.datacatalog.v1beta1.TagT" + - "emplateField\"\232\001\332A\027name,tag_template_fiel" + - "d\332A#name,tag_template_field,update_mask\202" + - "\323\344\223\002T2>/v1beta1/{name=projects/*/locatio" + - "ns/*/tagTemplates/*/fields/*}:\022tag_templ" + - "ate_field\022\200\002\n\026RenameTagTemplateField\022?.g" + - "oogle.cloud.datacatalog.v1beta1.RenameTa" + - "gTemplateFieldRequest\0322.google.cloud.dat" + - "acatalog.v1beta1.TagTemplateField\"q\332A\036na" + - "me,new_tag_template_field_id\202\323\344\223\002J\"E/v1b" + - "eta1/{name=projects/*/locations/*/tagTem" + - "plates/*/fields/*}:rename:\001*\022\242\002\n\037RenameT" + - "agTemplateFieldEnumValue\022H.google.cloud." + - "datacatalog.v1beta1.RenameTagTemplateFie" + - "ldEnumValueRequest\0322.google.cloud.dataca" + - "talog.v1beta1.TagTemplateField\"\200\001\332A name" + - ",new_enum_value_display_name\202\323\344\223\002W\"R/v1b" + - "eta1/{name=projects/*/locations/*/tagTem" + - "plates/*/fields/*/enumValues/*}:rename:\001" + - "*\022\306\001\n\026DeleteTagTemplateField\022?.google.cl" + - "oud.datacatalog.v1beta1.DeleteTagTemplat" + - "eFieldRequest\032\026.google.protobuf.Empty\"S\332" + - "A\nname,force\202\323\344\223\002@*>/v1beta1/{name=proje" + - "cts/*/locations/*/tagTemplates/*/fields/" + - "*}\022\215\002\n\tCreateTag\0222.google.cloud.datacata" + - "log.v1beta1.CreateTagRequest\032%.google.cl" + - "oud.datacatalog.v1beta1.Tag\"\244\001\332A\nparent," + - "tag\202\323\344\223\002\220\001\"E/v1beta1/{parent=projects/*/" + - "locations/*/entryGroups/*/entries/*}/tag" + - "s:\003tagZB\";/v1beta1/{parent=projects/*/lo" + - "cations/*/entryGroups/*}/tags:\003tag\022\240\002\n\tU" + - "pdateTag\0222.google.cloud.datacatalog.v1be" + - "ta1.UpdateTagRequest\032%.google.cloud.data" + - "catalog.v1beta1.Tag\"\267\001\332A\003tag\332A\017tag,updat" + - "e_mask\202\323\344\223\002\230\0012I/v1beta1/{tag.name=projec" + - "ts/*/locations/*/entryGroups/*/entries/*" + - "/tags/*}:\003tagZF2?/v1beta1/{tag.name=proj" + - "ects/*/locations/*/entryGroups/*/tags/*}" + - ":\003tag\022\356\001\n\tDeleteTag\0222.google.cloud.datac" + - "atalog.v1beta1.DeleteTagRequest\032\026.google" + - ".protobuf.Empty\"\224\001\332A\004name\202\323\344\223\002\206\001*E/v1bet" + - "a1/{name=projects/*/locations/*/entryGro" + - "ups/*/entries/*/tags/*}Z=*;/v1beta1/{nam" + - "e=projects/*/locations/*/entryGroups/*/t" + - "ags/*}\022\212\002\n\010ListTags\0221.google.cloud.datac" + - "atalog.v1beta1.ListTagsRequest\0322.google." + - "cloud.datacatalog.v1beta1.ListTagsRespon" + - "se\"\226\001\332A\006parent\202\323\344\223\002\206\001\022E/v1beta1/{parent=" + - "projects/*/locations/*/entryGroups/*/ent" + - "ries/*}/tagsZ=\022;/v1beta1/{parent=project" + - "s/*/locations/*/entryGroups/*}/tags\022\374\001\n\014" + - "SetIamPolicy\022\".google.iam.v1.SetIamPolic" + - "yRequest\032\025.google.iam.v1.Policy\"\260\001\332A\017res" + - "ource,policy\202\323\344\223\002\227\001\"F/v1beta1/{resource=" + - "projects/*/locations/*/tagTemplates/*}:s" + - "etIamPolicy:\001*ZJ\"E/v1beta1/{resource=pro" + - "jects/*/locations/*/entryGroups/*}:setIa" + - "mPolicy:\001*\022\313\002\n\014GetIamPolicy\022\".google.iam" + - ".v1.GetIamPolicyRequest\032\025.google.iam.v1." + - "Policy\"\377\001\332A\010resource\202\323\344\223\002\355\001\"F/v1beta1/{r" + - "esource=projects/*/locations/*/tagTempla" + - "tes/*}:getIamPolicy:\001*ZJ\"E/v1beta1/{reso" + - "urce=projects/*/locations/*/entryGroups/" + - "*}:getIamPolicy:\001*ZT\"O/v1beta1/{resource" + - "=projects/*/locations/*/entryGroups/*/en" + - "tries/*}:getIamPolicy:\001*\022\362\002\n\022TestIamPerm" + - "issions\022(.google.iam.v1.TestIamPermissio" + - "nsRequest\032).google.iam.v1.TestIamPermiss" + - "ionsResponse\"\206\002\202\323\344\223\002\377\001\"L/v1beta1/{resour" + - "ce=projects/*/locations/*/tagTemplates/*" + - "}:testIamPermissions:\001*ZP\"K/v1beta1/{res" + - "ource=projects/*/locations/*/entryGroups" + - "/*}:testIamPermissions:\001*ZZ\"U/v1beta1/{r" + - "esource=projects/*/locations/*/entryGrou" + - "ps/*/entries/*}:testIamPermissions:\001*\032N\312" + - "A\032datacatalog.googleapis.com\322A.https://w" + - "ww.googleapis.com/auth/cloud-platformB\243\003" + - "\n$com.google.cloud.datacatalog.v1beta1P\001" + - "ZFcloud.google.com/go/datacatalog/apiv1b" + - "eta1/datacatalogpb;datacatalogpb\370\001\001\252\002 Go" + - "ogle.Cloud.DataCatalog.V1Beta1\312\002 Google\\" + - "Cloud\\DataCatalog\\V1beta1\352\002#Google::Clou" + - "d::DataCatalog::V1beta1\352A\300\001\n4datacatalog" + - ".googleapis.com/TagTemplateFieldEnumValu" + - "e\022\207\001projects/{project}/locations/{locati" + - "on}/tagTemplates/{tag_template}/fields/{" + - "tag_template_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.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().getMessageTypes().get(0); - internal_static_google_cloud_datacatalog_v1beta1_SearchCatalogRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.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.getNestedTypes().get(0); - internal_static_google_cloud_datacatalog_v1beta1_SearchCatalogRequest_Scope_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.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().getMessageTypes().get(1); - internal_static_google_cloud_datacatalog_v1beta1_SearchCatalogResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.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().getMessageTypes().get(2); - internal_static_google_cloud_datacatalog_v1beta1_CreateEntryGroupRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.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().getMessageTypes().get(3); - internal_static_google_cloud_datacatalog_v1beta1_UpdateEntryGroupRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1beta1_UpdateEntryGroupRequest_descriptor, - new java.lang.String[] { "EntryGroup", "UpdateMask", }); - internal_static_google_cloud_datacatalog_v1beta1_GetEntryGroupRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_datacatalog_v1beta1_GetEntryGroupRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1beta1_GetEntryGroupRequest_descriptor, - new java.lang.String[] { "Name", "ReadMask", }); - internal_static_google_cloud_datacatalog_v1beta1_DeleteEntryGroupRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_datacatalog_v1beta1_DeleteEntryGroupRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1beta1_DeleteEntryGroupRequest_descriptor, - new java.lang.String[] { "Name", "Force", }); - internal_static_google_cloud_datacatalog_v1beta1_ListEntryGroupsRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_datacatalog_v1beta1_ListEntryGroupsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.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().getMessageTypes().get(7); - internal_static_google_cloud_datacatalog_v1beta1_ListEntryGroupsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1beta1_ListEntryGroupsResponse_descriptor, - new java.lang.String[] { "EntryGroups", "NextPageToken", }); - internal_static_google_cloud_datacatalog_v1beta1_CreateEntryRequest_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_datacatalog_v1beta1_CreateEntryRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.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().getMessageTypes().get(9); - internal_static_google_cloud_datacatalog_v1beta1_UpdateEntryRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1beta1_UpdateEntryRequest_descriptor, - new java.lang.String[] { "Entry", "UpdateMask", }); - internal_static_google_cloud_datacatalog_v1beta1_DeleteEntryRequest_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_datacatalog_v1beta1_DeleteEntryRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1beta1_DeleteEntryRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_datacatalog_v1beta1_GetEntryRequest_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_datacatalog_v1beta1_GetEntryRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1beta1_GetEntryRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_datacatalog_v1beta1_LookupEntryRequest_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_datacatalog_v1beta1_LookupEntryRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.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().getMessageTypes().get(13); - internal_static_google_cloud_datacatalog_v1beta1_Entry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.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().getMessageTypes().get(14); - internal_static_google_cloud_datacatalog_v1beta1_EntryGroup_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.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().getMessageTypes().get(15); - internal_static_google_cloud_datacatalog_v1beta1_CreateTagTemplateRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.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().getMessageTypes().get(16); - internal_static_google_cloud_datacatalog_v1beta1_GetTagTemplateRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1beta1_GetTagTemplateRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_datacatalog_v1beta1_UpdateTagTemplateRequest_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_cloud_datacatalog_v1beta1_UpdateTagTemplateRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1beta1_UpdateTagTemplateRequest_descriptor, - new java.lang.String[] { "TagTemplate", "UpdateMask", }); - internal_static_google_cloud_datacatalog_v1beta1_DeleteTagTemplateRequest_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_google_cloud_datacatalog_v1beta1_DeleteTagTemplateRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1beta1_DeleteTagTemplateRequest_descriptor, - new java.lang.String[] { "Name", "Force", }); - internal_static_google_cloud_datacatalog_v1beta1_CreateTagRequest_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_google_cloud_datacatalog_v1beta1_CreateTagRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1beta1_CreateTagRequest_descriptor, - new java.lang.String[] { "Parent", "Tag", }); - internal_static_google_cloud_datacatalog_v1beta1_UpdateTagRequest_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_google_cloud_datacatalog_v1beta1_UpdateTagRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1beta1_UpdateTagRequest_descriptor, - new java.lang.String[] { "Tag", "UpdateMask", }); - internal_static_google_cloud_datacatalog_v1beta1_DeleteTagRequest_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_google_cloud_datacatalog_v1beta1_DeleteTagRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1beta1_DeleteTagRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_datacatalog_v1beta1_CreateTagTemplateFieldRequest_descriptor = - getDescriptor().getMessageTypes().get(22); - internal_static_google_cloud_datacatalog_v1beta1_CreateTagTemplateFieldRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.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().getMessageTypes().get(23); - internal_static_google_cloud_datacatalog_v1beta1_UpdateTagTemplateFieldRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.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().getMessageTypes().get(24); - internal_static_google_cloud_datacatalog_v1beta1_RenameTagTemplateFieldRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1beta1_RenameTagTemplateFieldRequest_descriptor, - new java.lang.String[] { "Name", "NewTagTemplateFieldId", }); - internal_static_google_cloud_datacatalog_v1beta1_RenameTagTemplateFieldEnumValueRequest_descriptor = - getDescriptor().getMessageTypes().get(25); - internal_static_google_cloud_datacatalog_v1beta1_RenameTagTemplateFieldEnumValueRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1beta1_RenameTagTemplateFieldEnumValueRequest_descriptor, - new java.lang.String[] { "Name", "NewEnumValueDisplayName", }); - internal_static_google_cloud_datacatalog_v1beta1_DeleteTagTemplateFieldRequest_descriptor = - getDescriptor().getMessageTypes().get(26); - internal_static_google_cloud_datacatalog_v1beta1_DeleteTagTemplateFieldRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1beta1_DeleteTagTemplateFieldRequest_descriptor, - new java.lang.String[] { "Name", "Force", }); - internal_static_google_cloud_datacatalog_v1beta1_ListTagsRequest_descriptor = - getDescriptor().getMessageTypes().get(27); - internal_static_google_cloud_datacatalog_v1beta1_ListTagsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.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().getMessageTypes().get(28); - internal_static_google_cloud_datacatalog_v1beta1_ListTagsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1beta1_ListTagsResponse_descriptor, - new java.lang.String[] { "Tags", "NextPageToken", }); - internal_static_google_cloud_datacatalog_v1beta1_ListEntriesRequest_descriptor = - getDescriptor().getMessageTypes().get(29); - internal_static_google_cloud_datacatalog_v1beta1_ListEntriesRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.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().getMessageTypes().get(30); - internal_static_google_cloud_datacatalog_v1beta1_ListEntriesResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1beta1_ListEntriesResponse_descriptor, - new java.lang.String[] { "Entries", "NextPageToken", }); - 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); - 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(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DeleteEntryGroupRequest.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DeleteEntryGroupRequest.java deleted file mode 100644 index 066f0c79f999..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DeleteEntryGroupRequest.java +++ /dev/null @@ -1,669 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/datacatalog.proto - -package com.google.cloud.datacatalog.v1beta1; - -/** - *
- * Request message for
- * [DeleteEntryGroup][google.cloud.datacatalog.v1beta1.DataCatalog.DeleteEntryGroup].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.DeleteEntryGroupRequest} - */ -public final class DeleteEntryGroupRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.DeleteEntryGroupRequest) - DeleteEntryGroupRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use DeleteEntryGroupRequest.newBuilder() to construct. - private DeleteEntryGroupRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DeleteEntryGroupRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new DeleteEntryGroupRequest(); - } - - 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DeleteEntryGroupRequestOrBuilder.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DeleteEntryGroupRequestOrBuilder.java deleted file mode 100644 index b0c3959c85d3..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DeleteEntryGroupRequestOrBuilder.java +++ /dev/null @@ -1,41 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/datacatalog.proto - -package com.google.cloud.datacatalog.v1beta1; - -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/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DeleteEntryRequest.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DeleteEntryRequest.java deleted file mode 100644 index 54ffd5f0bdf4..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DeleteEntryRequest.java +++ /dev/null @@ -1,593 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/datacatalog.proto - -package com.google.cloud.datacatalog.v1beta1; - -/** - *
- * Request message for
- * [DeleteEntry][google.cloud.datacatalog.v1beta1.DataCatalog.DeleteEntry].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.DeleteEntryRequest} - */ -public final class DeleteEntryRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.DeleteEntryRequest) - DeleteEntryRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use DeleteEntryRequest.newBuilder() to construct. - private DeleteEntryRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DeleteEntryRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new DeleteEntryRequest(); - } - - 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.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 clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DeleteEntryRequestOrBuilder.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DeleteEntryRequestOrBuilder.java deleted file mode 100644 index 1d1e404f02ef..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DeleteEntryRequestOrBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/datacatalog.proto - -package com.google.cloud.datacatalog.v1beta1; - -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/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DeletePolicyTagRequest.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DeletePolicyTagRequest.java deleted file mode 100644 index 981f3bce7289..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DeletePolicyTagRequest.java +++ /dev/null @@ -1,586 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/policytagmanager.proto - -package com.google.cloud.datacatalog.v1beta1; - -/** - *
- * Request message for
- * [DeletePolicyTag][google.cloud.datacatalog.v1beta1.PolicyTagManager.DeletePolicyTag].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.DeletePolicyTagRequest} - */ -public final class DeletePolicyTagRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.DeletePolicyTagRequest) - DeletePolicyTagRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use DeletePolicyTagRequest.newBuilder() to construct. - private DeletePolicyTagRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DeletePolicyTagRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new DeletePolicyTagRequest(); - } - - 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.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 clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DeletePolicyTagRequestOrBuilder.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DeletePolicyTagRequestOrBuilder.java deleted file mode 100644 index e7e3af3027c9..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DeletePolicyTagRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/policytagmanager.proto - -package com.google.cloud.datacatalog.v1beta1; - -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/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DeleteTagRequest.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DeleteTagRequest.java deleted file mode 100644 index a5826e7e8cca..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DeleteTagRequest.java +++ /dev/null @@ -1,593 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/datacatalog.proto - -package com.google.cloud.datacatalog.v1beta1; - -/** - *
- * Request message for
- * [DeleteTag][google.cloud.datacatalog.v1beta1.DataCatalog.DeleteTag].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.DeleteTagRequest} - */ -public final class DeleteTagRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.DeleteTagRequest) - DeleteTagRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use DeleteTagRequest.newBuilder() to construct. - private DeleteTagRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DeleteTagRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new DeleteTagRequest(); - } - - 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.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 clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DeleteTagRequestOrBuilder.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DeleteTagRequestOrBuilder.java deleted file mode 100644 index ef66869a535f..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DeleteTagRequestOrBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/datacatalog.proto - -package com.google.cloud.datacatalog.v1beta1; - -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/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DeleteTagTemplateFieldRequest.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DeleteTagTemplateFieldRequest.java deleted file mode 100644 index b24f7e8790ea..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DeleteTagTemplateFieldRequest.java +++ /dev/null @@ -1,684 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/datacatalog.proto - -package com.google.cloud.datacatalog.v1beta1; - -/** - *
- * Request message for
- * [DeleteTagTemplateField][google.cloud.datacatalog.v1beta1.DataCatalog.DeleteTagTemplateField].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.DeleteTagTemplateFieldRequest} - */ -public final class DeleteTagTemplateFieldRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.DeleteTagTemplateFieldRequest) - DeleteTagTemplateFieldRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use DeleteTagTemplateFieldRequest.newBuilder() to construct. - private DeleteTagTemplateFieldRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DeleteTagTemplateFieldRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new DeleteTagTemplateFieldRequest(); - } - - 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DeleteTagTemplateFieldRequestOrBuilder.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DeleteTagTemplateFieldRequestOrBuilder.java deleted file mode 100644 index 92b808d6e9b5..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DeleteTagTemplateFieldRequestOrBuilder.java +++ /dev/null @@ -1,45 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/datacatalog.proto - -package com.google.cloud.datacatalog.v1beta1; - -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/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DeleteTagTemplateRequest.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DeleteTagTemplateRequest.java deleted file mode 100644 index 0f2b06d78e2c..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DeleteTagTemplateRequest.java +++ /dev/null @@ -1,684 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/datacatalog.proto - -package com.google.cloud.datacatalog.v1beta1; - -/** - *
- * Request message for
- * [DeleteTagTemplate][google.cloud.datacatalog.v1beta1.DataCatalog.DeleteTagTemplate].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.DeleteTagTemplateRequest} - */ -public final class DeleteTagTemplateRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.DeleteTagTemplateRequest) - DeleteTagTemplateRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use DeleteTagTemplateRequest.newBuilder() to construct. - private DeleteTagTemplateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DeleteTagTemplateRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new DeleteTagTemplateRequest(); - } - - 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DeleteTagTemplateRequestOrBuilder.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DeleteTagTemplateRequestOrBuilder.java deleted file mode 100644 index da1a5092a8a4..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DeleteTagTemplateRequestOrBuilder.java +++ /dev/null @@ -1,45 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/datacatalog.proto - -package com.google.cloud.datacatalog.v1beta1; - -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/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DeleteTaxonomyRequest.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DeleteTaxonomyRequest.java deleted file mode 100644 index 7a69765747e9..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DeleteTaxonomyRequest.java +++ /dev/null @@ -1,586 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/policytagmanager.proto - -package com.google.cloud.datacatalog.v1beta1; - -/** - *
- * Request message for
- * [DeleteTaxonomy][google.cloud.datacatalog.v1beta1.PolicyTagManager.DeleteTaxonomy].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.DeleteTaxonomyRequest} - */ -public final class DeleteTaxonomyRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.DeleteTaxonomyRequest) - DeleteTaxonomyRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use DeleteTaxonomyRequest.newBuilder() to construct. - private DeleteTaxonomyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DeleteTaxonomyRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new DeleteTaxonomyRequest(); - } - - 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.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 clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DeleteTaxonomyRequestOrBuilder.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DeleteTaxonomyRequestOrBuilder.java deleted file mode 100644 index 0facb797a4c2..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DeleteTaxonomyRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/policytagmanager.proto - -package com.google.cloud.datacatalog.v1beta1; - -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/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/Entry.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/Entry.java deleted file mode 100644 index 1fd49c165a27..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/Entry.java +++ /dev/null @@ -1,3864 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/datacatalog.proto - -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} - */ -public final class Entry extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.Entry) - EntryOrBuilder { -private static final long serialVersionUID = 0L; - // Use Entry.newBuilder() to construct. - private Entry(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Entry() { - name_ = ""; - linkedResource_ = ""; - displayName_ = ""; - description_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Entry(); - } - - 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.GeneratedMessageV3.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 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. 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.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. 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.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 schema_ != null; - } - /** - *
-   * 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 sourceSystemTimestamps_ != null; - } - /** - *
-   * 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 usageSignal_ != null; - } - /** - *
-   * 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.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (entryTypeCase_ == 2) { - output.writeEnum(2, ((java.lang.Integer) entryType_)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, displayName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, description_); - } - if (schema_ != null) { - output.writeMessage(5, getSchema()); - } - if (typeSpecCase_ == 6) { - output.writeMessage(6, (com.google.cloud.datacatalog.v1beta1.GcsFilesetSpec) typeSpec_); - } - if (sourceSystemTimestamps_ != null) { - output.writeMessage(7, getSourceSystemTimestamps()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(linkedResource_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 9, linkedResource_); - } - if (typeSpecCase_ == 12) { - output.writeMessage(12, (com.google.cloud.datacatalog.v1beta1.BigQueryTableSpec) typeSpec_); - } - if (usageSignal_ != null) { - output.writeMessage(13, getUsageSignal()); - } - if (typeSpecCase_ == 15) { - output.writeMessage(15, (com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec) typeSpec_); - } - if (entryTypeCase_ == 16) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 16, entryType_); - } - if (systemCase_ == 17) { - output.writeEnum(17, ((java.lang.Integer) system_)); - } - if (systemCase_ == 18) { - com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (entryTypeCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, ((java.lang.Integer) entryType_)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, displayName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, description_); - } - if (schema_ != null) { - 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 (sourceSystemTimestamps_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getSourceSystemTimestamps()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(linkedResource_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, linkedResource_); - } - if (typeSpecCase_ == 12) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(12, (com.google.cloud.datacatalog.v1beta1.BigQueryTableSpec) typeSpec_); - } - if (usageSignal_ != null) { - 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.GeneratedMessageV3.computeStringSize(16, entryType_); - } - if (systemCase_ == 17) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(17, ((java.lang.Integer) system_)); - } - if (systemCase_ == 18) { - size += com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @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_; - } - if (((from_bitField0_ & 0x00000800) != 0)) { - result.schema_ = schemaBuilder_ == null - ? schema_ - : schemaBuilder_.build(); - } - if (((from_bitField0_ & 0x00001000) != 0)) { - result.sourceSystemTimestamps_ = sourceSystemTimestampsBuilder_ == null - ? sourceSystemTimestamps_ - : sourceSystemTimestampsBuilder_.build(); - } - if (((from_bitField0_ & 0x00002000) != 0)) { - result.usageSignal_ = usageSignalBuilder_ == null - ? usageSignal_ - : usageSignalBuilder_.build(); - } - } - - 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 clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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( - getSchemaFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000800; - break; - } // case 42 - case 50: { - input.readMessage( - getGcsFilesetSpecFieldBuilder().getBuilder(), - extensionRegistry); - typeSpecCase_ = 6; - break; - } // case 50 - case 58: { - input.readMessage( - getSourceSystemTimestampsFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00001000; - break; - } // case 58 - case 74: { - linkedResource_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 74 - case 98: { - input.readMessage( - getBigqueryTableSpecFieldBuilder().getBuilder(), - extensionRegistry); - typeSpecCase_ = 12; - break; - } // case 98 - case 106: { - input.readMessage( - getUsageSignalFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00002000; - break; - } // case 106 - case 122: { - input.readMessage( - getBigqueryDateShardedSpecFieldBuilder().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. 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.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. 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.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. 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.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. 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.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Output only. 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.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.SingleFieldBuilderV3< - 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 getGcsFilesetSpecFieldBuilder().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.SingleFieldBuilderV3< - com.google.cloud.datacatalog.v1beta1.GcsFilesetSpec, com.google.cloud.datacatalog.v1beta1.GcsFilesetSpec.Builder, com.google.cloud.datacatalog.v1beta1.GcsFilesetSpecOrBuilder> - getGcsFilesetSpecFieldBuilder() { - if (gcsFilesetSpecBuilder_ == null) { - if (!(typeSpecCase_ == 6)) { - typeSpec_ = com.google.cloud.datacatalog.v1beta1.GcsFilesetSpec.getDefaultInstance(); - } - gcsFilesetSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - 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.SingleFieldBuilderV3< - 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 getBigqueryTableSpecFieldBuilder().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.SingleFieldBuilderV3< - com.google.cloud.datacatalog.v1beta1.BigQueryTableSpec, com.google.cloud.datacatalog.v1beta1.BigQueryTableSpec.Builder, com.google.cloud.datacatalog.v1beta1.BigQueryTableSpecOrBuilder> - getBigqueryTableSpecFieldBuilder() { - if (bigqueryTableSpecBuilder_ == null) { - if (!(typeSpecCase_ == 12)) { - typeSpec_ = com.google.cloud.datacatalog.v1beta1.BigQueryTableSpec.getDefaultInstance(); - } - bigqueryTableSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - 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.SingleFieldBuilderV3< - 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 getBigqueryDateShardedSpecFieldBuilder().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.SingleFieldBuilderV3< - com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec, com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec.Builder, com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpecOrBuilder> - getBigqueryDateShardedSpecFieldBuilder() { - if (bigqueryDateShardedSpecBuilder_ == null) { - if (!(typeSpecCase_ == 15)) { - typeSpec_ = com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec.getDefaultInstance(); - } - bigqueryDateShardedSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - 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.SingleFieldBuilderV3< - 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); - } - 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 getSchemaFieldBuilder().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.SingleFieldBuilderV3< - com.google.cloud.datacatalog.v1beta1.Schema, com.google.cloud.datacatalog.v1beta1.Schema.Builder, com.google.cloud.datacatalog.v1beta1.SchemaOrBuilder> - getSchemaFieldBuilder() { - if (schemaBuilder_ == null) { - schemaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - 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.SingleFieldBuilderV3< - 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); - } - 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 getSourceSystemTimestampsFieldBuilder().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.SingleFieldBuilderV3< - com.google.cloud.datacatalog.v1beta1.SystemTimestamps, com.google.cloud.datacatalog.v1beta1.SystemTimestamps.Builder, com.google.cloud.datacatalog.v1beta1.SystemTimestampsOrBuilder> - getSourceSystemTimestampsFieldBuilder() { - if (sourceSystemTimestampsBuilder_ == null) { - sourceSystemTimestampsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - 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.SingleFieldBuilderV3< - 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); - } - 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 getUsageSignalFieldBuilder().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.SingleFieldBuilderV3< - com.google.cloud.datacatalog.v1beta1.UsageSignal, com.google.cloud.datacatalog.v1beta1.UsageSignal.Builder, com.google.cloud.datacatalog.v1beta1.UsageSignalOrBuilder> - getUsageSignalFieldBuilder() { - if (usageSignalBuilder_ == null) { - usageSignalBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - 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_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/EntryGroup.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/EntryGroup.java deleted file mode 100644 index 09e0a1c13806..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/EntryGroup.java +++ /dev/null @@ -1,1206 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/datacatalog.proto - -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} - */ -public final class EntryGroup extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.EntryGroup) - EntryGroupOrBuilder { -private static final long serialVersionUID = 0L; - // Use EntryGroup.newBuilder() to construct. - private EntryGroup(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private EntryGroup() { - name_ = ""; - displayName_ = ""; - description_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new EntryGroup(); - } - - 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.GeneratedMessageV3.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); - } - - public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - *
-   * 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; - * @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 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; - * @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 dataCatalogTimestamps_ != null; - } - /** - *
-   * 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.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_); - } - if (dataCatalogTimestamps_ != null) { - 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.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); - } - if (dataCatalogTimestamps_ != null) { - 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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @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_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.dataCatalogTimestamps_ = dataCatalogTimestampsBuilder_ == null - ? dataCatalogTimestamps_ - : dataCatalogTimestampsBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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( - getDataCatalogTimestampsFieldBuilder().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_ = ""; - /** - *
-     * 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; - * @return The name. - */ - public java.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 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; - * @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 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; - * @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 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; - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * 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; - * @param value The 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.SingleFieldBuilderV3< - 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); - } - 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 getDataCatalogTimestampsFieldBuilder().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.SingleFieldBuilderV3< - com.google.cloud.datacatalog.v1beta1.SystemTimestamps, com.google.cloud.datacatalog.v1beta1.SystemTimestamps.Builder, com.google.cloud.datacatalog.v1beta1.SystemTimestampsOrBuilder> - getDataCatalogTimestampsFieldBuilder() { - if (dataCatalogTimestampsBuilder_ == null) { - dataCatalogTimestampsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - 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_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/EntryGroupOrBuilder.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/EntryGroupOrBuilder.java deleted file mode 100644 index 510b4964a6ec..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/EntryGroupOrBuilder.java +++ /dev/null @@ -1,115 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/datacatalog.proto - -package com.google.cloud.datacatalog.v1beta1; - -public interface EntryGroupOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1beta1.EntryGroup) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * 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; - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * 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; - * @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/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/EntryOrBuilder.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/EntryOrBuilder.java deleted file mode 100644 index d79090caf53c..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/EntryOrBuilder.java +++ /dev/null @@ -1,477 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/datacatalog.proto - -package com.google.cloud.datacatalog.v1beta1; - -public interface EntryOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1beta1.Entry) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Output only. 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.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Output only. 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.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/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/EntryType.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/EntryType.java deleted file mode 100644 index 80c7abf9d39e..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/EntryType.java +++ /dev/null @@ -1,194 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/datacatalog.proto - -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} - */ -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), - ; - - /** - *
-   * 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< - EntryType> 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 final 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/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ExportTaxonomiesRequest.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ExportTaxonomiesRequest.java deleted file mode 100644 index ccab4aa8a42d..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ExportTaxonomiesRequest.java +++ /dev/null @@ -1,1018 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/policytagmanagerserialization.proto - -package com.google.cloud.datacatalog.v1beta1; - -/** - *
- * Request message for
- * [ExportTaxonomies][google.cloud.datacatalog.v1beta1.PolicyTagManagerSerialization.ExportTaxonomies].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.ExportTaxonomiesRequest} - */ -public final class ExportTaxonomiesRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.ExportTaxonomiesRequest) - ExportTaxonomiesRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use ExportTaxonomiesRequest.newBuilder() to construct. - private ExportTaxonomiesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ExportTaxonomiesRequest() { - parent_ = ""; - taxonomies_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ExportTaxonomiesRequest(); - } - - 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - for (int i = 0; i < taxonomies_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ExportTaxonomiesRequestOrBuilder.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ExportTaxonomiesRequestOrBuilder.java deleted file mode 100644 index b00cdf6a3f7b..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ExportTaxonomiesRequestOrBuilder.java +++ /dev/null @@ -1,93 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/policytagmanagerserialization.proto - -package com.google.cloud.datacatalog.v1beta1; - -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/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ExportTaxonomiesResponse.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ExportTaxonomiesResponse.java deleted file mode 100644 index b11be2f740de..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ExportTaxonomiesResponse.java +++ /dev/null @@ -1,861 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/policytagmanagerserialization.proto - -package com.google.cloud.datacatalog.v1beta1; - -/** - *
- * Response message for
- * [ExportTaxonomies][google.cloud.datacatalog.v1beta1.PolicyTagManagerSerialization.ExportTaxonomies].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.ExportTaxonomiesResponse} - */ -public final class ExportTaxonomiesResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.ExportTaxonomiesResponse) - ExportTaxonomiesResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use ExportTaxonomiesResponse.newBuilder() to construct. - private ExportTaxonomiesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ExportTaxonomiesResponse() { - taxonomies_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ExportTaxonomiesResponse(); - } - - 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.GeneratedMessageV3.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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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.GeneratedMessageV3.alwaysUseFieldBuilders ? - getTaxonomiesFieldBuilder() : 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.RepeatedFieldBuilderV3< - 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 getTaxonomiesFieldBuilder().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 - 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 getTaxonomiesFieldBuilder().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 getTaxonomiesFieldBuilder().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 getTaxonomiesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datacatalog.v1beta1.SerializedTaxonomy, com.google.cloud.datacatalog.v1beta1.SerializedTaxonomy.Builder, com.google.cloud.datacatalog.v1beta1.SerializedTaxonomyOrBuilder> - getTaxonomiesFieldBuilder() { - if (taxonomiesBuilder_ == null) { - taxonomiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - 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_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ExportTaxonomiesResponseOrBuilder.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ExportTaxonomiesResponseOrBuilder.java deleted file mode 100644 index 698ced6d3a92..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ExportTaxonomiesResponseOrBuilder.java +++ /dev/null @@ -1,53 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/policytagmanagerserialization.proto - -package com.google.cloud.datacatalog.v1beta1; - -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/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/FieldType.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/FieldType.java deleted file mode 100644 index 3d487458ca33..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/FieldType.java +++ /dev/null @@ -1,2454 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/tags.proto - -package com.google.cloud.datacatalog.v1beta1; - -/** - * Protobuf type {@code google.cloud.datacatalog.v1beta1.FieldType} - */ -public final class FieldType extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.FieldType) - FieldTypeOrBuilder { -private static final long serialVersionUID = 0L; - // Use FieldType.newBuilder() to construct. - private FieldType(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private FieldType() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.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), - ; - - /** - *
-     * 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< - PrimitiveType> 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 final 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 - 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.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.FieldType.EnumType) - EnumTypeOrBuilder { - private static final long serialVersionUID = 0L; - // Use EnumType.newBuilder() to construct. - private EnumType(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private EnumType() { - allowedValues_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new EnumType(); - } - - 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.GeneratedMessageV3.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.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.FieldType.EnumType.EnumValue) - EnumValueOrBuilder { - private static final long serialVersionUID = 0L; - // Use EnumValue.newBuilder() to construct. - private EnumValue(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private EnumValue() { - displayName_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new EnumValue(); - } - - 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(displayName_)) { - com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(displayName_)) { - size += com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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 - 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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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.GeneratedMessageV3.alwaysUseFieldBuilders ? - getAllowedValuesFieldBuilder() : 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(allowedValues_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - 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 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 getAllowedValuesFieldBuilder().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 - 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 getAllowedValuesFieldBuilder().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 getAllowedValuesFieldBuilder().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 - getAllowedValuesBuilderList() { - return getAllowedValuesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - 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> - getAllowedValuesFieldBuilder() { - if (allowedValuesBuilder_ == null) { - allowedValuesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - 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_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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( - getEnumTypeFieldBuilder().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.SingleFieldBuilderV3< - 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 getEnumTypeFieldBuilder().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.SingleFieldBuilderV3< - com.google.cloud.datacatalog.v1beta1.FieldType.EnumType, com.google.cloud.datacatalog.v1beta1.FieldType.EnumType.Builder, com.google.cloud.datacatalog.v1beta1.FieldType.EnumTypeOrBuilder> - getEnumTypeFieldBuilder() { - if (enumTypeBuilder_ == null) { - if (!(typeDeclCase_ == 2)) { - typeDecl_ = com.google.cloud.datacatalog.v1beta1.FieldType.EnumType.getDefaultInstance(); - } - enumTypeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - 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_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/FieldTypeOrBuilder.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/FieldTypeOrBuilder.java deleted file mode 100644 index 5ea8650d6677..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/FieldTypeOrBuilder.java +++ /dev/null @@ -1,66 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/tags.proto - -package com.google.cloud.datacatalog.v1beta1; - -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/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/GcsFileSpec.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/GcsFileSpec.java deleted file mode 100644 index 89fc85696c07..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/GcsFileSpec.java +++ /dev/null @@ -1,889 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/gcs_fileset_spec.proto - -package com.google.cloud.datacatalog.v1beta1; - -/** - *
- * Specifications of a single file in Cloud Storage.
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.GcsFileSpec} - */ -public final class GcsFileSpec extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.GcsFileSpec) - GcsFileSpecOrBuilder { -private static final long serialVersionUID = 0L; - // Use GcsFileSpec.newBuilder() to construct. - private GcsFileSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GcsFileSpec() { - filePath_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GcsFileSpec(); - } - - 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.GeneratedMessageV3.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); - } - - 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 gcsTimestamps_ != null; - } - /** - *
-   * 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.GeneratedMessageV3.isStringEmpty(filePath_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, filePath_); - } - if (gcsTimestamps_ != null) { - 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.GeneratedMessageV3.isStringEmpty(filePath_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, filePath_); - } - if (gcsTimestamps_ != null) { - 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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @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_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.gcsTimestamps_ = gcsTimestampsBuilder_ == null - ? gcsTimestamps_ - : gcsTimestampsBuilder_.build(); - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.sizeBytes_ = sizeBytes_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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( - getGcsTimestampsFieldBuilder().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.SingleFieldBuilderV3< - 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); - } - 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 getGcsTimestampsFieldBuilder().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.SingleFieldBuilderV3< - com.google.cloud.datacatalog.v1beta1.SystemTimestamps, com.google.cloud.datacatalog.v1beta1.SystemTimestamps.Builder, com.google.cloud.datacatalog.v1beta1.SystemTimestampsOrBuilder> - getGcsTimestampsFieldBuilder() { - if (gcsTimestampsBuilder_ == null) { - gcsTimestampsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - 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; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/GcsFileSpecOrBuilder.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/GcsFileSpecOrBuilder.java deleted file mode 100644 index b0672ec554e3..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/GcsFileSpecOrBuilder.java +++ /dev/null @@ -1,66 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/gcs_fileset_spec.proto - -package com.google.cloud.datacatalog.v1beta1; - -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/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/GcsFilesetSpec.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/GcsFilesetSpec.java deleted file mode 100644 index e515e5210b6d..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/GcsFilesetSpec.java +++ /dev/null @@ -1,1474 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/gcs_fileset_spec.proto - -package com.google.cloud.datacatalog.v1beta1; - -/** - *
- * Describes a Cloud Storage fileset entry.
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.GcsFilesetSpec} - */ -public final class GcsFilesetSpec extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.GcsFilesetSpec) - GcsFilesetSpecOrBuilder { -private static final long serialVersionUID = 0L; - // Use GcsFilesetSpec.newBuilder() to construct. - private GcsFilesetSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GcsFilesetSpec() { - filePatterns_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - sampleGcsFileSpecs_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GcsFilesetSpec(); - } - - 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.GeneratedMessageV3.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/gsutil/addlhelp/WildcardNames)
-   * 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/gsutil/addlhelp/WildcardNames)
-   * 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/gsutil/addlhelp/WildcardNames)
-   * 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/gsutil/addlhelp/WildcardNames)
-   * 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.GeneratedMessageV3.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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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.GeneratedMessageV3.alwaysUseFieldBuilders ? - getSampleGcsFileSpecsFieldBuilder() : 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/gsutil/addlhelp/WildcardNames)
-     * 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/gsutil/addlhelp/WildcardNames)
-     * 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/gsutil/addlhelp/WildcardNames)
-     * 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/gsutil/addlhelp/WildcardNames)
-     * 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/gsutil/addlhelp/WildcardNames)
-     * 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/gsutil/addlhelp/WildcardNames)
-     * 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/gsutil/addlhelp/WildcardNames)
-     * 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/gsutil/addlhelp/WildcardNames)
-     * 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/gsutil/addlhelp/WildcardNames)
-     * 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.RepeatedFieldBuilderV3< - 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 getSampleGcsFileSpecsFieldBuilder().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 getSampleGcsFileSpecsFieldBuilder().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 getSampleGcsFileSpecsFieldBuilder().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 getSampleGcsFileSpecsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datacatalog.v1beta1.GcsFileSpec, com.google.cloud.datacatalog.v1beta1.GcsFileSpec.Builder, com.google.cloud.datacatalog.v1beta1.GcsFileSpecOrBuilder> - getSampleGcsFileSpecsFieldBuilder() { - if (sampleGcsFileSpecsBuilder_ == null) { - sampleGcsFileSpecsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - 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_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/GcsFilesetSpecOrBuilder.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/GcsFilesetSpecOrBuilder.java deleted file mode 100644 index 64f72a3c5fcf..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/GcsFilesetSpecOrBuilder.java +++ /dev/null @@ -1,207 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/gcs_fileset_spec.proto - -package com.google.cloud.datacatalog.v1beta1; - -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/gsutil/addlhelp/WildcardNames)
-   * 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/gsutil/addlhelp/WildcardNames)
-   * 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/gsutil/addlhelp/WildcardNames)
-   * 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/gsutil/addlhelp/WildcardNames)
-   * 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/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/GcsFilesetSpecOuterClass.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/GcsFilesetSpecOuterClass.java deleted file mode 100644 index 36a9d3c2e4be..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/GcsFilesetSpecOuterClass.java +++ /dev/null @@ -1,83 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/gcs_fileset_spec.proto - -package com.google.cloud.datacatalog.v1beta1; - -public final class GcsFilesetSpecOuterClass { - private 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.GeneratedMessageV3.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.GeneratedMessageV3.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\"\201\001\n\016GcsFilesetSpec\022\033\n\rfi" + - "le_patterns\030\001 \003(\tB\004\342A\001\002\022R\n\025sample_gcs_fi" + - "le_specs\030\002 \003(\0132-.google.cloud.datacatalo" + - "g.v1beta1.GcsFileSpecB\004\342A\001\003\"\222\001\n\013GcsFileS" + - "pec\022\027\n\tfile_path\030\001 \001(\tB\004\342A\001\002\022P\n\016gcs_time" + - "stamps\030\002 \001(\01322.google.cloud.datacatalog." + - "v1beta1.SystemTimestampsB\004\342A\001\003\022\030\n\nsize_b" + - "ytes\030\004 \001(\003B\004\342A\001\003B\337\001\n$com.google.cloud.da" + - "tacatalog.v1beta1P\001ZFcloud.google.com/go" + - "/datacatalog/apiv1beta1/datacatalogpb;da" + - "tacatalogpb\370\001\001\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.api.FieldBehaviorProto.getDescriptor(), - com.google.cloud.datacatalog.v1beta1.Timestamps.getDescriptor(), - }); - internal_static_google_cloud_datacatalog_v1beta1_GcsFilesetSpec_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_datacatalog_v1beta1_GcsFilesetSpec_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1beta1_GcsFilesetSpec_descriptor, - new java.lang.String[] { "FilePatterns", "SampleGcsFileSpecs", }); - internal_static_google_cloud_datacatalog_v1beta1_GcsFileSpec_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_datacatalog_v1beta1_GcsFileSpec_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1beta1_GcsFileSpec_descriptor, - new java.lang.String[] { "FilePath", "GcsTimestamps", "SizeBytes", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.cloud.datacatalog.v1beta1.Timestamps.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/GetEntryGroupRequest.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/GetEntryGroupRequest.java deleted file mode 100644 index a5bd68db81da..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/GetEntryGroupRequest.java +++ /dev/null @@ -1,815 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/datacatalog.proto - -package com.google.cloud.datacatalog.v1beta1; - -/** - *
- * Request message for
- * [GetEntryGroup][google.cloud.datacatalog.v1beta1.DataCatalog.GetEntryGroup].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.GetEntryGroupRequest} - */ -public final class GetEntryGroupRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.GetEntryGroupRequest) - GetEntryGroupRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use GetEntryGroupRequest.newBuilder() to construct. - private GetEntryGroupRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetEntryGroupRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetEntryGroupRequest(); - } - - 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.GeneratedMessageV3.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); - } - - 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 readMask_ != null; - } - /** - *
-   * 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.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (readMask_ != null) { - 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.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (readMask_ != null) { - 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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @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_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.readMask_ = readMaskBuilder_ == null - ? readMask_ - : readMaskBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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( - getReadMaskFieldBuilder().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.SingleFieldBuilderV3< - 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); - } - 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 getReadMaskFieldBuilder().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.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> - getReadMaskFieldBuilder() { - if (readMaskBuilder_ == null) { - readMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( - getReadMask(), - getParentForChildren(), - isClean()); - readMask_ = null; - } - return readMaskBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/GetEntryGroupRequestOrBuilder.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/GetEntryGroupRequestOrBuilder.java deleted file mode 100644 index 7f43e9029060..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/GetEntryGroupRequestOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/datacatalog.proto - -package com.google.cloud.datacatalog.v1beta1; - -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/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/GetEntryRequest.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/GetEntryRequest.java deleted file mode 100644 index 7be6137b57c8..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/GetEntryRequest.java +++ /dev/null @@ -1,593 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/datacatalog.proto - -package com.google.cloud.datacatalog.v1beta1; - -/** - *
- * Request message for
- * [GetEntry][google.cloud.datacatalog.v1beta1.DataCatalog.GetEntry].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.GetEntryRequest} - */ -public final class GetEntryRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.GetEntryRequest) - GetEntryRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use GetEntryRequest.newBuilder() to construct. - private GetEntryRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetEntryRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetEntryRequest(); - } - - 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.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 clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/GetEntryRequestOrBuilder.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/GetEntryRequestOrBuilder.java deleted file mode 100644 index 998a7ecea3dc..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/GetEntryRequestOrBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/datacatalog.proto - -package com.google.cloud.datacatalog.v1beta1; - -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/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/GetPolicyTagRequest.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/GetPolicyTagRequest.java deleted file mode 100644 index ed2bcc0b541a..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/GetPolicyTagRequest.java +++ /dev/null @@ -1,579 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/policytagmanager.proto - -package com.google.cloud.datacatalog.v1beta1; - -/** - *
- * Request message for
- * [GetPolicyTag][google.cloud.datacatalog.v1beta1.PolicyTagManager.GetPolicyTag].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.GetPolicyTagRequest} - */ -public final class GetPolicyTagRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.GetPolicyTagRequest) - GetPolicyTagRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use GetPolicyTagRequest.newBuilder() to construct. - private GetPolicyTagRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetPolicyTagRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetPolicyTagRequest(); - } - - 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.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 clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/GetPolicyTagRequestOrBuilder.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/GetPolicyTagRequestOrBuilder.java deleted file mode 100644 index 5084d5b4e2a9..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/GetPolicyTagRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/policytagmanager.proto - -package com.google.cloud.datacatalog.v1beta1; - -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/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/GetTagTemplateRequest.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/GetTagTemplateRequest.java deleted file mode 100644 index 1044874ce461..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/GetTagTemplateRequest.java +++ /dev/null @@ -1,593 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/datacatalog.proto - -package com.google.cloud.datacatalog.v1beta1; - -/** - *
- * Request message for
- * [GetTagTemplate][google.cloud.datacatalog.v1beta1.DataCatalog.GetTagTemplate].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.GetTagTemplateRequest} - */ -public final class GetTagTemplateRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.GetTagTemplateRequest) - GetTagTemplateRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use GetTagTemplateRequest.newBuilder() to construct. - private GetTagTemplateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetTagTemplateRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetTagTemplateRequest(); - } - - 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.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 clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/GetTagTemplateRequestOrBuilder.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/GetTagTemplateRequestOrBuilder.java deleted file mode 100644 index 168dcd1665dd..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/GetTagTemplateRequestOrBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/datacatalog.proto - -package com.google.cloud.datacatalog.v1beta1; - -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/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/GetTaxonomyRequest.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/GetTaxonomyRequest.java deleted file mode 100644 index e40ecc3d4c81..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/GetTaxonomyRequest.java +++ /dev/null @@ -1,579 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/policytagmanager.proto - -package com.google.cloud.datacatalog.v1beta1; - -/** - *
- * Request message for
- * [GetTaxonomy][google.cloud.datacatalog.v1beta1.PolicyTagManager.GetTaxonomy].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.GetTaxonomyRequest} - */ -public final class GetTaxonomyRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.GetTaxonomyRequest) - GetTaxonomyRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use GetTaxonomyRequest.newBuilder() to construct. - private GetTaxonomyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetTaxonomyRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetTaxonomyRequest(); - } - - 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.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 clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/GetTaxonomyRequestOrBuilder.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/GetTaxonomyRequestOrBuilder.java deleted file mode 100644 index 583f9af7456e..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/GetTaxonomyRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/policytagmanager.proto - -package com.google.cloud.datacatalog.v1beta1; - -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/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ImportTaxonomiesRequest.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ImportTaxonomiesRequest.java deleted file mode 100644 index 3efb7e4f0458..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ImportTaxonomiesRequest.java +++ /dev/null @@ -1,917 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/policytagmanagerserialization.proto - -package com.google.cloud.datacatalog.v1beta1; - -/** - *
- * Request message for
- * [ImportTaxonomies][google.cloud.datacatalog.v1beta1.PolicyTagManagerSerialization.ImportTaxonomies].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.ImportTaxonomiesRequest} - */ -public final class ImportTaxonomiesRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.ImportTaxonomiesRequest) - ImportTaxonomiesRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use ImportTaxonomiesRequest.newBuilder() to construct. - private ImportTaxonomiesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ImportTaxonomiesRequest() { - parent_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ImportTaxonomiesRequest(); - } - - 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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( - getInlineSourceFieldBuilder().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.SingleFieldBuilderV3< - 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 getInlineSourceFieldBuilder().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.SingleFieldBuilderV3< - com.google.cloud.datacatalog.v1beta1.InlineSource, com.google.cloud.datacatalog.v1beta1.InlineSource.Builder, com.google.cloud.datacatalog.v1beta1.InlineSourceOrBuilder> - getInlineSourceFieldBuilder() { - if (inlineSourceBuilder_ == null) { - if (!(sourceCase_ == 2)) { - source_ = com.google.cloud.datacatalog.v1beta1.InlineSource.getDefaultInstance(); - } - inlineSourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - 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_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ImportTaxonomiesRequestOrBuilder.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ImportTaxonomiesRequestOrBuilder.java deleted file mode 100644 index ed7611c26e53..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ImportTaxonomiesRequestOrBuilder.java +++ /dev/null @@ -1,60 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/policytagmanagerserialization.proto - -package com.google.cloud.datacatalog.v1beta1; - -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/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ImportTaxonomiesResponse.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ImportTaxonomiesResponse.java deleted file mode 100644 index abaad39654db..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ImportTaxonomiesResponse.java +++ /dev/null @@ -1,861 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/policytagmanagerserialization.proto - -package com.google.cloud.datacatalog.v1beta1; - -/** - *
- * Response message for
- * [ImportTaxonomies][google.cloud.datacatalog.v1beta1.PolicyTagManagerSerialization.ImportTaxonomies].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.ImportTaxonomiesResponse} - */ -public final class ImportTaxonomiesResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.ImportTaxonomiesResponse) - ImportTaxonomiesResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use ImportTaxonomiesResponse.newBuilder() to construct. - private ImportTaxonomiesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ImportTaxonomiesResponse() { - taxonomies_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ImportTaxonomiesResponse(); - } - - 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.GeneratedMessageV3.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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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.GeneratedMessageV3.alwaysUseFieldBuilders ? - getTaxonomiesFieldBuilder() : 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.RepeatedFieldBuilderV3< - 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 getTaxonomiesFieldBuilder().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 getTaxonomiesFieldBuilder().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 getTaxonomiesFieldBuilder().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 getTaxonomiesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datacatalog.v1beta1.Taxonomy, com.google.cloud.datacatalog.v1beta1.Taxonomy.Builder, com.google.cloud.datacatalog.v1beta1.TaxonomyOrBuilder> - getTaxonomiesFieldBuilder() { - if (taxonomiesBuilder_ == null) { - taxonomiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - 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_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ImportTaxonomiesResponseOrBuilder.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ImportTaxonomiesResponseOrBuilder.java deleted file mode 100644 index 7d85eec1f9ff..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ImportTaxonomiesResponseOrBuilder.java +++ /dev/null @@ -1,53 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/policytagmanagerserialization.proto - -package com.google.cloud.datacatalog.v1beta1; - -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/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/InlineSource.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/InlineSource.java deleted file mode 100644 index 76adc39ec6bd..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/InlineSource.java +++ /dev/null @@ -1,859 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/policytagmanagerserialization.proto - -package com.google.cloud.datacatalog.v1beta1; - -/** - *
- * Inline source used for taxonomies import.
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.InlineSource} - */ -public final class InlineSource extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.InlineSource) - InlineSourceOrBuilder { -private static final long serialVersionUID = 0L; - // Use InlineSource.newBuilder() to construct. - private InlineSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private InlineSource() { - taxonomies_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new InlineSource(); - } - - 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.GeneratedMessageV3.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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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.GeneratedMessageV3.alwaysUseFieldBuilders ? - getTaxonomiesFieldBuilder() : 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.RepeatedFieldBuilderV3< - 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 getTaxonomiesFieldBuilder().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 - 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 getTaxonomiesFieldBuilder().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 getTaxonomiesFieldBuilder().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 getTaxonomiesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datacatalog.v1beta1.SerializedTaxonomy, com.google.cloud.datacatalog.v1beta1.SerializedTaxonomy.Builder, com.google.cloud.datacatalog.v1beta1.SerializedTaxonomyOrBuilder> - getTaxonomiesFieldBuilder() { - if (taxonomiesBuilder_ == null) { - taxonomiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - 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_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/InlineSourceOrBuilder.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/InlineSourceOrBuilder.java deleted file mode 100644 index 5aafff61ceb7..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/InlineSourceOrBuilder.java +++ /dev/null @@ -1,53 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/policytagmanagerserialization.proto - -package com.google.cloud.datacatalog.v1beta1; - -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/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/IntegratedSystem.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/IntegratedSystem.java deleted file mode 100644 index aeb2fb2583a6..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/IntegratedSystem.java +++ /dev/null @@ -1,151 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/common.proto - -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} - */ -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), - ; - - /** - *
-   * 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< - IntegratedSystem> 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 final 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/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListEntriesRequest.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListEntriesRequest.java deleted file mode 100644 index 9db853b2b46b..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListEntriesRequest.java +++ /dev/null @@ -1,1122 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/datacatalog.proto - -package com.google.cloud.datacatalog.v1beta1; - -/** - *
- * Request message for
- * [ListEntries][google.cloud.datacatalog.v1beta1.DataCatalog.ListEntries].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.ListEntriesRequest} - */ -public final class ListEntriesRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.ListEntriesRequest) - ListEntriesRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use ListEntriesRequest.newBuilder() to construct. - private ListEntriesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ListEntriesRequest() { - parent_ = ""; - pageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ListEntriesRequest(); - } - - 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.GeneratedMessageV3.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); - } - - 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 readMask_ != null; - } - /** - *
-   * 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.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - if (pageSize_ != 0) { - output.writeInt32(2, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); - } - if (readMask_ != null) { - 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.GeneratedMessageV3.isStringEmpty(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); - } - if (readMask_ != null) { - 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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @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_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.readMask_ = readMaskBuilder_ == null - ? readMask_ - : readMaskBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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( - getReadMaskFieldBuilder().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.SingleFieldBuilderV3< - 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); - } - 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 getReadMaskFieldBuilder().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.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> - getReadMaskFieldBuilder() { - if (readMaskBuilder_ == null) { - readMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( - getReadMask(), - getParentForChildren(), - isClean()); - readMask_ = null; - } - return readMaskBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListEntriesRequestOrBuilder.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListEntriesRequestOrBuilder.java deleted file mode 100644 index 72a7fc7d82e6..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListEntriesRequestOrBuilder.java +++ /dev/null @@ -1,104 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/datacatalog.proto - -package com.google.cloud.datacatalog.v1beta1; - -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/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListEntriesResponse.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListEntriesResponse.java deleted file mode 100644 index 9459b761820a..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListEntriesResponse.java +++ /dev/null @@ -1,1032 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/datacatalog.proto - -package com.google.cloud.datacatalog.v1beta1; - -/** - *
- * Response message for
- * [ListEntries][google.cloud.datacatalog.v1beta1.DataCatalog.ListEntries].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.ListEntriesResponse} - */ -public final class ListEntriesResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.ListEntriesResponse) - ListEntriesResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use ListEntriesResponse.newBuilder() to construct. - private ListEntriesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ListEntriesResponse() { - entries_ = java.util.Collections.emptyList(); - nextPageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ListEntriesResponse(); - } - - 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < entries_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, entries_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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.GeneratedMessageV3.alwaysUseFieldBuilders ? - getEntriesFieldBuilder() : 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.RepeatedFieldBuilderV3< - 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 getEntriesFieldBuilder().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 getEntriesFieldBuilder().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 getEntriesFieldBuilder().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 getEntriesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datacatalog.v1beta1.Entry, com.google.cloud.datacatalog.v1beta1.Entry.Builder, com.google.cloud.datacatalog.v1beta1.EntryOrBuilder> - getEntriesFieldBuilder() { - if (entriesBuilder_ == null) { - entriesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - 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; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListEntriesResponseOrBuilder.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListEntriesResponseOrBuilder.java deleted file mode 100644 index 4c5306f4cd91..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListEntriesResponseOrBuilder.java +++ /dev/null @@ -1,75 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/datacatalog.proto - -package com.google.cloud.datacatalog.v1beta1; - -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/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListEntryGroupsRequest.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListEntryGroupsRequest.java deleted file mode 100644 index 8e592b40522b..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListEntryGroupsRequest.java +++ /dev/null @@ -1,857 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/datacatalog.proto - -package com.google.cloud.datacatalog.v1beta1; - -/** - *
- * Request message for
- * [ListEntryGroups][google.cloud.datacatalog.v1beta1.DataCatalog.ListEntryGroups].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.ListEntryGroupsRequest} - */ -public final class ListEntryGroupsRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.ListEntryGroupsRequest) - ListEntryGroupsRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use ListEntryGroupsRequest.newBuilder() to construct. - private ListEntryGroupsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ListEntryGroupsRequest() { - parent_ = ""; - pageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ListEntryGroupsRequest(); - } - - 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - if (pageSize_ != 0) { - output.writeInt32(2, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - parent_ = ""; - pageSize_ = 0; - pageToken_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.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 clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListEntryGroupsRequestOrBuilder.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListEntryGroupsRequestOrBuilder.java deleted file mode 100644 index c8432264f101..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListEntryGroupsRequestOrBuilder.java +++ /dev/null @@ -1,68 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/datacatalog.proto - -package com.google.cloud.datacatalog.v1beta1; - -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/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListEntryGroupsResponse.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListEntryGroupsResponse.java deleted file mode 100644 index 53b49d33d5c8..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListEntryGroupsResponse.java +++ /dev/null @@ -1,1032 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/datacatalog.proto - -package com.google.cloud.datacatalog.v1beta1; - -/** - *
- * Response message for
- * [ListEntryGroups][google.cloud.datacatalog.v1beta1.DataCatalog.ListEntryGroups].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.ListEntryGroupsResponse} - */ -public final class ListEntryGroupsResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.ListEntryGroupsResponse) - ListEntryGroupsResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use ListEntryGroupsResponse.newBuilder() to construct. - private ListEntryGroupsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ListEntryGroupsResponse() { - entryGroups_ = java.util.Collections.emptyList(); - nextPageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ListEntryGroupsResponse(); - } - - 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < entryGroups_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, entryGroups_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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.GeneratedMessageV3.alwaysUseFieldBuilders ? - getEntryGroupsFieldBuilder() : 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.RepeatedFieldBuilderV3< - 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 getEntryGroupsFieldBuilder().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 getEntryGroupsFieldBuilder().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 getEntryGroupsFieldBuilder().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 getEntryGroupsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datacatalog.v1beta1.EntryGroup, com.google.cloud.datacatalog.v1beta1.EntryGroup.Builder, com.google.cloud.datacatalog.v1beta1.EntryGroupOrBuilder> - getEntryGroupsFieldBuilder() { - if (entryGroupsBuilder_ == null) { - entryGroupsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - 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; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListEntryGroupsResponseOrBuilder.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListEntryGroupsResponseOrBuilder.java deleted file mode 100644 index 4f9c387df545..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListEntryGroupsResponseOrBuilder.java +++ /dev/null @@ -1,75 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/datacatalog.proto - -package com.google.cloud.datacatalog.v1beta1; - -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/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListPolicyTagsRequest.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListPolicyTagsRequest.java deleted file mode 100644 index d73c84a64582..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListPolicyTagsRequest.java +++ /dev/null @@ -1,836 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/policytagmanager.proto - -package com.google.cloud.datacatalog.v1beta1; - -/** - *
- * Request message for
- * [ListPolicyTags][google.cloud.datacatalog.v1beta1.PolicyTagManager.ListPolicyTags].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.ListPolicyTagsRequest} - */ -public final class ListPolicyTagsRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.ListPolicyTagsRequest) - ListPolicyTagsRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use ListPolicyTagsRequest.newBuilder() to construct. - private ListPolicyTagsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ListPolicyTagsRequest() { - parent_ = ""; - pageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ListPolicyTagsRequest(); - } - - 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - if (pageSize_ != 0) { - output.writeInt32(2, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - parent_ = ""; - pageSize_ = 0; - pageToken_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.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 clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListPolicyTagsRequestOrBuilder.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListPolicyTagsRequestOrBuilder.java deleted file mode 100644 index 46b8a8452e17..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListPolicyTagsRequestOrBuilder.java +++ /dev/null @@ -1,62 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/policytagmanager.proto - -package com.google.cloud.datacatalog.v1beta1; - -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/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListPolicyTagsResponse.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListPolicyTagsResponse.java deleted file mode 100644 index ef0bf6ad232a..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListPolicyTagsResponse.java +++ /dev/null @@ -1,1032 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/policytagmanager.proto - -package com.google.cloud.datacatalog.v1beta1; - -/** - *
- * Response message for
- * [ListPolicyTags][google.cloud.datacatalog.v1beta1.PolicyTagManager.ListPolicyTags].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.ListPolicyTagsResponse} - */ -public final class ListPolicyTagsResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.ListPolicyTagsResponse) - ListPolicyTagsResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use ListPolicyTagsResponse.newBuilder() to construct. - private ListPolicyTagsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ListPolicyTagsResponse() { - policyTags_ = java.util.Collections.emptyList(); - nextPageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ListPolicyTagsResponse(); - } - - 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < policyTags_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, policyTags_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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.GeneratedMessageV3.alwaysUseFieldBuilders ? - getPolicyTagsFieldBuilder() : 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.RepeatedFieldBuilderV3< - 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 getPolicyTagsFieldBuilder().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 getPolicyTagsFieldBuilder().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 getPolicyTagsFieldBuilder().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 getPolicyTagsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datacatalog.v1beta1.PolicyTag, com.google.cloud.datacatalog.v1beta1.PolicyTag.Builder, com.google.cloud.datacatalog.v1beta1.PolicyTagOrBuilder> - getPolicyTagsFieldBuilder() { - if (policyTagsBuilder_ == null) { - policyTagsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - 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; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListPolicyTagsResponseOrBuilder.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListPolicyTagsResponseOrBuilder.java deleted file mode 100644 index d9f7668e94b2..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListPolicyTagsResponseOrBuilder.java +++ /dev/null @@ -1,75 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/policytagmanager.proto - -package com.google.cloud.datacatalog.v1beta1; - -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/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListTagsRequest.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListTagsRequest.java deleted file mode 100644 index 67aa168b4bc9..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListTagsRequest.java +++ /dev/null @@ -1,881 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/datacatalog.proto - -package com.google.cloud.datacatalog.v1beta1; - -/** - *
- * Request message for
- * [ListTags][google.cloud.datacatalog.v1beta1.DataCatalog.ListTags].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.ListTagsRequest} - */ -public final class ListTagsRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.ListTagsRequest) - ListTagsRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use ListTagsRequest.newBuilder() to construct. - private ListTagsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ListTagsRequest() { - parent_ = ""; - pageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ListTagsRequest(); - } - - 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - if (pageSize_ != 0) { - output.writeInt32(2, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - parent_ = ""; - pageSize_ = 0; - pageToken_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.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 clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListTagsRequestOrBuilder.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListTagsRequestOrBuilder.java deleted file mode 100644 index e3f69523c171..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListTagsRequestOrBuilder.java +++ /dev/null @@ -1,75 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/datacatalog.proto - -package com.google.cloud.datacatalog.v1beta1; - -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/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListTagsResponse.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListTagsResponse.java deleted file mode 100644 index c226689f18ec..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListTagsResponse.java +++ /dev/null @@ -1,1032 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/datacatalog.proto - -package com.google.cloud.datacatalog.v1beta1; - -/** - *
- * Response message for
- * [ListTags][google.cloud.datacatalog.v1beta1.DataCatalog.ListTags].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.ListTagsResponse} - */ -public final class ListTagsResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.ListTagsResponse) - ListTagsResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use ListTagsResponse.newBuilder() to construct. - private ListTagsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ListTagsResponse() { - tags_ = java.util.Collections.emptyList(); - nextPageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ListTagsResponse(); - } - - 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < tags_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, tags_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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.GeneratedMessageV3.alwaysUseFieldBuilders ? - getTagsFieldBuilder() : 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.RepeatedFieldBuilderV3< - 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 getTagsFieldBuilder().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 getTagsFieldBuilder().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 getTagsFieldBuilder().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 getTagsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datacatalog.v1beta1.Tag, com.google.cloud.datacatalog.v1beta1.Tag.Builder, com.google.cloud.datacatalog.v1beta1.TagOrBuilder> - getTagsFieldBuilder() { - if (tagsBuilder_ == null) { - tagsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - 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; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListTagsResponseOrBuilder.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListTagsResponseOrBuilder.java deleted file mode 100644 index 8acfa22dd959..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListTagsResponseOrBuilder.java +++ /dev/null @@ -1,75 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/datacatalog.proto - -package com.google.cloud.datacatalog.v1beta1; - -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/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListTaxonomiesRequest.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListTaxonomiesRequest.java deleted file mode 100644 index 92730bb24627..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListTaxonomiesRequest.java +++ /dev/null @@ -1,1007 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/policytagmanager.proto - -package com.google.cloud.datacatalog.v1beta1; - -/** - *
- * Request message for
- * [ListTaxonomies][google.cloud.datacatalog.v1beta1.PolicyTagManager.ListTaxonomies].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.ListTaxonomiesRequest} - */ -public final class ListTaxonomiesRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.ListTaxonomiesRequest) - ListTaxonomiesRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use ListTaxonomiesRequest.newBuilder() to construct. - private ListTaxonomiesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ListTaxonomiesRequest() { - parent_ = ""; - pageToken_ = ""; - filter_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ListTaxonomiesRequest(); - } - - 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - if (pageSize_ != 0) { - output.writeInt32(2, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListTaxonomiesRequestOrBuilder.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListTaxonomiesRequestOrBuilder.java deleted file mode 100644 index 335047da89bb..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListTaxonomiesRequestOrBuilder.java +++ /dev/null @@ -1,84 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/policytagmanager.proto - -package com.google.cloud.datacatalog.v1beta1; - -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/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListTaxonomiesResponse.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListTaxonomiesResponse.java deleted file mode 100644 index c10d5a1ce103..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListTaxonomiesResponse.java +++ /dev/null @@ -1,1032 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/policytagmanager.proto - -package com.google.cloud.datacatalog.v1beta1; - -/** - *
- * Response message for
- * [ListTaxonomies][google.cloud.datacatalog.v1beta1.PolicyTagManager.ListTaxonomies].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.ListTaxonomiesResponse} - */ -public final class ListTaxonomiesResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.ListTaxonomiesResponse) - ListTaxonomiesResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use ListTaxonomiesResponse.newBuilder() to construct. - private ListTaxonomiesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ListTaxonomiesResponse() { - taxonomies_ = java.util.Collections.emptyList(); - nextPageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ListTaxonomiesResponse(); - } - - 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < taxonomies_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, taxonomies_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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.GeneratedMessageV3.alwaysUseFieldBuilders ? - getTaxonomiesFieldBuilder() : 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.RepeatedFieldBuilderV3< - 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 getTaxonomiesFieldBuilder().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 getTaxonomiesFieldBuilder().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 getTaxonomiesFieldBuilder().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 getTaxonomiesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datacatalog.v1beta1.Taxonomy, com.google.cloud.datacatalog.v1beta1.Taxonomy.Builder, com.google.cloud.datacatalog.v1beta1.TaxonomyOrBuilder> - getTaxonomiesFieldBuilder() { - if (taxonomiesBuilder_ == null) { - taxonomiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - 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; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListTaxonomiesResponseOrBuilder.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListTaxonomiesResponseOrBuilder.java deleted file mode 100644 index 09327e227037..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListTaxonomiesResponseOrBuilder.java +++ /dev/null @@ -1,75 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/policytagmanager.proto - -package com.google.cloud.datacatalog.v1beta1; - -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/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/LookupEntryRequest.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/LookupEntryRequest.java deleted file mode 100644 index 2d46e5e138b8..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/LookupEntryRequest.java +++ /dev/null @@ -1,1079 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/datacatalog.proto - -package com.google.cloud.datacatalog.v1beta1; - -/** - *
- * Request message for
- * [LookupEntry][google.cloud.datacatalog.v1beta1.DataCatalog.LookupEntry].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.LookupEntryRequest} - */ -public final class LookupEntryRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.LookupEntryRequest) - LookupEntryRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use LookupEntryRequest.newBuilder() to construct. - private LookupEntryRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private LookupEntryRequest() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.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 standard SQL 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 standard SQL 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 standard SQL 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.GeneratedMessageV3.writeString(output, 1, targetName_); - } - if (targetNameCase_ == 3) { - com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.computeStringSize(1, targetName_); - } - if (targetNameCase_ == 3) { - size += com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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 standard SQL 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 standard SQL 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 standard SQL 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 standard SQL 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 standard SQL 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 standard SQL 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; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/LookupEntryRequestOrBuilder.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/LookupEntryRequestOrBuilder.java deleted file mode 100644 index 3746abffc091..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/LookupEntryRequestOrBuilder.java +++ /dev/null @@ -1,126 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/datacatalog.proto - -package com.google.cloud.datacatalog.v1beta1; - -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 standard SQL 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 standard SQL 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 standard SQL 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/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ManagingSystem.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ManagingSystem.java deleted file mode 100644 index d0cef1365a6d..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ManagingSystem.java +++ /dev/null @@ -1,151 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/common.proto - -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} - */ -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), - ; - - /** - *
-   * 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< - ManagingSystem> 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 final 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/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/PolicyTag.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/PolicyTag.java deleted file mode 100644 index 4cab921c60d3..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/PolicyTag.java +++ /dev/null @@ -1,1400 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/policytagmanager.proto - -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} - */ -public final class PolicyTag extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.PolicyTag) - PolicyTagOrBuilder { -private static final long serialVersionUID = 0L; - // Use PolicyTag.newBuilder() to construct. - private PolicyTag(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private PolicyTag() { - name_ = ""; - displayName_ = ""; - description_ = ""; - parentPolicyTag_ = ""; - childPolicyTags_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new PolicyTag(); - } - - 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parentPolicyTag_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, parentPolicyTag_); - } - for (int i = 0; i < childPolicyTags_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parentPolicyTag_)) { - size += com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/PolicyTagManagerProto.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/PolicyTagManagerProto.java deleted file mode 100644 index f1f9256766f9..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/PolicyTagManagerProto.java +++ /dev/null @@ -1,379 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/policytagmanager.proto - -package com.google.cloud.datacatalog.v1beta1; - -public final class PolicyTagManagerProto { - private 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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 = { - "\n7google/cloud/datacatalog/v1beta1/polic" + - "ytagmanager.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.p" + - "roto\032\033google/protobuf/empty.proto\032 googl" + - "e/protobuf/field_mask.proto\"\206\005\n\010Taxonomy" + - "\022\022\n\004name\030\001 \001(\tB\004\342A\001\010\022\032\n\014display_name\030\002 \001" + - "(\tB\004\342A\001\002\022\031\n\013description\030\003 \001(\tB\004\342A\001\001\022\036\n\020p" + - "olicy_tag_count\030\004 \001(\005B\004\342A\001\003\022U\n\023taxonomy_" + - "timestamps\030\005 \001(\01322.google.cloud.datacata" + - "log.v1beta1.SystemTimestampsB\004\342A\001\003\022[\n\026ac" + - "tivated_policy_types\030\006 \003(\01625.google.clou" + - "d.datacatalog.v1beta1.Taxonomy.PolicyTyp" + - "eB\004\342A\001\001\022I\n\007service\030\007 \001(\01322.google.cloud." + - "datacatalog.v1beta1.Taxonomy.ServiceB\004\342A" + - "\001\003\032[\n\007Service\022>\n\004name\030\001 \001(\01620.google.clo" + - "ud.datacatalog.v1beta1.ManagingSystem\022\020\n" + - "\010identity\030\002 \001(\t\"J\n\nPolicyType\022\033\n\027POLICY_" + - "TYPE_UNSPECIFIED\020\000\022\037\n\033FINE_GRAINED_ACCES" + - "S_CONTROL\020\001:g\352Ad\n#datacatalog.googleapis" + - ".com/Taxonomy\022=projects/{project}/locati" + - "ons/{location}/taxonomies/{taxonomy}\"\217\002\n" + - "\tPolicyTag\022\022\n\004name\030\001 \001(\tB\004\342A\001\010\022\032\n\014displa" + - "y_name\030\002 \001(\tB\004\342A\001\002\022\023\n\013description\030\003 \001(\t\022" + - "\031\n\021parent_policy_tag\030\004 \001(\t\022\037\n\021child_poli" + - "cy_tags\030\005 \003(\tB\004\342A\001\003:\200\001\352A}\n$datacatalog.g" + - "oogleapis.com/PolicyTag\022Uprojects/{proje" + - "ct}/locations/{location}/taxonomies/{tax" + - "onomy}/policyTags/{policy_tag}\"\223\001\n\025Creat" + - "eTaxonomyRequest\022<\n\006parent\030\001 \001(\tB,\342A\001\002\372A" + - "%\022#datacatalog.googleapis.com/Taxonomy\022<" + - "\n\010taxonomy\030\002 \001(\0132*.google.cloud.datacata" + - "log.v1beta1.Taxonomy\"S\n\025DeleteTaxonomyRe" + - "quest\022:\n\004name\030\001 \001(\tB,\342A\001\002\372A%\n#datacatalo" + - "g.googleapis.com/Taxonomy\"\206\001\n\025UpdateTaxo" + - "nomyRequest\022<\n\010taxonomy\030\001 \001(\0132*.google.c" + - "loud.datacatalog.v1beta1.Taxonomy\022/\n\013upd" + - "ate_mask\030\002 \001(\0132\032.google.protobuf.FieldMa" + - "sk\"\214\001\n\025ListTaxonomiesRequest\022<\n\006parent\030\001" + - " \001(\tB,\342A\001\002\372A%\022#datacatalog.googleapis.co" + - "m/Taxonomy\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_to" + - "ken\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\"q\n\026ListTaxonom" + - "iesResponse\022>\n\ntaxonomies\030\001 \003(\0132*.google" + - ".cloud.datacatalog.v1beta1.Taxonomy\022\027\n\017n" + - "ext_page_token\030\002 \001(\t\"P\n\022GetTaxonomyReque" + - "st\022:\n\004name\030\001 \001(\tB,\342A\001\002\372A%\n#datacatalog.g" + - "oogleapis.com/Taxonomy\"\230\001\n\026CreatePolicyT" + - "agRequest\022=\n\006parent\030\001 \001(\tB-\342A\001\002\372A&\022$data" + - "catalog.googleapis.com/PolicyTag\022?\n\npoli" + - "cy_tag\030\002 \001(\0132+.google.cloud.datacatalog." + - "v1beta1.PolicyTag\"U\n\026DeletePolicyTagRequ" + - "est\022;\n\004name\030\001 \001(\tB-\342A\001\002\372A&\n$datacatalog." + - "googleapis.com/PolicyTag\"\212\001\n\026UpdatePolic" + - "yTagRequest\022?\n\npolicy_tag\030\001 \001(\0132+.google" + - ".cloud.datacatalog.v1beta1.PolicyTag\022/\n\013" + - "update_mask\030\002 \001(\0132\032.google.protobuf.Fiel" + - "dMask\"}\n\025ListPolicyTagsRequest\022=\n\006parent" + - "\030\001 \001(\tB-\342A\001\002\372A&\022$datacatalog.googleapis." + - "com/PolicyTag\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage" + - "_token\030\003 \001(\t\"s\n\026ListPolicyTagsResponse\022@" + - "\n\013policy_tags\030\001 \003(\0132+.google.cloud.datac" + - "atalog.v1beta1.PolicyTag\022\027\n\017next_page_to" + - "ken\030\002 \001(\t\"R\n\023GetPolicyTagRequest\022;\n\004name" + - "\030\001 \001(\tB-\342A\001\002\372A&\n$datacatalog.googleapis." + - "com/PolicyTag2\345\026\n\020PolicyTagManager\022\316\001\n\016C" + - "reateTaxonomy\0227.google.cloud.datacatalog" + - ".v1beta1.CreateTaxonomyRequest\032*.google." + - "cloud.datacatalog.v1beta1.Taxonomy\"W\332A\017p" + - "arent,taxonomy\202\323\344\223\002?\"3/v1beta1/{parent=p" + - "rojects/*/locations/*}/taxonomies:\010taxon" + - "omy\022\245\001\n\016DeleteTaxonomy\0227.google.cloud.da" + - "tacatalog.v1beta1.DeleteTaxonomyRequest\032" + - "\026.google.protobuf.Empty\"B\332A\004name\202\323\344\223\0025*3" + - "/v1beta1/{name=projects/*/locations/*/ta" + - "xonomies/*}\022\320\001\n\016UpdateTaxonomy\0227.google." + - "cloud.datacatalog.v1beta1.UpdateTaxonomy" + - "Request\032*.google.cloud.datacatalog.v1bet" + - "a1.Taxonomy\"Y\332A\010taxonomy\202\323\344\223\002H2\n\ntaxonomies\030\001 " + - "\003(\0132*.google.cloud.datacatalog.v1beta1.T" + - "axonomy\"\311\001\n\027ExportTaxonomiesRequest\022<\n\006p" + - "arent\030\001 \001(\tB,\342A\001\002\372A%\022#datacatalog.google" + - "apis.com/Taxonomy\022@\n\ntaxonomies\030\002 \003(\tB,\342" + - "A\001\002\372A%\n#datacatalog.googleapis.com/Taxon" + - "omy\022\037\n\025serialized_taxonomies\030\003 \001(\010H\000B\r\n\013" + - "destination\"d\n\030ExportTaxonomiesResponse\022" + - "H\n\ntaxonomies\030\001 \003(\01324.google.cloud.datac" + - "atalog.v1beta1.SerializedTaxonomy2\222\004\n\035Po" + - "licyTagManagerSerialization\022\320\001\n\020ImportTa" + - "xonomies\0229.google.cloud.datacatalog.v1be" + - "ta1.ImportTaxonomiesRequest\032:.google.clo" + - "ud.datacatalog.v1beta1.ImportTaxonomiesR" + - "esponse\"E\202\323\344\223\002?\":/v1beta1/{parent=projec" + - "ts/*/locations/*}/taxonomies:import:\001*\022\315" + - "\001\n\020ExportTaxonomies\0229.google.cloud.datac" + - "atalog.v1beta1.ExportTaxonomiesRequest\032:" + - ".google.cloud.datacatalog.v1beta1.Export" + - "TaxonomiesResponse\"B\202\323\344\223\002<\022:/v1beta1/{pa" + - "rent=projects/*/locations/*}/taxonomies:" + - "export\032N\312A\032datacatalog.googleapis.com\322A." + - "https://www.googleapis.com/auth/cloud-pl" + - "atformB\203\002\n$com.google.cloud.datacatalog." + - "v1beta1B\"PolicyTagManagerSerializationPr" + - "otoP\001ZFcloud.google.com/go/datacatalog/a" + - "piv1beta1/datacatalogpb;datacatalogpb\370\001\001" + - "\252\002 Google.Cloud.DataCatalog.V1Beta1\312\002 Go" + - "ogle\\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.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().getMessageTypes().get(0); - internal_static_google_cloud_datacatalog_v1beta1_SerializedTaxonomy_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.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().getMessageTypes().get(1); - internal_static_google_cloud_datacatalog_v1beta1_SerializedPolicyTag_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.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().getMessageTypes().get(2); - internal_static_google_cloud_datacatalog_v1beta1_ImportTaxonomiesRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.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().getMessageTypes().get(3); - internal_static_google_cloud_datacatalog_v1beta1_InlineSource_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1beta1_InlineSource_descriptor, - new java.lang.String[] { "Taxonomies", }); - internal_static_google_cloud_datacatalog_v1beta1_ImportTaxonomiesResponse_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_datacatalog_v1beta1_ImportTaxonomiesResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1beta1_ImportTaxonomiesResponse_descriptor, - new java.lang.String[] { "Taxonomies", }); - internal_static_google_cloud_datacatalog_v1beta1_ExportTaxonomiesRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_datacatalog_v1beta1_ExportTaxonomiesRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.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().getMessageTypes().get(6); - internal_static_google_cloud_datacatalog_v1beta1_ExportTaxonomiesResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1beta1_ExportTaxonomiesResponse_descriptor, - new java.lang.String[] { "Taxonomies", }); - 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); - 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(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/PolicyTagOrBuilder.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/PolicyTagOrBuilder.java deleted file mode 100644 index 265b585bd5d0..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/PolicyTagOrBuilder.java +++ /dev/null @@ -1,154 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/policytagmanager.proto - -package com.google.cloud.datacatalog.v1beta1; - -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/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/RenameTagTemplateFieldEnumValueRequest.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/RenameTagTemplateFieldEnumValueRequest.java deleted file mode 100644 index f86b671aae39..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/RenameTagTemplateFieldEnumValueRequest.java +++ /dev/null @@ -1,764 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/datacatalog.proto - -package com.google.cloud.datacatalog.v1beta1; - -/** - *
- * Request message for
- * [RenameTagTemplateFieldEnumValue][google.cloud.datacatalog.v1.DataCatalog.RenameTagTemplateFieldEnumValue].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldEnumValueRequest} - */ -public final class RenameTagTemplateFieldEnumValueRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldEnumValueRequest) - RenameTagTemplateFieldEnumValueRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use RenameTagTemplateFieldEnumValueRequest.newBuilder() to construct. - private RenameTagTemplateFieldEnumValueRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private RenameTagTemplateFieldEnumValueRequest() { - name_ = ""; - newEnumValueDisplayName_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new RenameTagTemplateFieldEnumValueRequest(); - } - - 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(newEnumValueDisplayName_)) { - com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(newEnumValueDisplayName_)) { - size += com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/RenameTagTemplateFieldEnumValueRequestOrBuilder.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/RenameTagTemplateFieldEnumValueRequestOrBuilder.java deleted file mode 100644 index 0534e906a900..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/RenameTagTemplateFieldEnumValueRequestOrBuilder.java +++ /dev/null @@ -1,55 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/datacatalog.proto - -package com.google.cloud.datacatalog.v1beta1; - -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/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/RenameTagTemplateFieldRequest.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/RenameTagTemplateFieldRequest.java deleted file mode 100644 index 27105d2ae606..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/RenameTagTemplateFieldRequest.java +++ /dev/null @@ -1,764 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/datacatalog.proto - -package com.google.cloud.datacatalog.v1beta1; - -/** - *
- * Request message for
- * [RenameTagTemplateField][google.cloud.datacatalog.v1beta1.DataCatalog.RenameTagTemplateField].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldRequest} - */ -public final class RenameTagTemplateFieldRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldRequest) - RenameTagTemplateFieldRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use RenameTagTemplateFieldRequest.newBuilder() to construct. - private RenameTagTemplateFieldRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private RenameTagTemplateFieldRequest() { - name_ = ""; - newTagTemplateFieldId_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new RenameTagTemplateFieldRequest(); - } - - 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(newTagTemplateFieldId_)) { - com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(newTagTemplateFieldId_)) { - size += com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/RenameTagTemplateFieldRequestOrBuilder.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/RenameTagTemplateFieldRequestOrBuilder.java deleted file mode 100644 index f0b6fe6e7f35..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/RenameTagTemplateFieldRequestOrBuilder.java +++ /dev/null @@ -1,55 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/datacatalog.proto - -package com.google.cloud.datacatalog.v1beta1; - -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/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/Schema.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/Schema.java deleted file mode 100644 index 9b5e320456ba..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/Schema.java +++ /dev/null @@ -1,882 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/schema.proto - -package com.google.cloud.datacatalog.v1beta1; - -/** - *
- * Represents a schema (e.g. BigQuery, GoogleSQL, Avro schema).
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.Schema} - */ -public final class Schema extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.Schema) - SchemaOrBuilder { -private static final long serialVersionUID = 0L; - // Use Schema.newBuilder() to construct. - private Schema(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Schema() { - columns_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Schema(); - } - - 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.GeneratedMessageV3.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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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.GeneratedMessageV3.alwaysUseFieldBuilders ? - getColumnsFieldBuilder() : 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.RepeatedFieldBuilderV3< - 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 getColumnsFieldBuilder().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 getColumnsFieldBuilder().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 getColumnsFieldBuilder().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 getColumnsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datacatalog.v1beta1.ColumnSchema, com.google.cloud.datacatalog.v1beta1.ColumnSchema.Builder, com.google.cloud.datacatalog.v1beta1.ColumnSchemaOrBuilder> - getColumnsFieldBuilder() { - if (columnsBuilder_ == null) { - columnsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - 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_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/SchemaOrBuilder.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/SchemaOrBuilder.java deleted file mode 100644 index eb25a7c61ac1..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/SchemaOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/schema.proto - -package com.google.cloud.datacatalog.v1beta1; - -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/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/SchemaOuterClass.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/SchemaOuterClass.java deleted file mode 100644 index 7e4914cc65f3..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/SchemaOuterClass.java +++ /dev/null @@ -1,79 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/schema.proto - -package com.google.cloud.datacatalog.v1beta1; - -public final class SchemaOuterClass { - private 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.GeneratedMessageV3.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.GeneratedMessageV3.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/schem" + - "a.proto\022 google.cloud.datacatalog.v1beta" + - "1\032\037google/api/field_behavior.proto\"O\n\006Sc" + - "hema\022E\n\007columns\030\002 \003(\0132..google.cloud.dat" + - "acatalog.v1beta1.ColumnSchemaB\004\342A\001\002\"\261\001\n\014" + - "ColumnSchema\022\024\n\006column\030\006 \001(\tB\004\342A\001\002\022\022\n\004ty" + - "pe\030\001 \001(\tB\004\342A\001\002\022\031\n\013description\030\002 \001(\tB\004\342A\001" + - "\001\022\022\n\004mode\030\003 \001(\tB\004\342A\001\001\022H\n\nsubcolumns\030\007 \003(" + - "\0132..google.cloud.datacatalog.v1beta1.Col" + - "umnSchemaB\004\342A\001\001B\337\001\n$com.google.cloud.dat" + - "acatalog.v1beta1P\001ZFcloud.google.com/go/" + - "datacatalog/apiv1beta1/datacatalogpb;dat" + - "acatalogpb\370\001\001\252\002 Google.Cloud.DataCatalog" + - ".V1Beta1\312\002 Google\\Cloud\\DataCatalog\\V1be" + - "ta1\352\002#Google::Cloud::DataCatalog::V1beta" + - "1b\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().getMessageTypes().get(0); - internal_static_google_cloud_datacatalog_v1beta1_Schema_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1beta1_Schema_descriptor, - new java.lang.String[] { "Columns", }); - internal_static_google_cloud_datacatalog_v1beta1_ColumnSchema_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_datacatalog_v1beta1_ColumnSchema_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1beta1_ColumnSchema_descriptor, - new java.lang.String[] { "Column", "Type", "Description", "Mode", "Subcolumns", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/Search.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/Search.java deleted file mode 100644 index 89ebc61bc10a..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/Search.java +++ /dev/null @@ -1,68 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/search.proto - -package com.google.cloud.datacatalog.v1beta1; - -public final class Search { - private 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.GeneratedMessageV3.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\337\001\n$com.google.cloud.datacata" + - "log.v1beta1P\001ZFcloud.google.com/go/datac" + - "atalog/apiv1beta1/datacatalogpb;datacata" + - "logpb\370\001\001\252\002 Google.Cloud.DataCatalog.V1Be" + - "ta1\312\002 Google\\Cloud\\DataCatalog\\V1beta1\352\002" + - "#Google::Cloud::DataCatalog::V1beta1b\006pr" + - "oto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_datacatalog_v1beta1_SearchCatalogResult_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_datacatalog_v1beta1_SearchCatalogResult_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1beta1_SearchCatalogResult_descriptor, - new java.lang.String[] { "SearchResultType", "SearchResultSubtype", "RelativeResourceName", "LinkedResource", "ModifyTime", }); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/SearchCatalogRequest.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/SearchCatalogRequest.java deleted file mode 100644 index 57e6afd79361..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/SearchCatalogRequest.java +++ /dev/null @@ -1,3438 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/datacatalog.proto - -package com.google.cloud.datacatalog.v1beta1; - -/** - *
- * Request message for
- * [SearchCatalog][google.cloud.datacatalog.v1beta1.DataCatalog.SearchCatalog].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.SearchCatalogRequest} - */ -public final class SearchCatalogRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.SearchCatalogRequest) - SearchCatalogRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use SearchCatalogRequest.newBuilder() to construct. - private SearchCatalogRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SearchCatalogRequest() { - query_ = ""; - pageToken_ = ""; - orderBy_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SearchCatalogRequest(); - } - - 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.GeneratedMessageV3.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.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.SearchCatalogRequest.Scope) - ScopeOrBuilder { - private static final long serialVersionUID = 0L; - // Use Scope.newBuilder() to construct. - private Scope(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Scope() { - includeOrgIds_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - includeProjectIds_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - restrictedLocations_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Scope(); - } - - 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.GeneratedMessageV3.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.GeneratedMessageV3.writeString(output, 2, includeOrgIds_.getRaw(i)); - } - for (int i = 0; i < includeProjectIds_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, includeProjectIds_.getRaw(i)); - } - if (includeGcpPublicDatasets_ != false) { - output.writeBool(7, includeGcpPublicDatasets_); - } - for (int i = 0; i < restrictedLocations_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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; - } - - } - - 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 scope_ != null; - } - /** - *
-   * 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.GeneratedMessageV3.isStringEmpty(query_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, query_); - } - if (pageSize_ != 0) { - output.writeInt32(2, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, orderBy_); - } - if (scope_ != null) { - 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.GeneratedMessageV3.isStringEmpty(query_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, query_); - } - if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, orderBy_); - } - if (scope_ != null) { - 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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @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_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.scope_ = scopeBuilder_ == null - ? scope_ - : scopeBuilder_.build(); - } - 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_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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( - getScopeFieldBuilder().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.SingleFieldBuilderV3< - 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); - } - 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 getScopeFieldBuilder().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.SingleFieldBuilderV3< - com.google.cloud.datacatalog.v1beta1.SearchCatalogRequest.Scope, com.google.cloud.datacatalog.v1beta1.SearchCatalogRequest.Scope.Builder, com.google.cloud.datacatalog.v1beta1.SearchCatalogRequest.ScopeOrBuilder> - getScopeFieldBuilder() { - if (scopeBuilder_ == null) { - scopeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - 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; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/SearchCatalogRequestOrBuilder.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/SearchCatalogRequestOrBuilder.java deleted file mode 100644 index a959ff02630e..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/SearchCatalogRequestOrBuilder.java +++ /dev/null @@ -1,164 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/datacatalog.proto - -package com.google.cloud.datacatalog.v1beta1; - -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/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/SearchCatalogResponse.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/SearchCatalogResponse.java deleted file mode 100644 index 22b9c933cf4f..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/SearchCatalogResponse.java +++ /dev/null @@ -1,1387 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/datacatalog.proto - -package com.google.cloud.datacatalog.v1beta1; - -/** - *
- * Response message for
- * [SearchCatalog][google.cloud.datacatalog.v1beta1.DataCatalog.SearchCatalog].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.SearchCatalogResponse} - */ -public final class SearchCatalogResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.SearchCatalogResponse) - SearchCatalogResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use SearchCatalogResponse.newBuilder() to construct. - private SearchCatalogResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SearchCatalogResponse() { - results_ = java.util.Collections.emptyList(); - nextPageToken_ = ""; - unreachable_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SearchCatalogResponse(); - } - - 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, nextPageToken_); - } - for (int i = 0; i < unreachable_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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.GeneratedMessageV3.alwaysUseFieldBuilders ? - getResultsFieldBuilder() : 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.RepeatedFieldBuilderV3< - 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 getResultsFieldBuilder().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 - 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 getResultsFieldBuilder().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 getResultsFieldBuilder().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 getResultsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datacatalog.v1beta1.SearchCatalogResult, com.google.cloud.datacatalog.v1beta1.SearchCatalogResult.Builder, com.google.cloud.datacatalog.v1beta1.SearchCatalogResultOrBuilder> - getResultsFieldBuilder() { - if (resultsBuilder_ == null) { - resultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - 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; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/SearchCatalogResponseOrBuilder.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/SearchCatalogResponseOrBuilder.java deleted file mode 100644 index 091b872a14f5..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/SearchCatalogResponseOrBuilder.java +++ /dev/null @@ -1,136 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/datacatalog.proto - -package com.google.cloud.datacatalog.v1beta1; - -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/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/SearchCatalogResult.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/SearchCatalogResult.java deleted file mode 100644 index 4f8dcfdde907..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/SearchCatalogResult.java +++ /dev/null @@ -1,1342 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/search.proto - -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} - */ -public final class SearchCatalogResult extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.SearchCatalogResult) - SearchCatalogResultOrBuilder { -private static final long serialVersionUID = 0L; - // Use SearchCatalogResult.newBuilder() to construct. - private SearchCatalogResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SearchCatalogResult() { - searchResultType_ = 0; - searchResultSubtype_ = ""; - relativeResourceName_ = ""; - linkedResource_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SearchCatalogResult(); - } - - 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.GeneratedMessageV3.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); - } - - 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 modifyTime_ != null; - } - /** - *
-   * 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.GeneratedMessageV3.isStringEmpty(searchResultSubtype_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, searchResultSubtype_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(relativeResourceName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, relativeResourceName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(linkedResource_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, linkedResource_); - } - if (modifyTime_ != null) { - 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.GeneratedMessageV3.isStringEmpty(searchResultSubtype_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, searchResultSubtype_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(relativeResourceName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, relativeResourceName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(linkedResource_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, linkedResource_); - } - if (modifyTime_ != null) { - 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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @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_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.modifyTime_ = modifyTimeBuilder_ == null - ? modifyTime_ - : modifyTimeBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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( - getModifyTimeFieldBuilder().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.SingleFieldBuilderV3< - 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); - } - 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 getModifyTimeFieldBuilder().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.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getModifyTimeFieldBuilder() { - if (modifyTimeBuilder_ == null) { - modifyTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getModifyTime(), - getParentForChildren(), - isClean()); - modifyTime_ = null; - } - return modifyTimeBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/SearchCatalogResultOrBuilder.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/SearchCatalogResultOrBuilder.java deleted file mode 100644 index 00505c8ac44a..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/SearchCatalogResultOrBuilder.java +++ /dev/null @@ -1,139 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/search.proto - -package com.google.cloud.datacatalog.v1beta1; - -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/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/SearchResultType.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/SearchResultType.java deleted file mode 100644 index df64e08939d9..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/SearchResultType.java +++ /dev/null @@ -1,167 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/search.proto - -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} - */ -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), - ; - - /** - *
-   * 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< - SearchResultType> 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 final 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/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/SerializedPolicyTag.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/SerializedPolicyTag.java deleted file mode 100644 index e03fdefd02c5..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/SerializedPolicyTag.java +++ /dev/null @@ -1,1386 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/policytagmanagerserialization.proto - -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} - */ -public final class SerializedPolicyTag extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.SerializedPolicyTag) - SerializedPolicyTagOrBuilder { -private static final long serialVersionUID = 0L; - // Use SerializedPolicyTag.newBuilder() to construct. - private SerializedPolicyTag(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SerializedPolicyTag() { - policyTag_ = ""; - displayName_ = ""; - description_ = ""; - childPolicyTags_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SerializedPolicyTag(); - } - - 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(policyTag_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, policyTag_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_); - } - 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.GeneratedMessageV3.isStringEmpty(policyTag_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, policyTag_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); - } - 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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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.GeneratedMessageV3.alwaysUseFieldBuilders ? - getChildPolicyTagsFieldBuilder() : 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.RepeatedFieldBuilderV3< - 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 getChildPolicyTagsFieldBuilder().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 - 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 getChildPolicyTagsFieldBuilder().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 getChildPolicyTagsFieldBuilder().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 getChildPolicyTagsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datacatalog.v1beta1.SerializedPolicyTag, com.google.cloud.datacatalog.v1beta1.SerializedPolicyTag.Builder, com.google.cloud.datacatalog.v1beta1.SerializedPolicyTagOrBuilder> - getChildPolicyTagsFieldBuilder() { - if (childPolicyTagsBuilder_ == null) { - childPolicyTagsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - 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_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/SerializedPolicyTagOrBuilder.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/SerializedPolicyTagOrBuilder.java deleted file mode 100644 index accdaffbc911..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/SerializedPolicyTagOrBuilder.java +++ /dev/null @@ -1,123 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/policytagmanagerserialization.proto - -package com.google.cloud.datacatalog.v1beta1; - -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/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/SerializedTaxonomy.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/SerializedTaxonomy.java deleted file mode 100644 index 141e798782b1..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/SerializedTaxonomy.java +++ /dev/null @@ -1,1536 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/policytagmanagerserialization.proto - -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} - */ -public final class SerializedTaxonomy extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.SerializedTaxonomy) - SerializedTaxonomyOrBuilder { -private static final long serialVersionUID = 0L; - // Use SerializedTaxonomy.newBuilder() to construct. - private SerializedTaxonomy(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SerializedTaxonomy() { - displayName_ = ""; - description_ = ""; - policyTags_ = java.util.Collections.emptyList(); - activatedPolicyTypes_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SerializedTaxonomy(); - } - - 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.GeneratedMessageV3.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 java.util.List activatedPolicyTypes_; - private static final com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.cloud.datacatalog.v1beta1.Taxonomy.PolicyType> activatedPolicyTypes_converter_ = - new com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.cloud.datacatalog.v1beta1.Taxonomy.PolicyType>() { - public com.google.cloud.datacatalog.v1beta1.Taxonomy.PolicyType convert(java.lang.Integer 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.ListAdapter< - java.lang.Integer, 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_.get(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_.get(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.GeneratedMessageV3.isStringEmpty(displayName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, displayName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { - com.google.protobuf.GeneratedMessageV3.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_.get(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, displayName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { - size += com.google.protobuf.GeneratedMessageV3.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_.get(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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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_ = java.util.Collections.emptyList(); - 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_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(); - } - if (((bitField0_ & 0x00000008) != 0)) { - activatedPolicyTypes_ = java.util.Collections.unmodifiableList(activatedPolicyTypes_); - bitField0_ = (bitField0_ & ~0x00000008); - } - result.activatedPolicyTypes_ = activatedPolicyTypes_; - } - - 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_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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.GeneratedMessageV3.alwaysUseFieldBuilders ? - getPolicyTagsFieldBuilder() : null; - } else { - policyTagsBuilder_.addAllMessages(other.policyTags_); - } - } - } - if (!other.activatedPolicyTypes_.isEmpty()) { - if (activatedPolicyTypes_.isEmpty()) { - activatedPolicyTypes_ = other.activatedPolicyTypes_; - bitField0_ = (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_.add(tmpRaw); - break; - } // case 32 - case 34: { - int length = input.readRawVarint32(); - int oldLimit = input.pushLimit(length); - while(input.getBytesUntilLimit() > 0) { - int tmpRaw = input.readEnum(); - ensureActivatedPolicyTypesIsMutable(); - activatedPolicyTypes_.add(tmpRaw); - } - input.popLimit(oldLimit); - 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.RepeatedFieldBuilderV3< - 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 getPolicyTagsFieldBuilder().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 - 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 getPolicyTagsFieldBuilder().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 getPolicyTagsFieldBuilder().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 getPolicyTagsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datacatalog.v1beta1.SerializedPolicyTag, com.google.cloud.datacatalog.v1beta1.SerializedPolicyTag.Builder, com.google.cloud.datacatalog.v1beta1.SerializedPolicyTagOrBuilder> - getPolicyTagsFieldBuilder() { - if (policyTagsBuilder_ == null) { - policyTagsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - 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 java.util.List activatedPolicyTypes_ = - java.util.Collections.emptyList(); - private void ensureActivatedPolicyTypesIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { - activatedPolicyTypes_ = new java.util.ArrayList(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.ListAdapter< - java.lang.Integer, 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_.get(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_.set(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_.add(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_.add(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_ = java.util.Collections.emptyList(); - 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() { - return java.util.Collections.unmodifiableList(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_.get(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_.set(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_.add(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_.add(value); - } - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/SerializedTaxonomyOrBuilder.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/SerializedTaxonomyOrBuilder.java deleted file mode 100644 index 8b9a17357f8f..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/SerializedTaxonomyOrBuilder.java +++ /dev/null @@ -1,148 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/policytagmanagerserialization.proto - -package com.google.cloud.datacatalog.v1beta1; - -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/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/SystemTimestamps.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/SystemTimestamps.java deleted file mode 100644 index 1d01ce876993..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/SystemTimestamps.java +++ /dev/null @@ -1,1112 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/timestamps.proto - -package com.google.cloud.datacatalog.v1beta1; - -/** - *
- * Timestamps about this resource according to a particular system.
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.SystemTimestamps} - */ -public final class SystemTimestamps extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.SystemTimestamps) - SystemTimestampsOrBuilder { -private static final long serialVersionUID = 0L; - // Use SystemTimestamps.newBuilder() to construct. - private SystemTimestamps(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SystemTimestamps() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.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); - } - - 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 createTime_ != null; - } - /** - *
-   * 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 updateTime_ != null; - } - /** - *
-   * 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 expireTime_ != null; - } - /** - *
-   * 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 (createTime_ != null) { - output.writeMessage(1, getCreateTime()); - } - if (updateTime_ != null) { - output.writeMessage(2, getUpdateTime()); - } - if (expireTime_ != null) { - output.writeMessage(3, getExpireTime()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getCreateTime()); - } - if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getUpdateTime()); - } - if (expireTime_ != null) { - 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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - createTime_ = null; - if (createTimeBuilder_ != null) { - createTimeBuilder_.dispose(); - createTimeBuilder_ = null; - } - 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_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.createTime_ = createTimeBuilder_ == null - ? createTime_ - : createTimeBuilder_.build(); - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.updateTime_ = updateTimeBuilder_ == null - ? updateTime_ - : updateTimeBuilder_.build(); - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.expireTime_ = expireTimeBuilder_ == null - ? expireTime_ - : expireTimeBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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( - getCreateTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getUpdateTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - input.readMessage( - getExpireTimeFieldBuilder().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.SingleFieldBuilderV3< - 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); - } - 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 getCreateTimeFieldBuilder().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.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getCreateTimeFieldBuilder() { - if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); - createTime_ = null; - } - return createTimeBuilder_; - } - - private com.google.protobuf.Timestamp updateTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; - /** - *
-     * 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); - } - 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 getUpdateTimeFieldBuilder().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.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getUpdateTimeFieldBuilder() { - if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), - getParentForChildren(), - isClean()); - updateTime_ = null; - } - return updateTimeBuilder_; - } - - private com.google.protobuf.Timestamp expireTime_; - private com.google.protobuf.SingleFieldBuilderV3< - 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); - } - 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 getExpireTimeFieldBuilder().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.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getExpireTimeFieldBuilder() { - if (expireTimeBuilder_ == null) { - expireTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getExpireTime(), - getParentForChildren(), - isClean()); - expireTime_ = null; - } - return expireTimeBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/SystemTimestampsOrBuilder.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/SystemTimestampsOrBuilder.java deleted file mode 100644 index 5a14f491fa14..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/SystemTimestampsOrBuilder.java +++ /dev/null @@ -1,93 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/timestamps.proto - -package com.google.cloud.datacatalog.v1beta1; - -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/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TableSourceType.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TableSourceType.java deleted file mode 100644 index 4bc36ede1780..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TableSourceType.java +++ /dev/null @@ -1,167 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/table_spec.proto - -package com.google.cloud.datacatalog.v1beta1; - -/** - *
- * Table source type.
- * 
- * - * Protobuf enum {@code google.cloud.datacatalog.v1beta1.TableSourceType} - */ -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), - ; - - /** - *
-   * 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< - TableSourceType> 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 final 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/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TableSpec.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TableSpec.java deleted file mode 100644 index 7d6fc0fbe653..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TableSpec.java +++ /dev/null @@ -1,605 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/table_spec.proto - -package com.google.cloud.datacatalog.v1beta1; - -/** - *
- * Normal BigQuery table spec.
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.TableSpec} - */ -public final class TableSpec extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.TableSpec) - TableSpecOrBuilder { -private static final long serialVersionUID = 0L; - // Use TableSpec.newBuilder() to construct. - private TableSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TableSpec() { - groupedEntry_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new TableSpec(); - } - - 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(groupedEntry_)) { - com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(groupedEntry_)) { - size += com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TableSpecOrBuilder.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TableSpecOrBuilder.java deleted file mode 100644 index 023a4f2841b6..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TableSpecOrBuilder.java +++ /dev/null @@ -1,37 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/table_spec.proto - -package com.google.cloud.datacatalog.v1beta1; - -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/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TableSpecOuterClass.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TableSpecOuterClass.java deleted file mode 100644 index 6a7f7525f251..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TableSpecOuterClass.java +++ /dev/null @@ -1,114 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/table_spec.proto - -package com.google.cloud.datacatalog.v1beta1; - -public final class TableSpecOuterClass { - private 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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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\"\370\001\n\021BigQueryTa" + - "bleSpec\022R\n\021table_source_type\030\001 \001(\01621.goo" + - "gle.cloud.datacatalog.v1beta1.TableSourc" + - "eTypeB\004\342A\001\003\022?\n\tview_spec\030\002 \001(\0132*.google." + - "cloud.datacatalog.v1beta1.ViewSpecH\000\022A\n\n" + - "table_spec\030\003 \001(\0132+.google.cloud.datacata" + - "log.v1beta1.TableSpecH\000B\013\n\ttype_spec\"$\n\010" + - "ViewSpec\022\030\n\nview_query\030\001 \001(\tB\004\342A\001\003\"M\n\tTa" + - "bleSpec\022@\n\rgrouped_entry\030\001 \001(\tB)\342A\001\003\372A\"\n" + - " datacatalog.googleapis.com/Entry\"\214\001\n\027Bi" + - "gQueryDateShardedSpec\022:\n\007dataset\030\001 \001(\tB)" + - "\342A\001\003\372A\"\n datacatalog.googleapis.com/Entr" + - "y\022\032\n\014table_prefix\030\002 \001(\tB\004\342A\001\003\022\031\n\013shard_c" + - "ount\030\003 \001(\003B\004\342A\001\003*{\n\017TableSourceType\022!\n\035T" + - "ABLE_SOURCE_TYPE_UNSPECIFIED\020\000\022\021\n\rBIGQUE" + - "RY_VIEW\020\002\022\022\n\016BIGQUERY_TABLE\020\005\022\036\n\032BIGQUER" + - "Y_MATERIALIZED_VIEW\020\007B\337\001\n$com.google.clo" + - "ud.datacatalog.v1beta1P\001ZFcloud.google.c" + - "om/go/datacatalog/apiv1beta1/datacatalog" + - "pb;datacatalogpb\370\001\001\252\002 Google.Cloud.DataC" + - "atalog.V1Beta1\312\002 Google\\Cloud\\DataCatalo" + - "g\\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.api.ResourceProto.getDescriptor(), - }); - internal_static_google_cloud_datacatalog_v1beta1_BigQueryTableSpec_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_datacatalog_v1beta1_BigQueryTableSpec_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.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().getMessageTypes().get(1); - internal_static_google_cloud_datacatalog_v1beta1_ViewSpec_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1beta1_ViewSpec_descriptor, - new java.lang.String[] { "ViewQuery", }); - internal_static_google_cloud_datacatalog_v1beta1_TableSpec_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_datacatalog_v1beta1_TableSpec_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1beta1_TableSpec_descriptor, - new java.lang.String[] { "GroupedEntry", }); - internal_static_google_cloud_datacatalog_v1beta1_BigQueryDateShardedSpec_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_datacatalog_v1beta1_BigQueryDateShardedSpec_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1beta1_BigQueryDateShardedSpec_descriptor, - new java.lang.String[] { "Dataset", "TablePrefix", "ShardCount", }); - 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); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/Tag.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/Tag.java deleted file mode 100644 index 70c003d3423d..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/Tag.java +++ /dev/null @@ -1,1668 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/tags.proto - -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} - */ -public final class Tag extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.Tag) - TagOrBuilder { -private static final long serialVersionUID = 0L; - // Use Tag.newBuilder() to construct. - private Tag(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Tag() { - name_ = ""; - template_ = ""; - templateDisplayName_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Tag(); - } - - 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.MapField internalGetMapField( - int number) { - switch (number) { - case 3: - return internalGetFields(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.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_ = ""; - /** - *
-   * 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; - * @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 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; - * @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 - 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.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(template_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, template_); - } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetFields(), - FieldsDefaultEntryHolder.defaultEntry, - 3); - if (scopeCase_ == 4) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, scope_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(templateDisplayName_)) { - com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(template_)) { - size += com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.computeStringSize(4, scope_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(templateDisplayName_)) { - size += com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.MapField internalGetMapField( - int number) { - switch (number) { - case 3: - return internalGetFields(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 3: - return internalGetMutableFields(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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(); - result.fields_.makeImmutable(); - } - } - - private void buildPartialOneofs(com.google.cloud.datacatalog.v1beta1.Tag result) { - result.scopeCase_ = scopeCase_; - result.scope_ = this.scope_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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 - fields__ = input.readMessage( - FieldsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableFields().getMutableMap().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_ = ""; - /** - *
-     * 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; - * @return The name. - */ - public java.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 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; - * @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 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; - * @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 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; - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * 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; - * @param value The 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 com.google.protobuf.MapField< - java.lang.String, com.google.cloud.datacatalog.v1beta1.TagField> fields_; - private com.google.protobuf.MapField - internalGetFields() { - if (fields_ == null) { - return com.google.protobuf.MapField.emptyMapField( - FieldsDefaultEntryHolder.defaultEntry); - } - return fields_; - } - private com.google.protobuf.MapField - internalGetMutableFields() { - if (fields_ == null) { - fields_ = com.google.protobuf.MapField.newMapField( - FieldsDefaultEntryHolder.defaultEntry); - } - if (!fields_.isMutable()) { - fields_ = fields_.copy(); - } - bitField0_ |= 0x00000010; - onChanged(); - 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); - } - public Builder clearFields() { - bitField0_ = (bitField0_ & ~0x00000010); - internalGetMutableFields().getMutableMap() - .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().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableFields() { - bitField0_ |= 0x00000010; - return internalGetMutableFields().getMutableMap(); - } - /** - *
-     * 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().getMutableMap() - .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) { - internalGetMutableFields().getMutableMap() - .putAll(values); - bitField0_ |= 0x00000010; - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TagField.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TagField.java deleted file mode 100644 index c6fc0320ad5b..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TagField.java +++ /dev/null @@ -1,2318 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/tags.proto - -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} - */ -public final class TagField extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.TagField) - TagFieldOrBuilder { -private static final long serialVersionUID = 0L; - // Use TagField.newBuilder() to construct. - private TagField(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TagField() { - displayName_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new TagField(); - } - - 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.GeneratedMessageV3.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.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.TagField.EnumValue) - EnumValueOrBuilder { - private static final long serialVersionUID = 0L; - // Use EnumValue.newBuilder() to construct. - private EnumValue(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private EnumValue() { - displayName_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new EnumValue(); - } - - 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(displayName_)) { - com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(displayName_)) { - size += com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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.GeneratedMessageV3.isStringEmpty(displayName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, displayName_); - } - if (kindCase_ == 2) { - output.writeDouble( - 2, (double)((java.lang.Double) kind_)); - } - if (kindCase_ == 3) { - com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(displayName_)) { - size += com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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( - getTimestampValueFieldBuilder().getBuilder(), - extensionRegistry); - kindCase_ = 5; - break; - } // case 42 - case 50: { - input.readMessage( - getEnumValueFieldBuilder().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.SingleFieldBuilderV3< - 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 getTimestampValueFieldBuilder().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.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getTimestampValueFieldBuilder() { - if (timestampValueBuilder_ == null) { - if (!(kindCase_ == 5)) { - kind_ = com.google.protobuf.Timestamp.getDefaultInstance(); - } - timestampValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - 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.SingleFieldBuilderV3< - 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 getEnumValueFieldBuilder().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.SingleFieldBuilderV3< - com.google.cloud.datacatalog.v1beta1.TagField.EnumValue, com.google.cloud.datacatalog.v1beta1.TagField.EnumValue.Builder, com.google.cloud.datacatalog.v1beta1.TagField.EnumValueOrBuilder> - getEnumValueFieldBuilder() { - if (enumValueBuilder_ == null) { - if (!(kindCase_ == 6)) { - kind_ = com.google.cloud.datacatalog.v1beta1.TagField.EnumValue.getDefaultInstance(); - } - enumValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - 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; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TagFieldOrBuilder.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TagFieldOrBuilder.java deleted file mode 100644 index c42e294f5188..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TagFieldOrBuilder.java +++ /dev/null @@ -1,170 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/tags.proto - -package com.google.cloud.datacatalog.v1beta1; - -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/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TagOrBuilder.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TagOrBuilder.java deleted file mode 100644 index ade694d2d1f5..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TagOrBuilder.java +++ /dev/null @@ -1,202 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/tags.proto - -package com.google.cloud.datacatalog.v1beta1; - -public interface TagOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1beta1.Tag) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * 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; - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * 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; - * @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/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TagTemplate.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TagTemplate.java deleted file mode 100644 index 7656871fc422..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TagTemplate.java +++ /dev/null @@ -1,1190 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/tags.proto - -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} - */ -public final class TagTemplate extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.TagTemplate) - TagTemplateOrBuilder { -private static final long serialVersionUID = 0L; - // Use TagTemplate.newBuilder() to construct. - private TagTemplate(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TagTemplate() { - name_ = ""; - displayName_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new TagTemplate(); - } - - 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.MapField internalGetMapField( - int number) { - switch (number) { - case 3: - return internalGetFields(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.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); - } - - public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - *
-   * 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; - * @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 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; - * @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 - 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); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); - } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetFields(), - FieldsDefaultEntryHolder.defaultEntry, - 3); - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); - } - 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__); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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 (!getUnknownFields().equals(other.getUnknownFields())) return false; - 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 = (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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.MapField internalGetMapField( - int number) { - switch (number) { - case 3: - return internalGetFields(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 3: - return internalGetMutableFields(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - displayName_ = ""; - internalGetMutableFields().clear(); - 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(); - result.fields_.makeImmutable(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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; - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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 - fields__ = input.readMessage( - FieldsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableFields().getMutableMap().put( - fields__.getKey(), fields__.getValue()); - 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 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; - * @return The name. - */ - public java.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 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; - * @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 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; - * @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 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; - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * 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; - * @param value The 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 com.google.protobuf.MapField< - java.lang.String, com.google.cloud.datacatalog.v1beta1.TagTemplateField> fields_; - private com.google.protobuf.MapField - internalGetFields() { - if (fields_ == null) { - return com.google.protobuf.MapField.emptyMapField( - FieldsDefaultEntryHolder.defaultEntry); - } - return fields_; - } - private com.google.protobuf.MapField - internalGetMutableFields() { - if (fields_ == null) { - fields_ = com.google.protobuf.MapField.newMapField( - FieldsDefaultEntryHolder.defaultEntry); - } - if (!fields_.isMutable()) { - fields_ = fields_.copy(); - } - bitField0_ |= 0x00000004; - onChanged(); - 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 Builder clearFields() { - bitField0_ = (bitField0_ & ~0x00000004); - internalGetMutableFields().getMutableMap() - .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().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableFields() { - bitField0_ |= 0x00000004; - return internalGetMutableFields().getMutableMap(); - } - /** - *
-     * 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().getMutableMap() - .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) { - internalGetMutableFields().getMutableMap() - .putAll(values); - bitField0_ |= 0x00000004; - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TagTemplateField.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TagTemplateField.java deleted file mode 100644 index e8b6dc272d5a..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TagTemplateField.java +++ /dev/null @@ -1,1353 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/tags.proto - -package com.google.cloud.datacatalog.v1beta1; - -/** - *
- * The template for an individual field within a tag template.
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.TagTemplateField} - */ -public final class TagTemplateField extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.TagTemplateField) - TagTemplateFieldOrBuilder { -private static final long serialVersionUID = 0L; - // Use TagTemplateField.newBuilder() to construct. - private TagTemplateField(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TagTemplateField() { - name_ = ""; - displayName_ = ""; - description_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new TagTemplateField(); - } - - 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.GeneratedMessageV3.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); - } - - public static final int NAME_FIELD_NUMBER = 6; - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - *
-   * Output only. 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) = OUTPUT_ONLY]; - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * Output only. The resource name of the 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) = 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 type_ != null; - } - /** - *
-   * 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.GeneratedMessageV3.isStringEmpty(displayName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, displayName_); - } - if (type_ != null) { - output.writeMessage(2, getType()); - } - if (isRequired_ != false) { - output.writeBool(3, isRequired_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, description_); - } - if (order_ != 0) { - output.writeInt32(5, order_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(displayName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, displayName_); - } - if (type_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getType()); - } - if (isRequired_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, isRequired_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, description_); - } - if (order_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(5, order_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @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_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.type_ = typeBuilder_ == null - ? type_ - : typeBuilder_.build(); - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.isRequired_ = isRequired_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.description_ = description_; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.order_ = order_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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( - getTypeFieldBuilder().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. 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) = OUTPUT_ONLY]; - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Output only. The resource name of the 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) = OUTPUT_ONLY]; - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Output only. The resource name of the 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) = OUTPUT_ONLY]; - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Output only. The resource name of the 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) = OUTPUT_ONLY]; - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Output only. The resource name of the 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) = 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.SingleFieldBuilderV3< - 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); - } - 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 getTypeFieldBuilder().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.SingleFieldBuilderV3< - com.google.cloud.datacatalog.v1beta1.FieldType, com.google.cloud.datacatalog.v1beta1.FieldType.Builder, com.google.cloud.datacatalog.v1beta1.FieldTypeOrBuilder> - getTypeFieldBuilder() { - if (typeBuilder_ == null) { - typeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - 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; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TagTemplateFieldOrBuilder.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TagTemplateFieldOrBuilder.java deleted file mode 100644 index 60b76529c291..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TagTemplateFieldOrBuilder.java +++ /dev/null @@ -1,131 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/tags.proto - -package com.google.cloud.datacatalog.v1beta1; - -public interface TagTemplateFieldOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1beta1.TagTemplateField) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Output only. 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) = OUTPUT_ONLY]; - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Output only. 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) = 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/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TagTemplateOrBuilder.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TagTemplateOrBuilder.java deleted file mode 100644 index 319816946104..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TagTemplateOrBuilder.java +++ /dev/null @@ -1,148 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/tags.proto - -package com.google.cloud.datacatalog.v1beta1; - -public interface TagTemplateOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1beta1.TagTemplate) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * 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; - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * 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; - * @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); -} diff --git a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/Tags.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/Tags.java deleted file mode 100644 index 05b745ef553a..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/Tags.java +++ /dev/null @@ -1,212 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/tags.proto - -package com.google.cloud.datacatalog.v1beta1; - -public final class Tags { - private 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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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/tim" + - "estamp.proto\"\223\003\n\003Tag\022\014\n\004name\030\001 \001(\t\022\026\n\010te" + - "mplate\030\002 \001(\tB\004\342A\001\002\022#\n\025template_display_n" + - "ame\030\005 \001(\tB\004\342A\001\003\022\020\n\006column\030\004 \001(\tH\000\022G\n\006fie" + - "lds\030\003 \003(\01321.google.cloud.datacatalog.v1b" + - "eta1.Tag.FieldsEntryB\004\342A\001\002\032Y\n\013FieldsEntr" + - "y\022\013\n\003key\030\001 \001(\t\0229\n\005value\030\002 \001(\0132*.google.c" + - "loud.datacatalog.v1beta1.TagField:\0028\001:\201\001" + - "\352A~\n\036datacatalog.googleapis.com/Tag\022\\pro" + - "jects/{project}/locations/{location}/ent" + - "ryGroups/{entry_group}/entries/{entry}/t" + - "ags/{tag}B\007\n\005scope\"\257\002\n\010TagField\022\032\n\014displ" + - "ay_name\030\001 \001(\tB\004\342A\001\003\022\026\n\014double_value\030\002 \001(" + - "\001H\000\022\026\n\014string_value\030\003 \001(\tH\000\022\024\n\nbool_valu" + - "e\030\004 \001(\010H\000\0225\n\017timestamp_value\030\005 \001(\0132\032.goo" + - "gle.protobuf.TimestampH\000\022J\n\nenum_value\030\006" + - " \001(\01324.google.cloud.datacatalog.v1beta1." + - "TagField.EnumValueH\000\022\023\n\005order\030\007 \001(\005B\004\342A\001" + - "\003\032!\n\tEnumValue\022\024\n\014display_name\030\001 \001(\tB\006\n\004" + - "kind\"\327\002\n\013TagTemplate\022\014\n\004name\030\001 \001(\t\022\024\n\014di" + - "splay_name\030\002 \001(\t\022O\n\006fields\030\003 \003(\01329.googl" + - "e.cloud.datacatalog.v1beta1.TagTemplate." + - "FieldsEntryB\004\342A\001\002\032a\n\013FieldsEntry\022\013\n\003key\030" + - "\001 \001(\t\022A\n\005value\030\002 \001(\01322.google.cloud.data" + - "catalog.v1beta1.TagTemplateField:\0028\001:p\352A" + - "m\n&datacatalog.googleapis.com/TagTemplat" + - "e\022Cprojects/{project}/locations/{locatio" + - "n}/tagTemplates/{tag_template}\"\276\002\n\020TagTe" + - "mplateField\022\022\n\004name\030\006 \001(\tB\004\342A\001\003\022\024\n\014displ" + - "ay_name\030\001 \001(\t\022?\n\004type\030\002 \001(\0132+.google.clo" + - "ud.datacatalog.v1beta1.FieldTypeB\004\342A\001\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.goog" + - "leapis.com/TagTemplateField\022Rprojects/{p" + - "roject}/locations/{location}/tagTemplate" + - "s/{tag_template}/fields/{field}\"\250\003\n\tFiel" + - "dType\022S\n\016primitive_type\030\001 \001(\01629.google.c" + - "loud.datacatalog.v1beta1.FieldType.Primi" + - "tiveTypeH\000\022I\n\tenum_type\030\002 \001(\01324.google.c" + - "loud.datacatalog.v1beta1.FieldType.EnumT" + - "ypeH\000\032\213\001\n\010EnumType\022V\n\016allowed_values\030\001 \003" + - "(\0132>.google.cloud.datacatalog.v1beta1.Fi" + - "eldType.EnumType.EnumValue\032\'\n\tEnumValue\022" + - "\032\n\014display_name\030\001 \001(\tB\004\342A\001\002\"`\n\rPrimitive" + - "Type\022\036\n\032PRIMITIVE_TYPE_UNSPECIFIED\020\000\022\n\n\006" + - "DOUBLE\020\001\022\n\n\006STRING\020\002\022\010\n\004BOOL\020\003\022\r\n\tTIMEST" + - "AMP\020\004B\013\n\ttype_declB\337\001\n$com.google.cloud." + - "datacatalog.v1beta1P\001ZFcloud.google.com/" + - "go/datacatalog/apiv1beta1/datacatalogpb;" + - "datacatalogpb\370\001\001\252\002 Google.Cloud.DataCata" + - "log.V1Beta1\312\002 Google\\Cloud\\DataCatalog\\V" + - "1beta1\352\002#Google::Cloud::DataCatalog::V1b" + - "eta1b\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().getMessageTypes().get(0); - internal_static_google_cloud_datacatalog_v1beta1_Tag_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.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.getNestedTypes().get(0); - internal_static_google_cloud_datacatalog_v1beta1_Tag_FieldsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.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().getMessageTypes().get(1); - internal_static_google_cloud_datacatalog_v1beta1_TagField_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.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.getNestedTypes().get(0); - internal_static_google_cloud_datacatalog_v1beta1_TagField_EnumValue_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1beta1_TagField_EnumValue_descriptor, - new java.lang.String[] { "DisplayName", }); - internal_static_google_cloud_datacatalog_v1beta1_TagTemplate_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_datacatalog_v1beta1_TagTemplate_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1beta1_TagTemplate_descriptor, - new java.lang.String[] { "Name", "DisplayName", "Fields", }); - internal_static_google_cloud_datacatalog_v1beta1_TagTemplate_FieldsEntry_descriptor = - internal_static_google_cloud_datacatalog_v1beta1_TagTemplate_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_datacatalog_v1beta1_TagTemplate_FieldsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.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().getMessageTypes().get(3); - internal_static_google_cloud_datacatalog_v1beta1_TagTemplateField_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.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().getMessageTypes().get(4); - internal_static_google_cloud_datacatalog_v1beta1_FieldType_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.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.getNestedTypes().get(0); - internal_static_google_cloud_datacatalog_v1beta1_FieldType_EnumType_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.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.getNestedTypes().get(0); - internal_static_google_cloud_datacatalog_v1beta1_FieldType_EnumType_EnumValue_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1beta1_FieldType_EnumType_EnumValue_descriptor, - new java.lang.String[] { "DisplayName", }); - 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); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/Taxonomy.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/Taxonomy.java deleted file mode 100644 index 950757a23ea9..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/Taxonomy.java +++ /dev/null @@ -1,2759 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/policytagmanager.proto - -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} - */ -public final class Taxonomy extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.Taxonomy) - TaxonomyOrBuilder { -private static final long serialVersionUID = 0L; - // Use Taxonomy.newBuilder() to construct. - private Taxonomy(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Taxonomy() { - name_ = ""; - displayName_ = ""; - description_ = ""; - activatedPolicyTypes_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Taxonomy(); - } - - 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.GeneratedMessageV3.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), - ; - - /** - *
-     * 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< - PolicyType> 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 final 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.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.Taxonomy.Service) - ServiceOrBuilder { - private static final long serialVersionUID = 0L; - // Use Service.newBuilder() to construct. - private Service(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Service() { - name_ = 0; - identity_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Service(); - } - - 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(identity_)) { - com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(identity_)) { - size += com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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; - } - - } - - 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 taxonomyTimestamps_ != null; - } - /** - *
-   * 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 java.util.List activatedPolicyTypes_; - private static final com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.cloud.datacatalog.v1beta1.Taxonomy.PolicyType> activatedPolicyTypes_converter_ = - new com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.cloud.datacatalog.v1beta1.Taxonomy.PolicyType>() { - public com.google.cloud.datacatalog.v1beta1.Taxonomy.PolicyType convert(java.lang.Integer 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.ListAdapter< - java.lang.Integer, 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_.get(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_.get(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 service_ != null; - } - /** - *
-   * 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.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_); - } - if (policyTagCount_ != 0) { - output.writeInt32(4, policyTagCount_); - } - if (taxonomyTimestamps_ != null) { - 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_.get(i)); - } - if (service_ != null) { - 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.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); - } - if (policyTagCount_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(4, policyTagCount_); - } - if (taxonomyTimestamps_ != null) { - 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_.get(i)); - } - size += dataSize; - if (!getActivatedPolicyTypesList().isEmpty()) { size += 1; - size += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(dataSize); - }activatedPolicyTypesMemoizedSerializedSize = dataSize; - } - if (service_ != null) { - 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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @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_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000020); - 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); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(com.google.cloud.datacatalog.v1beta1.Taxonomy result) { - if (((bitField0_ & 0x00000020) != 0)) { - activatedPolicyTypes_ = java.util.Collections.unmodifiableList(activatedPolicyTypes_); - bitField0_ = (bitField0_ & ~0x00000020); - } - result.activatedPolicyTypes_ = activatedPolicyTypes_; - } - - 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_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.taxonomyTimestamps_ = taxonomyTimestampsBuilder_ == null - ? taxonomyTimestamps_ - : taxonomyTimestampsBuilder_.build(); - } - if (((from_bitField0_ & 0x00000040) != 0)) { - result.service_ = serviceBuilder_ == null - ? service_ - : serviceBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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_; - bitField0_ = (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( - getTaxonomyTimestampsFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 48: { - int tmpRaw = input.readEnum(); - ensureActivatedPolicyTypesIsMutable(); - activatedPolicyTypes_.add(tmpRaw); - break; - } // case 48 - case 50: { - int length = input.readRawVarint32(); - int oldLimit = input.pushLimit(length); - while(input.getBytesUntilLimit() > 0) { - int tmpRaw = input.readEnum(); - ensureActivatedPolicyTypesIsMutable(); - activatedPolicyTypes_.add(tmpRaw); - } - input.popLimit(oldLimit); - break; - } // case 50 - case 58: { - input.readMessage( - getServiceFieldBuilder().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.SingleFieldBuilderV3< - 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); - } - 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 getTaxonomyTimestampsFieldBuilder().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.SingleFieldBuilderV3< - com.google.cloud.datacatalog.v1beta1.SystemTimestamps, com.google.cloud.datacatalog.v1beta1.SystemTimestamps.Builder, com.google.cloud.datacatalog.v1beta1.SystemTimestampsOrBuilder> - getTaxonomyTimestampsFieldBuilder() { - if (taxonomyTimestampsBuilder_ == null) { - taxonomyTimestampsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - 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 java.util.List activatedPolicyTypes_ = - java.util.Collections.emptyList(); - private void ensureActivatedPolicyTypesIsMutable() { - if (!((bitField0_ & 0x00000020) != 0)) { - activatedPolicyTypes_ = new java.util.ArrayList(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.ListAdapter< - java.lang.Integer, 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_.get(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_.set(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_.add(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_.add(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_ = java.util.Collections.emptyList(); - 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() { - return java.util.Collections.unmodifiableList(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_.get(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_.set(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_.add(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_.add(value); - } - onChanged(); - return this; - } - - private com.google.cloud.datacatalog.v1beta1.Taxonomy.Service service_; - private com.google.protobuf.SingleFieldBuilderV3< - 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); - } - 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 getServiceFieldBuilder().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.SingleFieldBuilderV3< - com.google.cloud.datacatalog.v1beta1.Taxonomy.Service, com.google.cloud.datacatalog.v1beta1.Taxonomy.Service.Builder, com.google.cloud.datacatalog.v1beta1.Taxonomy.ServiceOrBuilder> - getServiceFieldBuilder() { - if (serviceBuilder_ == null) { - serviceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - 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_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TaxonomyOrBuilder.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TaxonomyOrBuilder.java deleted file mode 100644 index 843033c97483..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TaxonomyOrBuilder.java +++ /dev/null @@ -1,212 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/policytagmanager.proto - -package com.google.cloud.datacatalog.v1beta1; - -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/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/Timestamps.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/Timestamps.java deleted file mode 100644 index 796e644ec6d0..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/Timestamps.java +++ /dev/null @@ -1,68 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/timestamps.proto - -package com.google.cloud.datacatalog.v1beta1; - -public final class Timestamps { - private 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.GeneratedMessageV3.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\"\253\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\0225\n\013expire" + - "_time\030\003 \001(\0132\032.google.protobuf.TimestampB" + - "\004\342A\001\003B\337\001\n$com.google.cloud.datacatalog.v" + - "1beta1P\001ZFcloud.google.com/go/datacatalo" + - "g/apiv1beta1/datacatalogpb;datacatalogpb" + - "\370\001\001\252\002 Google.Cloud.DataCatalog.V1Beta1\312\002" + - " Google\\Cloud\\DataCatalog\\V1beta1\352\002#Goog" + - "le::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().getMessageTypes().get(0); - internal_static_google_cloud_datacatalog_v1beta1_SystemTimestamps_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1beta1_SystemTimestamps_descriptor, - new java.lang.String[] { "CreateTime", "UpdateTime", "ExpireTime", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UpdateEntryGroupRequest.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UpdateEntryGroupRequest.java deleted file mode 100644 index e7918a5d70a0..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UpdateEntryGroupRequest.java +++ /dev/null @@ -1,921 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/datacatalog.proto - -package com.google.cloud.datacatalog.v1beta1; - -/** - *
- * Request message for
- * [UpdateEntryGroup][google.cloud.datacatalog.v1beta1.DataCatalog.UpdateEntryGroup].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.UpdateEntryGroupRequest} - */ -public final class UpdateEntryGroupRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.UpdateEntryGroupRequest) - UpdateEntryGroupRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use UpdateEntryGroupRequest.newBuilder() to construct. - private UpdateEntryGroupRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private UpdateEntryGroupRequest() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.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); - } - - 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 entryGroup_ != null; - } - /** - *
-   * 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 updateMask_ != null; - } - /** - *
-   * 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 (entryGroup_ != null) { - output.writeMessage(1, getEntryGroup()); - } - if (updateMask_ != null) { - output.writeMessage(2, getUpdateMask()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (entryGroup_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getEntryGroup()); - } - if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getUpdateMask()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @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_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.entryGroup_ = entryGroupBuilder_ == null - ? entryGroup_ - : entryGroupBuilder_.build(); - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null - ? updateMask_ - : updateMaskBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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( - getEntryGroupFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getUpdateMaskFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private com.google.cloud.datacatalog.v1beta1.EntryGroup entryGroup_; - private com.google.protobuf.SingleFieldBuilderV3< - 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); - } - 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 getEntryGroupFieldBuilder().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.SingleFieldBuilderV3< - com.google.cloud.datacatalog.v1beta1.EntryGroup, com.google.cloud.datacatalog.v1beta1.EntryGroup.Builder, com.google.cloud.datacatalog.v1beta1.EntryGroupOrBuilder> - getEntryGroupFieldBuilder() { - if (entryGroupBuilder_ == null) { - entryGroupBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - 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.SingleFieldBuilderV3< - 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); - } - 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 getUpdateMaskFieldBuilder().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.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> - getUpdateMaskFieldBuilder() { - if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), - getParentForChildren(), - isClean()); - updateMask_ = null; - } - return updateMaskBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UpdateEntryGroupRequestOrBuilder.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UpdateEntryGroupRequestOrBuilder.java deleted file mode 100644 index f47bf6747e64..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UpdateEntryGroupRequestOrBuilder.java +++ /dev/null @@ -1,75 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/datacatalog.proto - -package com.google.cloud.datacatalog.v1beta1; - -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/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UpdateEntryRequest.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UpdateEntryRequest.java deleted file mode 100644 index 91ebda295e65..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UpdateEntryRequest.java +++ /dev/null @@ -1,1149 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/datacatalog.proto - -package com.google.cloud.datacatalog.v1beta1; - -/** - *
- * Request message for
- * [UpdateEntry][google.cloud.datacatalog.v1beta1.DataCatalog.UpdateEntry].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.UpdateEntryRequest} - */ -public final class UpdateEntryRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.UpdateEntryRequest) - UpdateEntryRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use UpdateEntryRequest.newBuilder() to construct. - private UpdateEntryRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private UpdateEntryRequest() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.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); - } - - 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 entry_ != null; - } - /** - *
-   * 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 updateMask_ != null; - } - /** - *
-   * 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 (entry_ != null) { - output.writeMessage(1, getEntry()); - } - if (updateMask_ != null) { - output.writeMessage(2, getUpdateMask()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (entry_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getEntry()); - } - if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getUpdateMask()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @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_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.entry_ = entryBuilder_ == null - ? entry_ - : entryBuilder_.build(); - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null - ? updateMask_ - : updateMaskBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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( - getEntryFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getUpdateMaskFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private com.google.cloud.datacatalog.v1beta1.Entry entry_; - private com.google.protobuf.SingleFieldBuilderV3< - 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); - } - 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 getEntryFieldBuilder().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.SingleFieldBuilderV3< - com.google.cloud.datacatalog.v1beta1.Entry, com.google.cloud.datacatalog.v1beta1.Entry.Builder, com.google.cloud.datacatalog.v1beta1.EntryOrBuilder> - getEntryFieldBuilder() { - if (entryBuilder_ == null) { - entryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - 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.SingleFieldBuilderV3< - 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); - } - 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 getUpdateMaskFieldBuilder().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.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> - getUpdateMaskFieldBuilder() { - if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), - getParentForChildren(), - isClean()); - updateMask_ = null; - } - return updateMaskBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UpdateEntryRequestOrBuilder.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UpdateEntryRequestOrBuilder.java deleted file mode 100644 index a0aa3e143fa7..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UpdateEntryRequestOrBuilder.java +++ /dev/null @@ -1,132 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/datacatalog.proto - -package com.google.cloud.datacatalog.v1beta1; - -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/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UpdatePolicyTagRequest.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UpdatePolicyTagRequest.java deleted file mode 100644 index 0089a2237f1b..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UpdatePolicyTagRequest.java +++ /dev/null @@ -1,957 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/policytagmanager.proto - -package com.google.cloud.datacatalog.v1beta1; - -/** - *
- * Request message for
- * [UpdatePolicyTag][google.cloud.datacatalog.v1beta1.PolicyTagManager.UpdatePolicyTag].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.UpdatePolicyTagRequest} - */ -public final class UpdatePolicyTagRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.UpdatePolicyTagRequest) - UpdatePolicyTagRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use UpdatePolicyTagRequest.newBuilder() to construct. - private UpdatePolicyTagRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private UpdatePolicyTagRequest() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.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); - } - - 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 policyTag_ != null; - } - /** - *
-   * 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 updateMask_ != null; - } - /** - *
-   * 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 (policyTag_ != null) { - output.writeMessage(1, getPolicyTag()); - } - if (updateMask_ != null) { - output.writeMessage(2, getUpdateMask()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (policyTag_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getPolicyTag()); - } - if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getUpdateMask()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @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_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.policyTag_ = policyTagBuilder_ == null - ? policyTag_ - : policyTagBuilder_.build(); - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null - ? updateMask_ - : updateMaskBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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( - getPolicyTagFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getUpdateMaskFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private com.google.cloud.datacatalog.v1beta1.PolicyTag policyTag_; - private com.google.protobuf.SingleFieldBuilderV3< - 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); - } - 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 getPolicyTagFieldBuilder().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.SingleFieldBuilderV3< - com.google.cloud.datacatalog.v1beta1.PolicyTag, com.google.cloud.datacatalog.v1beta1.PolicyTag.Builder, com.google.cloud.datacatalog.v1beta1.PolicyTagOrBuilder> - getPolicyTagFieldBuilder() { - if (policyTagBuilder_ == null) { - policyTagBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - 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.SingleFieldBuilderV3< - 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); - } - 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 getUpdateMaskFieldBuilder().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.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> - getUpdateMaskFieldBuilder() { - if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), - getParentForChildren(), - isClean()); - updateMask_ = null; - } - return updateMaskBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UpdatePolicyTagRequestOrBuilder.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UpdatePolicyTagRequestOrBuilder.java deleted file mode 100644 index e638e39ed1dc..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UpdatePolicyTagRequestOrBuilder.java +++ /dev/null @@ -1,84 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/policytagmanager.proto - -package com.google.cloud.datacatalog.v1beta1; - -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/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UpdateTagRequest.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UpdateTagRequest.java deleted file mode 100644 index 4c7c5374cc4a..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UpdateTagRequest.java +++ /dev/null @@ -1,957 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/datacatalog.proto - -package com.google.cloud.datacatalog.v1beta1; - -/** - *
- * Request message for
- * [UpdateTag][google.cloud.datacatalog.v1beta1.DataCatalog.UpdateTag].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.UpdateTagRequest} - */ -public final class UpdateTagRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.UpdateTagRequest) - UpdateTagRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use UpdateTagRequest.newBuilder() to construct. - private UpdateTagRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private UpdateTagRequest() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.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); - } - - 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 tag_ != null; - } - /** - *
-   * 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 updateMask_ != null; - } - /** - *
-   * 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 (tag_ != null) { - output.writeMessage(1, getTag()); - } - if (updateMask_ != null) { - output.writeMessage(2, getUpdateMask()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (tag_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getTag()); - } - if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getUpdateMask()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @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_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.tag_ = tagBuilder_ == null - ? tag_ - : tagBuilder_.build(); - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null - ? updateMask_ - : updateMaskBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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( - getTagFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getUpdateMaskFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private com.google.cloud.datacatalog.v1beta1.Tag tag_; - private com.google.protobuf.SingleFieldBuilderV3< - 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); - } - 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 getTagFieldBuilder().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.SingleFieldBuilderV3< - com.google.cloud.datacatalog.v1beta1.Tag, com.google.cloud.datacatalog.v1beta1.Tag.Builder, com.google.cloud.datacatalog.v1beta1.TagOrBuilder> - getTagFieldBuilder() { - if (tagBuilder_ == null) { - tagBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - 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.SingleFieldBuilderV3< - 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); - } - 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 getUpdateMaskFieldBuilder().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.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> - getUpdateMaskFieldBuilder() { - if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), - getParentForChildren(), - isClean()); - updateMask_ = null; - } - return updateMaskBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UpdateTagRequestOrBuilder.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UpdateTagRequestOrBuilder.java deleted file mode 100644 index 0ff51ed50578..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UpdateTagRequestOrBuilder.java +++ /dev/null @@ -1,84 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/datacatalog.proto - -package com.google.cloud.datacatalog.v1beta1; - -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/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UpdateTagTemplateFieldRequest.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UpdateTagTemplateFieldRequest.java deleted file mode 100644 index 8b6a69b6e63c..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UpdateTagTemplateFieldRequest.java +++ /dev/null @@ -1,1231 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/datacatalog.proto - -package com.google.cloud.datacatalog.v1beta1; - -/** - *
- * Request message for
- * [UpdateTagTemplateField][google.cloud.datacatalog.v1beta1.DataCatalog.UpdateTagTemplateField].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.UpdateTagTemplateFieldRequest} - */ -public final class UpdateTagTemplateFieldRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.UpdateTagTemplateFieldRequest) - UpdateTagTemplateFieldRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use UpdateTagTemplateFieldRequest.newBuilder() to construct. - private UpdateTagTemplateFieldRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private UpdateTagTemplateFieldRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new UpdateTagTemplateFieldRequest(); - } - - 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.GeneratedMessageV3.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); - } - - 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 tagTemplateField_ != null; - } - /** - *
-   * 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 updateMask_ != null; - } - /** - *
-   * 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.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (tagTemplateField_ != null) { - output.writeMessage(2, getTagTemplateField()); - } - if (updateMask_ != null) { - 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.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (tagTemplateField_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getTagTemplateField()); - } - if (updateMask_ != null) { - 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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @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_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.tagTemplateField_ = tagTemplateFieldBuilder_ == null - ? tagTemplateField_ - : tagTemplateFieldBuilder_.build(); - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null - ? updateMask_ - : updateMaskBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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( - getTagTemplateFieldFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - input.readMessage( - getUpdateMaskFieldBuilder().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.SingleFieldBuilderV3< - 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); - } - 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 getTagTemplateFieldFieldBuilder().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.SingleFieldBuilderV3< - com.google.cloud.datacatalog.v1beta1.TagTemplateField, com.google.cloud.datacatalog.v1beta1.TagTemplateField.Builder, com.google.cloud.datacatalog.v1beta1.TagTemplateFieldOrBuilder> - getTagTemplateFieldFieldBuilder() { - if (tagTemplateFieldBuilder_ == null) { - tagTemplateFieldBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - 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.SingleFieldBuilderV3< - 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); - } - 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 getUpdateMaskFieldBuilder().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.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> - getUpdateMaskFieldBuilder() { - if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), - getParentForChildren(), - isClean()); - updateMask_ = null; - } - return updateMaskBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UpdateTagTemplateFieldRequestOrBuilder.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UpdateTagTemplateFieldRequestOrBuilder.java deleted file mode 100644 index 067341fc3314..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UpdateTagTemplateFieldRequestOrBuilder.java +++ /dev/null @@ -1,132 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/datacatalog.proto - -package com.google.cloud.datacatalog.v1beta1; - -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/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UpdateTagTemplateRequest.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UpdateTagTemplateRequest.java deleted file mode 100644 index 2689b4726c3c..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UpdateTagTemplateRequest.java +++ /dev/null @@ -1,933 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/datacatalog.proto - -package com.google.cloud.datacatalog.v1beta1; - -/** - *
- * Request message for
- * [UpdateTagTemplate][google.cloud.datacatalog.v1beta1.DataCatalog.UpdateTagTemplate].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.UpdateTagTemplateRequest} - */ -public final class UpdateTagTemplateRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.UpdateTagTemplateRequest) - UpdateTagTemplateRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use UpdateTagTemplateRequest.newBuilder() to construct. - private UpdateTagTemplateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private UpdateTagTemplateRequest() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.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); - } - - 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 tagTemplate_ != null; - } - /** - *
-   * 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 updateMask_ != null; - } - /** - *
-   * 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 (tagTemplate_ != null) { - output.writeMessage(1, getTagTemplate()); - } - if (updateMask_ != null) { - output.writeMessage(2, getUpdateMask()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (tagTemplate_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getTagTemplate()); - } - if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getUpdateMask()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @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_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.tagTemplate_ = tagTemplateBuilder_ == null - ? tagTemplate_ - : tagTemplateBuilder_.build(); - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null - ? updateMask_ - : updateMaskBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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( - getTagTemplateFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getUpdateMaskFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private com.google.cloud.datacatalog.v1beta1.TagTemplate tagTemplate_; - private com.google.protobuf.SingleFieldBuilderV3< - 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); - } - 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 getTagTemplateFieldBuilder().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.SingleFieldBuilderV3< - com.google.cloud.datacatalog.v1beta1.TagTemplate, com.google.cloud.datacatalog.v1beta1.TagTemplate.Builder, com.google.cloud.datacatalog.v1beta1.TagTemplateOrBuilder> - getTagTemplateFieldBuilder() { - if (tagTemplateBuilder_ == null) { - tagTemplateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - 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.SingleFieldBuilderV3< - 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); - } - 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 getUpdateMaskFieldBuilder().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.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> - getUpdateMaskFieldBuilder() { - if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), - getParentForChildren(), - isClean()); - updateMask_ = null; - } - return updateMaskBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UpdateTagTemplateRequestOrBuilder.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UpdateTagTemplateRequestOrBuilder.java deleted file mode 100644 index 5ea84f33411b..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UpdateTagTemplateRequestOrBuilder.java +++ /dev/null @@ -1,78 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/datacatalog.proto - -package com.google.cloud.datacatalog.v1beta1; - -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/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UpdateTaxonomyRequest.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UpdateTaxonomyRequest.java deleted file mode 100644 index 360910a0ead9..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UpdateTaxonomyRequest.java +++ /dev/null @@ -1,921 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/policytagmanager.proto - -package com.google.cloud.datacatalog.v1beta1; - -/** - *
- * Request message for
- * [UpdateTaxonomy][google.cloud.datacatalog.v1beta1.PolicyTagManager.UpdateTaxonomy].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.UpdateTaxonomyRequest} - */ -public final class UpdateTaxonomyRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.UpdateTaxonomyRequest) - UpdateTaxonomyRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use UpdateTaxonomyRequest.newBuilder() to construct. - private UpdateTaxonomyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private UpdateTaxonomyRequest() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.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); - } - - 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 taxonomy_ != null; - } - /** - *
-   * 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 updateMask_ != null; - } - /** - *
-   * 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 (taxonomy_ != null) { - output.writeMessage(1, getTaxonomy()); - } - if (updateMask_ != null) { - output.writeMessage(2, getUpdateMask()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (taxonomy_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getTaxonomy()); - } - if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getUpdateMask()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @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_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.taxonomy_ = taxonomyBuilder_ == null - ? taxonomy_ - : taxonomyBuilder_.build(); - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null - ? updateMask_ - : updateMaskBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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( - getTaxonomyFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getUpdateMaskFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private com.google.cloud.datacatalog.v1beta1.Taxonomy taxonomy_; - private com.google.protobuf.SingleFieldBuilderV3< - 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); - } - 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 getTaxonomyFieldBuilder().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.SingleFieldBuilderV3< - com.google.cloud.datacatalog.v1beta1.Taxonomy, com.google.cloud.datacatalog.v1beta1.Taxonomy.Builder, com.google.cloud.datacatalog.v1beta1.TaxonomyOrBuilder> - getTaxonomyFieldBuilder() { - if (taxonomyBuilder_ == null) { - taxonomyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - 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.SingleFieldBuilderV3< - 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); - } - 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 getUpdateMaskFieldBuilder().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.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> - getUpdateMaskFieldBuilder() { - if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), - getParentForChildren(), - isClean()); - updateMask_ = null; - } - return updateMaskBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UpdateTaxonomyRequestOrBuilder.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UpdateTaxonomyRequestOrBuilder.java deleted file mode 100644 index f55e668b0b8a..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UpdateTaxonomyRequestOrBuilder.java +++ /dev/null @@ -1,75 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/policytagmanager.proto - -package com.google.cloud.datacatalog.v1beta1; - -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/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/Usage.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/Usage.java deleted file mode 100644 index c5837b4cfe8e..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/Usage.java +++ /dev/null @@ -1,89 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/usage.proto - -package com.google.cloud.datacatalog.v1beta1; - -public final class Usage { - private 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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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\337\001\n$com.google.cloud" + - ".datacatalog.v1beta1P\001ZFcloud.google.com" + - "/go/datacatalog/apiv1beta1/datacatalogpb" + - ";datacatalogpb\370\001\001\252\002 Google.Cloud.DataCat" + - "alog.V1Beta1\312\002 Google\\Cloud\\DataCatalog\\" + - "V1beta1\352\002#Google::Cloud::DataCatalog::V1" + - "beta1b\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().getMessageTypes().get(0); - internal_static_google_cloud_datacatalog_v1beta1_UsageStats_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.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().getMessageTypes().get(1); - internal_static_google_cloud_datacatalog_v1beta1_UsageSignal_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.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.getNestedTypes().get(0); - internal_static_google_cloud_datacatalog_v1beta1_UsageSignal_UsageWithinTimeRangeEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1beta1_UsageSignal_UsageWithinTimeRangeEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UsageSignal.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UsageSignal.java deleted file mode 100644 index 9536f6d7ffb8..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UsageSignal.java +++ /dev/null @@ -1,976 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/usage.proto - -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} - */ -public final class UsageSignal extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.UsageSignal) - UsageSignalOrBuilder { -private static final long serialVersionUID = 0L; - // Use UsageSignal.newBuilder() to construct. - private UsageSignal(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private UsageSignal() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.MapField internalGetMapField( - int number) { - switch (number) { - case 2: - return internalGetUsageWithinTimeRange(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.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); - } - - 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 updateTime_ != null; - } - /** - *
-   * 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 - 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 (updateTime_ != null) { - output.writeMessage(1, getUpdateTime()); - } - com.google.protobuf.GeneratedMessageV3 - .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 (updateTime_ != null) { - 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__); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.MapField internalGetMapField( - int number) { - switch (number) { - case 2: - return internalGetUsageWithinTimeRange(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 2: - return internalGetMutableUsageWithinTimeRange(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.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() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @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_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.updateTime_ = updateTimeBuilder_ == null - ? updateTime_ - : updateTimeBuilder_.build(); - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.usageWithinTimeRange_ = internalGetUsageWithinTimeRange(); - result.usageWithinTimeRange_.makeImmutable(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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( - getUpdateTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - com.google.protobuf.MapEntry - usageWithinTimeRange__ = input.readMessage( - UsageWithinTimeRangeDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableUsageWithinTimeRange().getMutableMap().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.SingleFieldBuilderV3< - 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); - } - 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 getUpdateTimeFieldBuilder().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.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getUpdateTimeFieldBuilder() { - if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), - getParentForChildren(), - isClean()); - updateTime_ = null; - } - return updateTimeBuilder_; - } - - private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.datacatalog.v1beta1.UsageStats> usageWithinTimeRange_; - private com.google.protobuf.MapField - internalGetUsageWithinTimeRange() { - if (usageWithinTimeRange_ == null) { - return com.google.protobuf.MapField.emptyMapField( - UsageWithinTimeRangeDefaultEntryHolder.defaultEntry); - } - return usageWithinTimeRange_; - } - private com.google.protobuf.MapField - internalGetMutableUsageWithinTimeRange() { - if (usageWithinTimeRange_ == null) { - usageWithinTimeRange_ = com.google.protobuf.MapField.newMapField( - UsageWithinTimeRangeDefaultEntryHolder.defaultEntry); - } - if (!usageWithinTimeRange_.isMutable()) { - usageWithinTimeRange_ = usageWithinTimeRange_.copy(); - } - bitField0_ |= 0x00000002; - onChanged(); - 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); - } - public Builder clearUsageWithinTimeRange() { - bitField0_ = (bitField0_ & ~0x00000002); - internalGetMutableUsageWithinTimeRange().getMutableMap() - .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().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableUsageWithinTimeRange() { - bitField0_ |= 0x00000002; - return internalGetMutableUsageWithinTimeRange().getMutableMap(); - } - /** - *
-     * 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().getMutableMap() - .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) { - internalGetMutableUsageWithinTimeRange().getMutableMap() - .putAll(values); - bitField0_ |= 0x00000002; - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UsageSignalOrBuilder.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UsageSignalOrBuilder.java deleted file mode 100644 index 2ada342d2013..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UsageSignalOrBuilder.java +++ /dev/null @@ -1,95 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/usage.proto - -package com.google.cloud.datacatalog.v1beta1; - -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/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UsageStats.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UsageStats.java deleted file mode 100644 index 5f93b3665378..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UsageStats.java +++ /dev/null @@ -1,769 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/usage.proto - -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} - */ -public final class UsageStats extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.UsageStats) - UsageStatsOrBuilder { -private static final long serialVersionUID = 0L; - // Use UsageStats.newBuilder() to construct. - private UsageStats(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private UsageStats() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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.GeneratedMessageV3.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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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 (other.getTotalCompletions() != 0F) { - setTotalCompletions(other.getTotalCompletions()); - } - if (other.getTotalFailures() != 0F) { - setTotalFailures(other.getTotalFailures()); - } - if (other.getTotalCancellations() != 0F) { - setTotalCancellations(other.getTotalCancellations()); - } - if (other.getTotalExecutionTimeForCompletionsMillis() != 0F) { - 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; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UsageStatsOrBuilder.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UsageStatsOrBuilder.java deleted file mode 100644 index 796ccd76a5d4..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UsageStatsOrBuilder.java +++ /dev/null @@ -1,51 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/usage.proto - -package com.google.cloud.datacatalog.v1beta1; - -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/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ViewSpec.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ViewSpec.java deleted file mode 100644 index f8f61932bbf9..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ViewSpec.java +++ /dev/null @@ -1,577 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/table_spec.proto - -package com.google.cloud.datacatalog.v1beta1; - -/** - *
- * Table view specification.
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.ViewSpec} - */ -public final class ViewSpec extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.ViewSpec) - ViewSpecOrBuilder { -private static final long serialVersionUID = 0L; - // Use ViewSpec.newBuilder() to construct. - private ViewSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ViewSpec() { - viewQuery_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ViewSpec(); - } - - 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.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(viewQuery_)) { - com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(viewQuery_)) { - size += com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .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.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.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; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.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/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ViewSpecOrBuilder.java b/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ViewSpecOrBuilder.java deleted file mode 100644 index e8b183bd5b86..000000000000 --- a/owl-bot-staging/java-datacatalog/v1beta1/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ViewSpecOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datacatalog/v1beta1/table_spec.proto - -package com.google.cloud.datacatalog.v1beta1; - -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(); -}