All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.cloud.metastore.v1beta.MetadataIntegration Maven / Gradle / Ivy

/*
 * Copyright 2024 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/cloud/metastore/v1beta/metastore.proto

// Protobuf Java Version: 3.25.5
package com.google.cloud.metastore.v1beta;

/**
 *
 *
 * 
 * Specifies how metastore metadata should be integrated with external services.
 * 
* * Protobuf type {@code google.cloud.metastore.v1beta.MetadataIntegration} */ public final class MetadataIntegration extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.metastore.v1beta.MetadataIntegration) MetadataIntegrationOrBuilder { private static final long serialVersionUID = 0L; // Use MetadataIntegration.newBuilder() to construct. private MetadataIntegration(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MetadataIntegration() {} @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new MetadataIntegration(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.metastore.v1beta.MetastoreProto .internal_static_google_cloud_metastore_v1beta_MetadataIntegration_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.metastore.v1beta.MetastoreProto .internal_static_google_cloud_metastore_v1beta_MetadataIntegration_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.metastore.v1beta.MetadataIntegration.class, com.google.cloud.metastore.v1beta.MetadataIntegration.Builder.class); } private int bitField0_; public static final int DATA_CATALOG_CONFIG_FIELD_NUMBER = 1; private com.google.cloud.metastore.v1beta.DataCatalogConfig dataCatalogConfig_; /** * * *
   * The integration config for the Data Catalog service.
   * 
* * .google.cloud.metastore.v1beta.DataCatalogConfig data_catalog_config = 1; * * @return Whether the dataCatalogConfig field is set. */ @java.lang.Override public boolean hasDataCatalogConfig() { return ((bitField0_ & 0x00000001) != 0); } /** * * *
   * The integration config for the Data Catalog service.
   * 
* * .google.cloud.metastore.v1beta.DataCatalogConfig data_catalog_config = 1; * * @return The dataCatalogConfig. */ @java.lang.Override public com.google.cloud.metastore.v1beta.DataCatalogConfig getDataCatalogConfig() { return dataCatalogConfig_ == null ? com.google.cloud.metastore.v1beta.DataCatalogConfig.getDefaultInstance() : dataCatalogConfig_; } /** * * *
   * The integration config for the Data Catalog service.
   * 
* * .google.cloud.metastore.v1beta.DataCatalogConfig data_catalog_config = 1; */ @java.lang.Override public com.google.cloud.metastore.v1beta.DataCatalogConfigOrBuilder getDataCatalogConfigOrBuilder() { return dataCatalogConfig_ == null ? com.google.cloud.metastore.v1beta.DataCatalogConfig.getDefaultInstance() : dataCatalogConfig_; } public static final int DATAPLEX_CONFIG_FIELD_NUMBER = 2; private com.google.cloud.metastore.v1beta.DataplexConfig dataplexConfig_; /** * * *
   * The integration config for the Dataplex service.
   * 
* * .google.cloud.metastore.v1beta.DataplexConfig dataplex_config = 2; * * @return Whether the dataplexConfig field is set. */ @java.lang.Override public boolean hasDataplexConfig() { return ((bitField0_ & 0x00000002) != 0); } /** * * *
   * The integration config for the Dataplex service.
   * 
* * .google.cloud.metastore.v1beta.DataplexConfig dataplex_config = 2; * * @return The dataplexConfig. */ @java.lang.Override public com.google.cloud.metastore.v1beta.DataplexConfig getDataplexConfig() { return dataplexConfig_ == null ? com.google.cloud.metastore.v1beta.DataplexConfig.getDefaultInstance() : dataplexConfig_; } /** * * *
   * The integration config for the Dataplex service.
   * 
* * .google.cloud.metastore.v1beta.DataplexConfig dataplex_config = 2; */ @java.lang.Override public com.google.cloud.metastore.v1beta.DataplexConfigOrBuilder getDataplexConfigOrBuilder() { return dataplexConfig_ == null ? com.google.cloud.metastore.v1beta.DataplexConfig.getDefaultInstance() : dataplexConfig_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getDataCatalogConfig()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getDataplexConfig()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getDataCatalogConfig()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDataplexConfig()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.cloud.metastore.v1beta.MetadataIntegration)) { return super.equals(obj); } com.google.cloud.metastore.v1beta.MetadataIntegration other = (com.google.cloud.metastore.v1beta.MetadataIntegration) obj; if (hasDataCatalogConfig() != other.hasDataCatalogConfig()) return false; if (hasDataCatalogConfig()) { if (!getDataCatalogConfig().equals(other.getDataCatalogConfig())) return false; } if (hasDataplexConfig() != other.hasDataplexConfig()) return false; if (hasDataplexConfig()) { if (!getDataplexConfig().equals(other.getDataplexConfig())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasDataCatalogConfig()) { hash = (37 * hash) + DATA_CATALOG_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getDataCatalogConfig().hashCode(); } if (hasDataplexConfig()) { hash = (37 * hash) + DATAPLEX_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getDataplexConfig().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.metastore.v1beta.MetadataIntegration parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.metastore.v1beta.MetadataIntegration parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.metastore.v1beta.MetadataIntegration parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.metastore.v1beta.MetadataIntegration parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.metastore.v1beta.MetadataIntegration parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.metastore.v1beta.MetadataIntegration parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.metastore.v1beta.MetadataIntegration parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.metastore.v1beta.MetadataIntegration parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.cloud.metastore.v1beta.MetadataIntegration parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.metastore.v1beta.MetadataIntegration parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.cloud.metastore.v1beta.MetadataIntegration parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.metastore.v1beta.MetadataIntegration parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder( com.google.cloud.metastore.v1beta.MetadataIntegration prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * * *
   * Specifies how metastore metadata should be integrated with external services.
   * 
* * Protobuf type {@code google.cloud.metastore.v1beta.MetadataIntegration} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.metastore.v1beta.MetadataIntegration) com.google.cloud.metastore.v1beta.MetadataIntegrationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.metastore.v1beta.MetastoreProto .internal_static_google_cloud_metastore_v1beta_MetadataIntegration_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.metastore.v1beta.MetastoreProto .internal_static_google_cloud_metastore_v1beta_MetadataIntegration_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.metastore.v1beta.MetadataIntegration.class, com.google.cloud.metastore.v1beta.MetadataIntegration.Builder.class); } // Construct using com.google.cloud.metastore.v1beta.MetadataIntegration.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getDataCatalogConfigFieldBuilder(); getDataplexConfigFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; dataCatalogConfig_ = null; if (dataCatalogConfigBuilder_ != null) { dataCatalogConfigBuilder_.dispose(); dataCatalogConfigBuilder_ = null; } dataplexConfig_ = null; if (dataplexConfigBuilder_ != null) { dataplexConfigBuilder_.dispose(); dataplexConfigBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.metastore.v1beta.MetastoreProto .internal_static_google_cloud_metastore_v1beta_MetadataIntegration_descriptor; } @java.lang.Override public com.google.cloud.metastore.v1beta.MetadataIntegration getDefaultInstanceForType() { return com.google.cloud.metastore.v1beta.MetadataIntegration.getDefaultInstance(); } @java.lang.Override public com.google.cloud.metastore.v1beta.MetadataIntegration build() { com.google.cloud.metastore.v1beta.MetadataIntegration result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.cloud.metastore.v1beta.MetadataIntegration buildPartial() { com.google.cloud.metastore.v1beta.MetadataIntegration result = new com.google.cloud.metastore.v1beta.MetadataIntegration(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.cloud.metastore.v1beta.MetadataIntegration result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.dataCatalogConfig_ = dataCatalogConfigBuilder_ == null ? dataCatalogConfig_ : dataCatalogConfigBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.dataplexConfig_ = dataplexConfigBuilder_ == null ? dataplexConfig_ : dataplexConfigBuilder_.build(); 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.metastore.v1beta.MetadataIntegration) { return mergeFrom((com.google.cloud.metastore.v1beta.MetadataIntegration) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.cloud.metastore.v1beta.MetadataIntegration other) { if (other == com.google.cloud.metastore.v1beta.MetadataIntegration.getDefaultInstance()) return this; if (other.hasDataCatalogConfig()) { mergeDataCatalogConfig(other.getDataCatalogConfig()); } if (other.hasDataplexConfig()) { mergeDataplexConfig(other.getDataplexConfig()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { 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( getDataCatalogConfigFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getDataplexConfigFieldBuilder().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.metastore.v1beta.DataCatalogConfig dataCatalogConfig_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.metastore.v1beta.DataCatalogConfig, com.google.cloud.metastore.v1beta.DataCatalogConfig.Builder, com.google.cloud.metastore.v1beta.DataCatalogConfigOrBuilder> dataCatalogConfigBuilder_; /** * * *
     * The integration config for the Data Catalog service.
     * 
