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

com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest Maven / Gradle / Ivy

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

package com.google.cloud.datastream.v1;

/**
 *
 *
 * 
 * Request message for 'discover' ConnectionProfile request.
 * 
* * Protobuf type {@code google.cloud.datastream.v1.DiscoverConnectionProfileRequest} */ public final class DiscoverConnectionProfileRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.DiscoverConnectionProfileRequest) DiscoverConnectionProfileRequestOrBuilder { private static final long serialVersionUID = 0L; // Use DiscoverConnectionProfileRequest.newBuilder() to construct. private DiscoverConnectionProfileRequest( com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DiscoverConnectionProfileRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DiscoverConnectionProfileRequest(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private DiscoverConnectionProfileRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); 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(); parent_ = s; break; } case 24: { hierarchyCase_ = 3; hierarchy_ = input.readBool(); break; } case 32: { hierarchyCase_ = 4; hierarchy_ = input.readInt32(); break; } case 802: { com.google.cloud.datastream.v1.OracleRdbms.Builder subBuilder = null; if (dataObjectCase_ == 100) { subBuilder = ((com.google.cloud.datastream.v1.OracleRdbms) dataObject_).toBuilder(); } dataObject_ = input.readMessage( com.google.cloud.datastream.v1.OracleRdbms.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.google.cloud.datastream.v1.OracleRdbms) dataObject_); dataObject_ = subBuilder.buildPartial(); } dataObjectCase_ = 100; break; } case 810: { com.google.cloud.datastream.v1.MysqlRdbms.Builder subBuilder = null; if (dataObjectCase_ == 101) { subBuilder = ((com.google.cloud.datastream.v1.MysqlRdbms) dataObject_).toBuilder(); } dataObject_ = input.readMessage( com.google.cloud.datastream.v1.MysqlRdbms.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.google.cloud.datastream.v1.MysqlRdbms) dataObject_); dataObject_ = subBuilder.buildPartial(); } dataObjectCase_ = 101; break; } case 1602: { com.google.cloud.datastream.v1.ConnectionProfile.Builder subBuilder = null; if (targetCase_ == 200) { subBuilder = ((com.google.cloud.datastream.v1.ConnectionProfile) target_).toBuilder(); } target_ = input.readMessage( com.google.cloud.datastream.v1.ConnectionProfile.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.google.cloud.datastream.v1.ConnectionProfile) target_); target_ = subBuilder.buildPartial(); } targetCase_ = 200; break; } case 1610: { java.lang.String s = input.readStringRequireUtf8(); targetCase_ = 201; target_ = s; break; } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.datastream.v1.DatastreamProto .internal_static_google_cloud_datastream_v1_DiscoverConnectionProfileRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.datastream.v1.DatastreamProto .internal_static_google_cloud_datastream_v1_DiscoverConnectionProfileRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest.class, com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest.Builder.class); } private int targetCase_ = 0; private java.lang.Object target_; public enum TargetCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { CONNECTION_PROFILE(200), CONNECTION_PROFILE_NAME(201), TARGET_NOT_SET(0); private final int value; private TargetCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static TargetCase valueOf(int value) { return forNumber(value); } public static TargetCase forNumber(int value) { switch (value) { case 200: return CONNECTION_PROFILE; case 201: return CONNECTION_PROFILE_NAME; case 0: return TARGET_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public TargetCase getTargetCase() { return TargetCase.forNumber(targetCase_); } private int hierarchyCase_ = 0; private java.lang.Object hierarchy_; public enum HierarchyCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { FULL_HIERARCHY(3), HIERARCHY_DEPTH(4), HIERARCHY_NOT_SET(0); private final int value; private HierarchyCase(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 HierarchyCase valueOf(int value) { return forNumber(value); } public static HierarchyCase forNumber(int value) { switch (value) { case 3: return FULL_HIERARCHY; case 4: return HIERARCHY_DEPTH; case 0: return HIERARCHY_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public HierarchyCase getHierarchyCase() { return HierarchyCase.forNumber(hierarchyCase_); } private int dataObjectCase_ = 0; private java.lang.Object dataObject_; public enum DataObjectCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { ORACLE_RDBMS(100), MYSQL_RDBMS(101), DATAOBJECT_NOT_SET(0); private final int value; private DataObjectCase(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 DataObjectCase valueOf(int value) { return forNumber(value); } public static DataObjectCase forNumber(int value) { switch (value) { case 100: return ORACLE_RDBMS; case 101: return MYSQL_RDBMS; case 0: return DATAOBJECT_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public DataObjectCase getDataObjectCase() { return DataObjectCase.forNumber(dataObjectCase_); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** * * *
   * Required. The parent resource of the connection profile type. Must be in the
   * format `projects/*/locations/*`.
   * 
* * * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return The parent. */ @java.lang.Override public java.lang.String getParent() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** * * *
   * Required. The parent resource of the connection profile type. Must be in the
   * format `projects/*/locations/*`.
   * 
* * * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return The bytes for parent. */ @java.lang.Override public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CONNECTION_PROFILE_FIELD_NUMBER = 200; /** * * *
   * An ad-hoc connection profile configuration.
   * 
* * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 200; * * @return Whether the connectionProfile field is set. */ @java.lang.Override public boolean hasConnectionProfile() { return targetCase_ == 200; } /** * * *
   * An ad-hoc connection profile configuration.
   * 
* * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 200; * * @return The connectionProfile. */ @java.lang.Override public com.google.cloud.datastream.v1.ConnectionProfile getConnectionProfile() { if (targetCase_ == 200) { return (com.google.cloud.datastream.v1.ConnectionProfile) target_; } return com.google.cloud.datastream.v1.ConnectionProfile.getDefaultInstance(); } /** * * *
   * An ad-hoc connection profile configuration.
   * 
* * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 200; */ @java.lang.Override public com.google.cloud.datastream.v1.ConnectionProfileOrBuilder getConnectionProfileOrBuilder() { if (targetCase_ == 200) { return (com.google.cloud.datastream.v1.ConnectionProfile) target_; } return com.google.cloud.datastream.v1.ConnectionProfile.getDefaultInstance(); } public static final int CONNECTION_PROFILE_NAME_FIELD_NUMBER = 201; /** * * *
   * A reference to an existing connection profile.
   * 
* * string connection_profile_name = 201; * * @return Whether the connectionProfileName field is set. */ public boolean hasConnectionProfileName() { return targetCase_ == 201; } /** * * *
   * A reference to an existing connection profile.
   * 
* * string connection_profile_name = 201; * * @return The connectionProfileName. */ public java.lang.String getConnectionProfileName() { java.lang.Object ref = ""; if (targetCase_ == 201) { ref = target_; } if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (targetCase_ == 201) { target_ = s; } return s; } } /** * * *
   * A reference to an existing connection profile.
   * 
* * string connection_profile_name = 201; * * @return The bytes for connectionProfileName. */ public com.google.protobuf.ByteString getConnectionProfileNameBytes() { java.lang.Object ref = ""; if (targetCase_ == 201) { ref = target_; } if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (targetCase_ == 201) { target_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int FULL_HIERARCHY_FIELD_NUMBER = 3; /** * * *
   * Whether to retrieve the full hierarchy of data objects (TRUE) or only the
   * current level (FALSE).
   * 
* * bool full_hierarchy = 3; * * @return Whether the fullHierarchy field is set. */ @java.lang.Override public boolean hasFullHierarchy() { return hierarchyCase_ == 3; } /** * * *
   * Whether to retrieve the full hierarchy of data objects (TRUE) or only the
   * current level (FALSE).
   * 
* * bool full_hierarchy = 3; * * @return The fullHierarchy. */ @java.lang.Override public boolean getFullHierarchy() { if (hierarchyCase_ == 3) { return (java.lang.Boolean) hierarchy_; } return false; } public static final int HIERARCHY_DEPTH_FIELD_NUMBER = 4; /** * * *
   * The number of hierarchy levels below the current level to be retrieved.
   * 
* * int32 hierarchy_depth = 4; * * @return Whether the hierarchyDepth field is set. */ @java.lang.Override public boolean hasHierarchyDepth() { return hierarchyCase_ == 4; } /** * * *
   * The number of hierarchy levels below the current level to be retrieved.
   * 
* * int32 hierarchy_depth = 4; * * @return The hierarchyDepth. */ @java.lang.Override public int getHierarchyDepth() { if (hierarchyCase_ == 4) { return (java.lang.Integer) hierarchy_; } return 0; } public static final int ORACLE_RDBMS_FIELD_NUMBER = 100; /** * * *
   * Oracle RDBMS to enrich with child data objects and metadata.
   * 
* * .google.cloud.datastream.v1.OracleRdbms oracle_rdbms = 100; * * @return Whether the oracleRdbms field is set. */ @java.lang.Override public boolean hasOracleRdbms() { return dataObjectCase_ == 100; } /** * * *
   * Oracle RDBMS to enrich with child data objects and metadata.
   * 
* * .google.cloud.datastream.v1.OracleRdbms oracle_rdbms = 100; * * @return The oracleRdbms. */ @java.lang.Override public com.google.cloud.datastream.v1.OracleRdbms getOracleRdbms() { if (dataObjectCase_ == 100) { return (com.google.cloud.datastream.v1.OracleRdbms) dataObject_; } return com.google.cloud.datastream.v1.OracleRdbms.getDefaultInstance(); } /** * * *
   * Oracle RDBMS to enrich with child data objects and metadata.
   * 
* * .google.cloud.datastream.v1.OracleRdbms oracle_rdbms = 100; */ @java.lang.Override public com.google.cloud.datastream.v1.OracleRdbmsOrBuilder getOracleRdbmsOrBuilder() { if (dataObjectCase_ == 100) { return (com.google.cloud.datastream.v1.OracleRdbms) dataObject_; } return com.google.cloud.datastream.v1.OracleRdbms.getDefaultInstance(); } public static final int MYSQL_RDBMS_FIELD_NUMBER = 101; /** * * *
   * MySQL RDBMS to enrich with child data objects and metadata.
   * 
* * .google.cloud.datastream.v1.MysqlRdbms mysql_rdbms = 101; * * @return Whether the mysqlRdbms field is set. */ @java.lang.Override public boolean hasMysqlRdbms() { return dataObjectCase_ == 101; } /** * * *
   * MySQL RDBMS to enrich with child data objects and metadata.
   * 
* * .google.cloud.datastream.v1.MysqlRdbms mysql_rdbms = 101; * * @return The mysqlRdbms. */ @java.lang.Override public com.google.cloud.datastream.v1.MysqlRdbms getMysqlRdbms() { if (dataObjectCase_ == 101) { return (com.google.cloud.datastream.v1.MysqlRdbms) dataObject_; } return com.google.cloud.datastream.v1.MysqlRdbms.getDefaultInstance(); } /** * * *
   * MySQL RDBMS to enrich with child data objects and metadata.
   * 
* * .google.cloud.datastream.v1.MysqlRdbms mysql_rdbms = 101; */ @java.lang.Override public com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder getMysqlRdbmsOrBuilder() { if (dataObjectCase_ == 101) { return (com.google.cloud.datastream.v1.MysqlRdbms) dataObject_; } return com.google.cloud.datastream.v1.MysqlRdbms.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 (hierarchyCase_ == 3) { output.writeBool(3, (boolean) ((java.lang.Boolean) hierarchy_)); } if (hierarchyCase_ == 4) { output.writeInt32(4, (int) ((java.lang.Integer) hierarchy_)); } if (dataObjectCase_ == 100) { output.writeMessage(100, (com.google.cloud.datastream.v1.OracleRdbms) dataObject_); } if (dataObjectCase_ == 101) { output.writeMessage(101, (com.google.cloud.datastream.v1.MysqlRdbms) dataObject_); } if (targetCase_ == 200) { output.writeMessage(200, (com.google.cloud.datastream.v1.ConnectionProfile) target_); } if (targetCase_ == 201) { com.google.protobuf.GeneratedMessageV3.writeString(output, 201, target_); } unknownFields.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 (hierarchyCase_ == 3) { size += com.google.protobuf.CodedOutputStream.computeBoolSize( 3, (boolean) ((java.lang.Boolean) hierarchy_)); } if (hierarchyCase_ == 4) { size += com.google.protobuf.CodedOutputStream.computeInt32Size( 4, (int) ((java.lang.Integer) hierarchy_)); } if (dataObjectCase_ == 100) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 100, (com.google.cloud.datastream.v1.OracleRdbms) dataObject_); } if (dataObjectCase_ == 101) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 101, (com.google.cloud.datastream.v1.MysqlRdbms) dataObject_); } if (targetCase_ == 200) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 200, (com.google.cloud.datastream.v1.ConnectionProfile) target_); } if (targetCase_ == 201) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(201, target_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest)) { return super.equals(obj); } com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest other = (com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest) obj; if (!getParent().equals(other.getParent())) return false; if (!getTargetCase().equals(other.getTargetCase())) return false; switch (targetCase_) { case 200: if (!getConnectionProfile().equals(other.getConnectionProfile())) return false; break; case 201: if (!getConnectionProfileName().equals(other.getConnectionProfileName())) return false; break; case 0: default: } if (!getHierarchyCase().equals(other.getHierarchyCase())) return false; switch (hierarchyCase_) { case 3: if (getFullHierarchy() != other.getFullHierarchy()) return false; break; case 4: if (getHierarchyDepth() != other.getHierarchyDepth()) return false; break; case 0: default: } if (!getDataObjectCase().equals(other.getDataObjectCase())) return false; switch (dataObjectCase_) { case 100: if (!getOracleRdbms().equals(other.getOracleRdbms())) return false; break; case 101: if (!getMysqlRdbms().equals(other.getMysqlRdbms())) return false; break; case 0: default: } if (!unknownFields.equals(other.unknownFields)) return false; 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 (targetCase_) { case 200: hash = (37 * hash) + CONNECTION_PROFILE_FIELD_NUMBER; hash = (53 * hash) + getConnectionProfile().hashCode(); break; case 201: hash = (37 * hash) + CONNECTION_PROFILE_NAME_FIELD_NUMBER; hash = (53 * hash) + getConnectionProfileName().hashCode(); break; case 0: default: } switch (hierarchyCase_) { case 3: hash = (37 * hash) + FULL_HIERARCHY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getFullHierarchy()); break; case 4: hash = (37 * hash) + HIERARCHY_DEPTH_FIELD_NUMBER; hash = (53 * hash) + getHierarchyDepth(); break; case 0: default: } switch (dataObjectCase_) { case 100: hash = (37 * hash) + ORACLE_RDBMS_FIELD_NUMBER; hash = (53 * hash) + getOracleRdbms().hashCode(); break; case 101: hash = (37 * hash) + MYSQL_RDBMS_FIELD_NUMBER; hash = (53 * hash) + getMysqlRdbms().hashCode(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest parseFrom( byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder( com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new 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 'discover' ConnectionProfile request.
   * 
* * Protobuf type {@code google.cloud.datastream.v1.DiscoverConnectionProfileRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.DiscoverConnectionProfileRequest) com.google.cloud.datastream.v1.DiscoverConnectionProfileRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.datastream.v1.DatastreamProto .internal_static_google_cloud_datastream_v1_DiscoverConnectionProfileRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.datastream.v1.DatastreamProto .internal_static_google_cloud_datastream_v1_DiscoverConnectionProfileRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest.class, com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest.Builder.class); } // Construct using com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override public Builder clear() { super.clear(); parent_ = ""; targetCase_ = 0; target_ = null; hierarchyCase_ = 0; hierarchy_ = null; dataObjectCase_ = 0; dataObject_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.datastream.v1.DatastreamProto .internal_static_google_cloud_datastream_v1_DiscoverConnectionProfileRequest_descriptor; } @java.lang.Override public com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest getDefaultInstanceForType() { return com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest.getDefaultInstance(); } @java.lang.Override public com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest build() { com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest buildPartial() { com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest result = new com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest(this); result.parent_ = parent_; if (targetCase_ == 200) { if (connectionProfileBuilder_ == null) { result.target_ = target_; } else { result.target_ = connectionProfileBuilder_.build(); } } if (targetCase_ == 201) { result.target_ = target_; } if (hierarchyCase_ == 3) { result.hierarchy_ = hierarchy_; } if (hierarchyCase_ == 4) { result.hierarchy_ = hierarchy_; } if (dataObjectCase_ == 100) { if (oracleRdbmsBuilder_ == null) { result.dataObject_ = dataObject_; } else { result.dataObject_ = oracleRdbmsBuilder_.build(); } } if (dataObjectCase_ == 101) { if (mysqlRdbmsBuilder_ == null) { result.dataObject_ = dataObject_; } else { result.dataObject_ = mysqlRdbmsBuilder_.build(); } } result.targetCase_ = targetCase_; result.hierarchyCase_ = hierarchyCase_; result.dataObjectCase_ = dataObjectCase_; 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.datastream.v1.DiscoverConnectionProfileRequest) { return mergeFrom((com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom( com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest other) { if (other == com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); } switch (other.getTargetCase()) { case CONNECTION_PROFILE: { mergeConnectionProfile(other.getConnectionProfile()); break; } case CONNECTION_PROFILE_NAME: { targetCase_ = 201; target_ = other.target_; onChanged(); break; } case TARGET_NOT_SET: { break; } } switch (other.getHierarchyCase()) { case FULL_HIERARCHY: { setFullHierarchy(other.getFullHierarchy()); break; } case HIERARCHY_DEPTH: { setHierarchyDepth(other.getHierarchyDepth()); break; } case HIERARCHY_NOT_SET: { break; } } switch (other.getDataObjectCase()) { case ORACLE_RDBMS: { mergeOracleRdbms(other.getOracleRdbms()); break; } case MYSQL_RDBMS: { mergeMysqlRdbms(other.getMysqlRdbms()); break; } case DATAOBJECT_NOT_SET: { break; } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int targetCase_ = 0; private java.lang.Object target_; public TargetCase getTargetCase() { return TargetCase.forNumber(targetCase_); } public Builder clearTarget() { targetCase_ = 0; target_ = null; onChanged(); return this; } private int hierarchyCase_ = 0; private java.lang.Object hierarchy_; public HierarchyCase getHierarchyCase() { return HierarchyCase.forNumber(hierarchyCase_); } public Builder clearHierarchy() { hierarchyCase_ = 0; hierarchy_ = null; onChanged(); return this; } private int dataObjectCase_ = 0; private java.lang.Object dataObject_; public DataObjectCase getDataObjectCase() { return DataObjectCase.forNumber(dataObjectCase_); } public Builder clearDataObject() { dataObjectCase_ = 0; dataObject_ = null; onChanged(); return this; } private java.lang.Object parent_ = ""; /** * * *
     * Required. The parent resource of the connection profile type. Must be in the
     * format `projects/*/locations/*`.
     * 
* * * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * Required. The parent resource of the connection profile type. Must be in the
     * format `projects/*/locations/*`.
     * 
* * * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return The bytes for parent. */ public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * Required. The parent resource of the connection profile type. Must be in the
     * format `projects/*/locations/*`.
     * 
* * * 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; onChanged(); return this; } /** * * *
     * Required. The parent resource of the connection profile type. Must be in the
     * format `projects/*/locations/*`.
     * 
* * * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return This builder for chaining. */ public Builder clearParent() { parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** * * *
     * Required. The parent resource of the connection profile type. Must be in the
     * format `projects/*/locations/*`.
     * 
* * * 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; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.datastream.v1.ConnectionProfile, com.google.cloud.datastream.v1.ConnectionProfile.Builder, com.google.cloud.datastream.v1.ConnectionProfileOrBuilder> connectionProfileBuilder_; /** * * *
     * An ad-hoc connection profile configuration.
     * 
* * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 200; * * @return Whether the connectionProfile field is set. */ @java.lang.Override public boolean hasConnectionProfile() { return targetCase_ == 200; } /** * * *
     * An ad-hoc connection profile configuration.
     * 
* * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 200; * * @return The connectionProfile. */ @java.lang.Override public com.google.cloud.datastream.v1.ConnectionProfile getConnectionProfile() { if (connectionProfileBuilder_ == null) { if (targetCase_ == 200) { return (com.google.cloud.datastream.v1.ConnectionProfile) target_; } return com.google.cloud.datastream.v1.ConnectionProfile.getDefaultInstance(); } else { if (targetCase_ == 200) { return connectionProfileBuilder_.getMessage(); } return com.google.cloud.datastream.v1.ConnectionProfile.getDefaultInstance(); } } /** * * *
     * An ad-hoc connection profile configuration.
     * 
* * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 200; */ public Builder setConnectionProfile(com.google.cloud.datastream.v1.ConnectionProfile value) { if (connectionProfileBuilder_ == null) { if (value == null) { throw new NullPointerException(); } target_ = value; onChanged(); } else { connectionProfileBuilder_.setMessage(value); } targetCase_ = 200; return this; } /** * * *
     * An ad-hoc connection profile configuration.
     * 
* * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 200; */ public Builder setConnectionProfile( com.google.cloud.datastream.v1.ConnectionProfile.Builder builderForValue) { if (connectionProfileBuilder_ == null) { target_ = builderForValue.build(); onChanged(); } else { connectionProfileBuilder_.setMessage(builderForValue.build()); } targetCase_ = 200; return this; } /** * * *
     * An ad-hoc connection profile configuration.
     * 
* * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 200; */ public Builder mergeConnectionProfile(com.google.cloud.datastream.v1.ConnectionProfile value) { if (connectionProfileBuilder_ == null) { if (targetCase_ == 200 && target_ != com.google.cloud.datastream.v1.ConnectionProfile.getDefaultInstance()) { target_ = com.google.cloud.datastream.v1.ConnectionProfile.newBuilder( (com.google.cloud.datastream.v1.ConnectionProfile) target_) .mergeFrom(value) .buildPartial(); } else { target_ = value; } onChanged(); } else { if (targetCase_ == 200) { connectionProfileBuilder_.mergeFrom(value); } connectionProfileBuilder_.setMessage(value); } targetCase_ = 200; return this; } /** * * *
     * An ad-hoc connection profile configuration.
     * 
* * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 200; */ public Builder clearConnectionProfile() { if (connectionProfileBuilder_ == null) { if (targetCase_ == 200) { targetCase_ = 0; target_ = null; onChanged(); } } else { if (targetCase_ == 200) { targetCase_ = 0; target_ = null; } connectionProfileBuilder_.clear(); } return this; } /** * * *
     * An ad-hoc connection profile configuration.
     * 
* * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 200; */ public com.google.cloud.datastream.v1.ConnectionProfile.Builder getConnectionProfileBuilder() { return getConnectionProfileFieldBuilder().getBuilder(); } /** * * *
     * An ad-hoc connection profile configuration.
     * 
* * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 200; */ @java.lang.Override public com.google.cloud.datastream.v1.ConnectionProfileOrBuilder getConnectionProfileOrBuilder() { if ((targetCase_ == 200) && (connectionProfileBuilder_ != null)) { return connectionProfileBuilder_.getMessageOrBuilder(); } else { if (targetCase_ == 200) { return (com.google.cloud.datastream.v1.ConnectionProfile) target_; } return com.google.cloud.datastream.v1.ConnectionProfile.getDefaultInstance(); } } /** * * *
     * An ad-hoc connection profile configuration.
     * 
* * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 200; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.datastream.v1.ConnectionProfile, com.google.cloud.datastream.v1.ConnectionProfile.Builder, com.google.cloud.datastream.v1.ConnectionProfileOrBuilder> getConnectionProfileFieldBuilder() { if (connectionProfileBuilder_ == null) { if (!(targetCase_ == 200)) { target_ = com.google.cloud.datastream.v1.ConnectionProfile.getDefaultInstance(); } connectionProfileBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.datastream.v1.ConnectionProfile, com.google.cloud.datastream.v1.ConnectionProfile.Builder, com.google.cloud.datastream.v1.ConnectionProfileOrBuilder>( (com.google.cloud.datastream.v1.ConnectionProfile) target_, getParentForChildren(), isClean()); target_ = null; } targetCase_ = 200; onChanged(); ; return connectionProfileBuilder_; } /** * * *
     * A reference to an existing connection profile.
     * 
* * string connection_profile_name = 201; * * @return Whether the connectionProfileName field is set. */ @java.lang.Override public boolean hasConnectionProfileName() { return targetCase_ == 201; } /** * * *
     * A reference to an existing connection profile.
     * 
* * string connection_profile_name = 201; * * @return The connectionProfileName. */ @java.lang.Override public java.lang.String getConnectionProfileName() { java.lang.Object ref = ""; if (targetCase_ == 201) { ref = target_; } if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (targetCase_ == 201) { target_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
     * A reference to an existing connection profile.
     * 
* * string connection_profile_name = 201; * * @return The bytes for connectionProfileName. */ @java.lang.Override public com.google.protobuf.ByteString getConnectionProfileNameBytes() { java.lang.Object ref = ""; if (targetCase_ == 201) { ref = target_; } if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (targetCase_ == 201) { target_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * A reference to an existing connection profile.
     * 
* * string connection_profile_name = 201; * * @param value The connectionProfileName to set. * @return This builder for chaining. */ public Builder setConnectionProfileName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } targetCase_ = 201; target_ = value; onChanged(); return this; } /** * * *
     * A reference to an existing connection profile.
     * 
* * string connection_profile_name = 201; * * @return This builder for chaining. */ public Builder clearConnectionProfileName() { if (targetCase_ == 201) { targetCase_ = 0; target_ = null; onChanged(); } return this; } /** * * *
     * A reference to an existing connection profile.
     * 
* * string connection_profile_name = 201; * * @param value The bytes for connectionProfileName to set. * @return This builder for chaining. */ public Builder setConnectionProfileNameBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); targetCase_ = 201; target_ = value; onChanged(); return this; } /** * * *
     * Whether to retrieve the full hierarchy of data objects (TRUE) or only the
     * current level (FALSE).
     * 
* * bool full_hierarchy = 3; * * @return Whether the fullHierarchy field is set. */ public boolean hasFullHierarchy() { return hierarchyCase_ == 3; } /** * * *
     * Whether to retrieve the full hierarchy of data objects (TRUE) or only the
     * current level (FALSE).
     * 
* * bool full_hierarchy = 3; * * @return The fullHierarchy. */ public boolean getFullHierarchy() { if (hierarchyCase_ == 3) { return (java.lang.Boolean) hierarchy_; } return false; } /** * * *
     * Whether to retrieve the full hierarchy of data objects (TRUE) or only the
     * current level (FALSE).
     * 
* * bool full_hierarchy = 3; * * @param value The fullHierarchy to set. * @return This builder for chaining. */ public Builder setFullHierarchy(boolean value) { hierarchyCase_ = 3; hierarchy_ = value; onChanged(); return this; } /** * * *
     * Whether to retrieve the full hierarchy of data objects (TRUE) or only the
     * current level (FALSE).
     * 
* * bool full_hierarchy = 3; * * @return This builder for chaining. */ public Builder clearFullHierarchy() { if (hierarchyCase_ == 3) { hierarchyCase_ = 0; hierarchy_ = null; onChanged(); } return this; } /** * * *
     * The number of hierarchy levels below the current level to be retrieved.
     * 
* * int32 hierarchy_depth = 4; * * @return Whether the hierarchyDepth field is set. */ public boolean hasHierarchyDepth() { return hierarchyCase_ == 4; } /** * * *
     * The number of hierarchy levels below the current level to be retrieved.
     * 
* * int32 hierarchy_depth = 4; * * @return The hierarchyDepth. */ public int getHierarchyDepth() { if (hierarchyCase_ == 4) { return (java.lang.Integer) hierarchy_; } return 0; } /** * * *
     * The number of hierarchy levels below the current level to be retrieved.
     * 
* * int32 hierarchy_depth = 4; * * @param value The hierarchyDepth to set. * @return This builder for chaining. */ public Builder setHierarchyDepth(int value) { hierarchyCase_ = 4; hierarchy_ = value; onChanged(); return this; } /** * * *
     * The number of hierarchy levels below the current level to be retrieved.
     * 
* * int32 hierarchy_depth = 4; * * @return This builder for chaining. */ public Builder clearHierarchyDepth() { if (hierarchyCase_ == 4) { hierarchyCase_ = 0; hierarchy_ = null; onChanged(); } return this; } private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.datastream.v1.OracleRdbms, com.google.cloud.datastream.v1.OracleRdbms.Builder, com.google.cloud.datastream.v1.OracleRdbmsOrBuilder> oracleRdbmsBuilder_; /** * * *
     * Oracle RDBMS to enrich with child data objects and metadata.
     * 
* * .google.cloud.datastream.v1.OracleRdbms oracle_rdbms = 100; * * @return Whether the oracleRdbms field is set. */ @java.lang.Override public boolean hasOracleRdbms() { return dataObjectCase_ == 100; } /** * * *
     * Oracle RDBMS to enrich with child data objects and metadata.
     * 
* * .google.cloud.datastream.v1.OracleRdbms oracle_rdbms = 100; * * @return The oracleRdbms. */ @java.lang.Override public com.google.cloud.datastream.v1.OracleRdbms getOracleRdbms() { if (oracleRdbmsBuilder_ == null) { if (dataObjectCase_ == 100) { return (com.google.cloud.datastream.v1.OracleRdbms) dataObject_; } return com.google.cloud.datastream.v1.OracleRdbms.getDefaultInstance(); } else { if (dataObjectCase_ == 100) { return oracleRdbmsBuilder_.getMessage(); } return com.google.cloud.datastream.v1.OracleRdbms.getDefaultInstance(); } } /** * * *
     * Oracle RDBMS to enrich with child data objects and metadata.
     * 
* * .google.cloud.datastream.v1.OracleRdbms oracle_rdbms = 100; */ public Builder setOracleRdbms(com.google.cloud.datastream.v1.OracleRdbms value) { if (oracleRdbmsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } dataObject_ = value; onChanged(); } else { oracleRdbmsBuilder_.setMessage(value); } dataObjectCase_ = 100; return this; } /** * * *
     * Oracle RDBMS to enrich with child data objects and metadata.
     * 
* * .google.cloud.datastream.v1.OracleRdbms oracle_rdbms = 100; */ public Builder setOracleRdbms( com.google.cloud.datastream.v1.OracleRdbms.Builder builderForValue) { if (oracleRdbmsBuilder_ == null) { dataObject_ = builderForValue.build(); onChanged(); } else { oracleRdbmsBuilder_.setMessage(builderForValue.build()); } dataObjectCase_ = 100; return this; } /** * * *
     * Oracle RDBMS to enrich with child data objects and metadata.
     * 
* * .google.cloud.datastream.v1.OracleRdbms oracle_rdbms = 100; */ public Builder mergeOracleRdbms(com.google.cloud.datastream.v1.OracleRdbms value) { if (oracleRdbmsBuilder_ == null) { if (dataObjectCase_ == 100 && dataObject_ != com.google.cloud.datastream.v1.OracleRdbms.getDefaultInstance()) { dataObject_ = com.google.cloud.datastream.v1.OracleRdbms.newBuilder( (com.google.cloud.datastream.v1.OracleRdbms) dataObject_) .mergeFrom(value) .buildPartial(); } else { dataObject_ = value; } onChanged(); } else { if (dataObjectCase_ == 100) { oracleRdbmsBuilder_.mergeFrom(value); } oracleRdbmsBuilder_.setMessage(value); } dataObjectCase_ = 100; return this; } /** * * *
     * Oracle RDBMS to enrich with child data objects and metadata.
     * 
* * .google.cloud.datastream.v1.OracleRdbms oracle_rdbms = 100; */ public Builder clearOracleRdbms() { if (oracleRdbmsBuilder_ == null) { if (dataObjectCase_ == 100) { dataObjectCase_ = 0; dataObject_ = null; onChanged(); } } else { if (dataObjectCase_ == 100) { dataObjectCase_ = 0; dataObject_ = null; } oracleRdbmsBuilder_.clear(); } return this; } /** * * *
     * Oracle RDBMS to enrich with child data objects and metadata.
     * 
* * .google.cloud.datastream.v1.OracleRdbms oracle_rdbms = 100; */ public com.google.cloud.datastream.v1.OracleRdbms.Builder getOracleRdbmsBuilder() { return getOracleRdbmsFieldBuilder().getBuilder(); } /** * * *
     * Oracle RDBMS to enrich with child data objects and metadata.
     * 
* * .google.cloud.datastream.v1.OracleRdbms oracle_rdbms = 100; */ @java.lang.Override public com.google.cloud.datastream.v1.OracleRdbmsOrBuilder getOracleRdbmsOrBuilder() { if ((dataObjectCase_ == 100) && (oracleRdbmsBuilder_ != null)) { return oracleRdbmsBuilder_.getMessageOrBuilder(); } else { if (dataObjectCase_ == 100) { return (com.google.cloud.datastream.v1.OracleRdbms) dataObject_; } return com.google.cloud.datastream.v1.OracleRdbms.getDefaultInstance(); } } /** * * *
     * Oracle RDBMS to enrich with child data objects and metadata.
     * 
* * .google.cloud.datastream.v1.OracleRdbms oracle_rdbms = 100; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.datastream.v1.OracleRdbms, com.google.cloud.datastream.v1.OracleRdbms.Builder, com.google.cloud.datastream.v1.OracleRdbmsOrBuilder> getOracleRdbmsFieldBuilder() { if (oracleRdbmsBuilder_ == null) { if (!(dataObjectCase_ == 100)) { dataObject_ = com.google.cloud.datastream.v1.OracleRdbms.getDefaultInstance(); } oracleRdbmsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.datastream.v1.OracleRdbms, com.google.cloud.datastream.v1.OracleRdbms.Builder, com.google.cloud.datastream.v1.OracleRdbmsOrBuilder>( (com.google.cloud.datastream.v1.OracleRdbms) dataObject_, getParentForChildren(), isClean()); dataObject_ = null; } dataObjectCase_ = 100; onChanged(); ; return oracleRdbmsBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.datastream.v1.MysqlRdbms, com.google.cloud.datastream.v1.MysqlRdbms.Builder, com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder> mysqlRdbmsBuilder_; /** * * *
     * MySQL RDBMS to enrich with child data objects and metadata.
     * 
* * .google.cloud.datastream.v1.MysqlRdbms mysql_rdbms = 101; * * @return Whether the mysqlRdbms field is set. */ @java.lang.Override public boolean hasMysqlRdbms() { return dataObjectCase_ == 101; } /** * * *
     * MySQL RDBMS to enrich with child data objects and metadata.
     * 
* * .google.cloud.datastream.v1.MysqlRdbms mysql_rdbms = 101; * * @return The mysqlRdbms. */ @java.lang.Override public com.google.cloud.datastream.v1.MysqlRdbms getMysqlRdbms() { if (mysqlRdbmsBuilder_ == null) { if (dataObjectCase_ == 101) { return (com.google.cloud.datastream.v1.MysqlRdbms) dataObject_; } return com.google.cloud.datastream.v1.MysqlRdbms.getDefaultInstance(); } else { if (dataObjectCase_ == 101) { return mysqlRdbmsBuilder_.getMessage(); } return com.google.cloud.datastream.v1.MysqlRdbms.getDefaultInstance(); } } /** * * *
     * MySQL RDBMS to enrich with child data objects and metadata.
     * 
* * .google.cloud.datastream.v1.MysqlRdbms mysql_rdbms = 101; */ public Builder setMysqlRdbms(com.google.cloud.datastream.v1.MysqlRdbms value) { if (mysqlRdbmsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } dataObject_ = value; onChanged(); } else { mysqlRdbmsBuilder_.setMessage(value); } dataObjectCase_ = 101; return this; } /** * * *
     * MySQL RDBMS to enrich with child data objects and metadata.
     * 
* * .google.cloud.datastream.v1.MysqlRdbms mysql_rdbms = 101; */ public Builder setMysqlRdbms( com.google.cloud.datastream.v1.MysqlRdbms.Builder builderForValue) { if (mysqlRdbmsBuilder_ == null) { dataObject_ = builderForValue.build(); onChanged(); } else { mysqlRdbmsBuilder_.setMessage(builderForValue.build()); } dataObjectCase_ = 101; return this; } /** * * *
     * MySQL RDBMS to enrich with child data objects and metadata.
     * 
* * .google.cloud.datastream.v1.MysqlRdbms mysql_rdbms = 101; */ public Builder mergeMysqlRdbms(com.google.cloud.datastream.v1.MysqlRdbms value) { if (mysqlRdbmsBuilder_ == null) { if (dataObjectCase_ == 101 && dataObject_ != com.google.cloud.datastream.v1.MysqlRdbms.getDefaultInstance()) { dataObject_ = com.google.cloud.datastream.v1.MysqlRdbms.newBuilder( (com.google.cloud.datastream.v1.MysqlRdbms) dataObject_) .mergeFrom(value) .buildPartial(); } else { dataObject_ = value; } onChanged(); } else { if (dataObjectCase_ == 101) { mysqlRdbmsBuilder_.mergeFrom(value); } mysqlRdbmsBuilder_.setMessage(value); } dataObjectCase_ = 101; return this; } /** * * *
     * MySQL RDBMS to enrich with child data objects and metadata.
     * 
* * .google.cloud.datastream.v1.MysqlRdbms mysql_rdbms = 101; */ public Builder clearMysqlRdbms() { if (mysqlRdbmsBuilder_ == null) { if (dataObjectCase_ == 101) { dataObjectCase_ = 0; dataObject_ = null; onChanged(); } } else { if (dataObjectCase_ == 101) { dataObjectCase_ = 0; dataObject_ = null; } mysqlRdbmsBuilder_.clear(); } return this; } /** * * *
     * MySQL RDBMS to enrich with child data objects and metadata.
     * 
* * .google.cloud.datastream.v1.MysqlRdbms mysql_rdbms = 101; */ public com.google.cloud.datastream.v1.MysqlRdbms.Builder getMysqlRdbmsBuilder() { return getMysqlRdbmsFieldBuilder().getBuilder(); } /** * * *
     * MySQL RDBMS to enrich with child data objects and metadata.
     * 
* * .google.cloud.datastream.v1.MysqlRdbms mysql_rdbms = 101; */ @java.lang.Override public com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder getMysqlRdbmsOrBuilder() { if ((dataObjectCase_ == 101) && (mysqlRdbmsBuilder_ != null)) { return mysqlRdbmsBuilder_.getMessageOrBuilder(); } else { if (dataObjectCase_ == 101) { return (com.google.cloud.datastream.v1.MysqlRdbms) dataObject_; } return com.google.cloud.datastream.v1.MysqlRdbms.getDefaultInstance(); } } /** * * *
     * MySQL RDBMS to enrich with child data objects and metadata.
     * 
* * .google.cloud.datastream.v1.MysqlRdbms mysql_rdbms = 101; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.datastream.v1.MysqlRdbms, com.google.cloud.datastream.v1.MysqlRdbms.Builder, com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder> getMysqlRdbmsFieldBuilder() { if (mysqlRdbmsBuilder_ == null) { if (!(dataObjectCase_ == 101)) { dataObject_ = com.google.cloud.datastream.v1.MysqlRdbms.getDefaultInstance(); } mysqlRdbmsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.datastream.v1.MysqlRdbms, com.google.cloud.datastream.v1.MysqlRdbms.Builder, com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder>( (com.google.cloud.datastream.v1.MysqlRdbms) dataObject_, getParentForChildren(), isClean()); dataObject_ = null; } dataObjectCase_ = 101; onChanged(); ; return mysqlRdbmsBuilder_; } @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.DiscoverConnectionProfileRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.DiscoverConnectionProfileRequest) private static final com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest(); } public static com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DiscoverConnectionProfileRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new DiscoverConnectionProfileRequest(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy