public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { Name = input.ReadString(); break; } case 16: { EnableAssetDiscovery = input.ReadBool(); break; } case 26: { if (assetDiscoveryConfig_ == null) { AssetDiscoveryConfig = new global::Google.Cloud.SecurityCenter.V1P1Beta1.OrganizationSettings.Types.AssetDiscoveryConfig(); } input.ReadMessage(AssetDiscoveryConfig); break; } } } }
public void MergeFrom(OrganizationSettings other) { if (other == null) { return; } if (other.Name.Length != 0) { Name = other.Name; } if (other.EnableAssetDiscovery != false) { EnableAssetDiscovery = other.EnableAssetDiscovery; } if (other.assetDiscoveryConfig_ != null) { if (assetDiscoveryConfig_ == null) { AssetDiscoveryConfig = new global::Google.Cloud.SecurityCenter.V1P1Beta1.OrganizationSettings.Types.AssetDiscoveryConfig(); } AssetDiscoveryConfig.MergeFrom(other.AssetDiscoveryConfig); } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }