public void MergeFrom(BigQueryConnectionSpec other) { if (other == null) { return; } if (other.ConnectionType != global::Google.Cloud.DataCatalog.V1.BigQueryConnectionSpec.Types.ConnectionType.Unspecified) { ConnectionType = other.ConnectionType; } if (other.HasCredential != false) { HasCredential = other.HasCredential; } switch (other.ConnectionSpecCase) { case ConnectionSpecOneofCase.CloudSql: if (CloudSql == null) { CloudSql = new global::Google.Cloud.DataCatalog.V1.CloudSqlBigQueryConnectionSpec(); } CloudSql.MergeFrom(other.CloudSql); break; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 8: { ConnectionType = (global::Google.Cloud.DataCatalog.V1.BigQueryConnectionSpec.Types.ConnectionType)input.ReadEnum(); break; } case 18: { global::Google.Cloud.DataCatalog.V1.CloudSqlBigQueryConnectionSpec subBuilder = new global::Google.Cloud.DataCatalog.V1.CloudSqlBigQueryConnectionSpec(); if (connectionSpecCase_ == ConnectionSpecOneofCase.CloudSql) { subBuilder.MergeFrom(CloudSql); } input.ReadMessage(subBuilder); CloudSql = subBuilder; break; } case 24: { HasCredential = input.ReadBool(); break; } } } }
public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 8: { ConnectionType = (global::Google.Cloud.DataCatalog.V1.BigQueryConnectionSpec.Types.ConnectionType)input.ReadEnum(); break; } case 18: { global::Google.Cloud.DataCatalog.V1.CloudSqlBigQueryConnectionSpec subBuilder = new global::Google.Cloud.DataCatalog.V1.CloudSqlBigQueryConnectionSpec(); if (connectionSpecCase_ == ConnectionSpecOneofCase.CloudSql) { subBuilder.MergeFrom(CloudSql); } input.ReadMessage(subBuilder); CloudSql = subBuilder; break; } case 24: { HasCredential = input.ReadBool(); break; } } } #endif }