* * .google.cloud.metastore.v1beta.DataCatalogConfig data_catalog_config = 1; * * @return Whether the dataCatalogConfig field is set. */ public boolean hasDataCatalogConfig() { return ((bitField0_ & 0x00000001) != 0); } /** * * *
     * The integration config for the Data Catalog service.
     * 
* * .google.cloud.metastore.v1beta.DataCatalogConfig data_catalog_config = 1; * * @return The dataCatalogConfig. */ public com.google.cloud.metastore.v1beta.DataCatalogConfig getDataCatalogConfig() { if (dataCatalogConfigBuilder_ == null) { return dataCatalogConfig_ == null ? com.google.cloud.metastore.v1beta.DataCatalogConfig.getDefaultInstance() : dataCatalogConfig_; } else { return dataCatalogConfigBuilder_.getMessage(); } } /** * * *
     * The integration config for the Data Catalog service.
     * 
* * .google.cloud.metastore.v1beta.DataCatalogConfig data_catalog_config = 1; */ public Builder setDataCatalogConfig(com.google.cloud.metastore.v1beta.DataCatalogConfig value) { if (dataCatalogConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); } dataCatalogConfig_ = value; } else { dataCatalogConfigBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
     * The integration config for the Data Catalog service.
     * 
* * .google.cloud.metastore.v1beta.DataCatalogConfig data_catalog_config = 1; */ public Builder setDataCatalogConfig( com.google.cloud.metastore.v1beta.DataCatalogConfig.Builder builderForValue) { if (dataCatalogConfigBuilder_ == null) { dataCatalogConfig_ = builderForValue.build(); } else { dataCatalogConfigBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
     * The integration config for the Data Catalog service.
     * 
* * .google.cloud.metastore.v1beta.DataCatalogConfig data_catalog_config = 1; */ public Builder mergeDataCatalogConfig( com.google.cloud.metastore.v1beta.DataCatalogConfig value) { if (dataCatalogConfigBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && dataCatalogConfig_ != null && dataCatalogConfig_ != com.google.cloud.metastore.v1beta.DataCatalogConfig.getDefaultInstance()) { getDataCatalogConfigBuilder().mergeFrom(value); } else { dataCatalogConfig_ = value; } } else { dataCatalogConfigBuilder_.mergeFrom(value); } if (dataCatalogConfig_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** * * *
     * The integration config for the Data Catalog service.
     * 
* * .google.cloud.metastore.v1beta.DataCatalogConfig data_catalog_config = 1; */ public Builder clearDataCatalogConfig() { bitField0_ = (bitField0_ & ~0x00000001); dataCatalogConfig_ = null; if (dataCatalogConfigBuilder_ != null) { dataCatalogConfigBuilder_.dispose(); dataCatalogConfigBuilder_ = null; } onChanged(); return this; } /** * * *
     * The integration config for the Data Catalog service.
     * 
* * .google.cloud.metastore.v1beta.DataCatalogConfig data_catalog_config = 1; */ public com.google.cloud.metastore.v1beta.DataCatalogConfig.Builder getDataCatalogConfigBuilder() { bitField0_ |= 0x00000001; onChanged(); return getDataCatalogConfigFieldBuilder().getBuilder(); } /** * * *
     * The integration config for the Data Catalog service.
     * 
* * .google.cloud.metastore.v1beta.DataCatalogConfig data_catalog_config = 1; */ public com.google.cloud.metastore.v1beta.DataCatalogConfigOrBuilder getDataCatalogConfigOrBuilder() { if (dataCatalogConfigBuilder_ != null) { return dataCatalogConfigBuilder_.getMessageOrBuilder(); } else { return dataCatalogConfig_ == null ? com.google.cloud.metastore.v1beta.DataCatalogConfig.getDefaultInstance() : dataCatalogConfig_; } } /** * * *
     * The integration config for the Data Catalog service.
     * 
* * .google.cloud.metastore.v1beta.DataCatalogConfig data_catalog_config = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.metastore.v1beta.DataCatalogConfig, com.google.cloud.metastore.v1beta.DataCatalogConfig.Builder, com.google.cloud.metastore.v1beta.DataCatalogConfigOrBuilder> getDataCatalogConfigFieldBuilder() { if (dataCatalogConfigBuilder_ == null) { dataCatalogConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.metastore.v1beta.DataCatalogConfig, com.google.cloud.metastore.v1beta.DataCatalogConfig.Builder, com.google.cloud.metastore.v1beta.DataCatalogConfigOrBuilder>( getDataCatalogConfig(), getParentForChildren(), isClean()); dataCatalogConfig_ = null; } return dataCatalogConfigBuilder_; } private com.google.cloud.metastore.v1beta.DataplexConfig dataplexConfig_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.metastore.v1beta.DataplexConfig, com.google.cloud.metastore.v1beta.DataplexConfig.Builder, com.google.cloud.metastore.v1beta.DataplexConfigOrBuilder> dataplexConfigBuilder_; /** * * *
     * The integration config for the Dataplex service.
     * 
* * .google.cloud.metastore.v1beta.DataplexConfig dataplex_config = 2; * * @return Whether the dataplexConfig field is set. */ public boolean hasDataplexConfig() { return ((bitField0_ & 0x00000002) != 0); } /** * * *
     * The integration config for the Dataplex service.
     * 
* * .google.cloud.metastore.v1beta.DataplexConfig dataplex_config = 2; * * @return The dataplexConfig. */ public com.google.cloud.metastore.v1beta.DataplexConfig getDataplexConfig() { if (dataplexConfigBuilder_ == null) { return dataplexConfig_ == null ? com.google.cloud.metastore.v1beta.DataplexConfig.getDefaultInstance() : dataplexConfig_; } else { return dataplexConfigBuilder_.getMessage(); } } /** * * *
     * The integration config for the Dataplex service.
     * 
* * .google.cloud.metastore.v1beta.DataplexConfig dataplex_config = 2; */ public Builder setDataplexConfig(com.google.cloud.metastore.v1beta.DataplexConfig value) { if (dataplexConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); } dataplexConfig_ = value; } else { dataplexConfigBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
     * The integration config for the Dataplex service.
     * 
* * .google.cloud.metastore.v1beta.DataplexConfig dataplex_config = 2; */ public Builder setDataplexConfig( com.google.cloud.metastore.v1beta.DataplexConfig.Builder builderForValue) { if (dataplexConfigBuilder_ == null) { dataplexConfig_ = builderForValue.build(); } else { dataplexConfigBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
     * The integration config for the Dataplex service.
     * 
* * .google.cloud.metastore.v1beta.DataplexConfig dataplex_config = 2; */ public Builder mergeDataplexConfig(com.google.cloud.metastore.v1beta.DataplexConfig value) { if (dataplexConfigBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && dataplexConfig_ != null && dataplexConfig_ != com.google.cloud.metastore.v1beta.DataplexConfig.getDefaultInstance()) { getDataplexConfigBuilder().mergeFrom(value); } else { dataplexConfig_ = value; } } else { dataplexConfigBuilder_.mergeFrom(value); } if (dataplexConfig_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** * * *
     * The integration config for the Dataplex service.
     * 
* * .google.cloud.metastore.v1beta.DataplexConfig dataplex_config = 2; */ public Builder clearDataplexConfig() { bitField0_ = (bitField0_ & ~0x00000002); dataplexConfig_ = null; if (dataplexConfigBuilder_ != null) { dataplexConfigBuilder_.dispose(); dataplexConfigBuilder_ = null; } onChanged(); return this; } /** * * *
     * The integration config for the Dataplex service.
     * 
* * .google.cloud.metastore.v1beta.DataplexConfig dataplex_config = 2; */ public com.google.cloud.metastore.v1beta.DataplexConfig.Builder getDataplexConfigBuilder() { bitField0_ |= 0x00000002; onChanged(); return getDataplexConfigFieldBuilder().getBuilder(); } /** * * *
     * The integration config for the Dataplex service.
     * 
* * .google.cloud.metastore.v1beta.DataplexConfig dataplex_config = 2; */ public com.google.cloud.metastore.v1beta.DataplexConfigOrBuilder getDataplexConfigOrBuilder() { if (dataplexConfigBuilder_ != null) { return dataplexConfigBuilder_.getMessageOrBuilder(); } else { return dataplexConfig_ == null ? com.google.cloud.metastore.v1beta.DataplexConfig.getDefaultInstance() : dataplexConfig_; } } /** * * *
     * The integration config for the Dataplex service.
     * 
* * .google.cloud.metastore.v1beta.DataplexConfig dataplex_config = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.metastore.v1beta.DataplexConfig, com.google.cloud.metastore.v1beta.DataplexConfig.Builder, com.google.cloud.metastore.v1beta.DataplexConfigOrBuilder> getDataplexConfigFieldBuilder() { if (dataplexConfigBuilder_ == null) { dataplexConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.metastore.v1beta.DataplexConfig, com.google.cloud.metastore.v1beta.DataplexConfig.Builder, com.google.cloud.metastore.v1beta.DataplexConfigOrBuilder>( getDataplexConfig(), getParentForChildren(), isClean()); dataplexConfig_ = null; } return dataplexConfigBuilder_; } @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.cloud.metastore.v1beta.MetadataIntegration) } // @@protoc_insertion_point(class_scope:google.cloud.metastore.v1beta.MetadataIntegration) private static final com.google.cloud.metastore.v1beta.MetadataIntegration DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.metastore.v1beta.MetadataIntegration(); } public static com.google.cloud.metastore.v1beta.MetadataIntegration getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public MetadataIntegration parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.cloud.metastore.v1beta.MetadataIntegration getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy